• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Archive basics

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

One click archiving scripts add buttons beside discussions on talk pages and noticeboards. When clicked, the button will archive that discussion onto the page specified. Most pages are archived by lowercase sigmabot III, and the script will use the values in that bot's config. On pages archived by another bot or not archived by any bot, this template will provide the archive name and counter number used by the archiving script. This template and the OneClickArchiver scripts work with archives that end with a number. They do not work with monthly archives or idiosyncratic archive naming schemes.

Contents

  • 1 Examples
    • 1.1 Simple
    • 1.2 All parameters
    • 1.3 Specify archives ___location
    • 1.4 Specify archive names
    • 1.5 Date-based archives
  • 2 Shortcut
  • 3 TemplateData
  • 4 See also

Examples

Copy & paste the code below for numbered archives:

Simple

{{Archive basics
|archive = {{SAFESUBST:#titleparts:{{SAFESUBST:FULLPAGENAME}}}}/Archive %(counter)d
|counter = 1
}}

All parameters

All parameters with default values:

{{Archive basics
|archive = {{SAFESUBST:#titleparts:{{SAFESUBST:FULLPAGENAME}}}}/Archive %(counter)d
|counter = 1
|headerlevel = 2
|maxarchivesize = 
|archiveheader = {{archive}}
}}

Specify archives ___location

To manually choose the archive page ___location, replace "User talk:Username/Archive" and increment the |counter= as needed in the example below:

{{Archive basics
|archive = User talk:Username/Archive %(counter)d
|counter = 1
}}

Specify archive names

The counter is not used for nonstandard archive names:

{{Archive basics
|archive = User talk:Username/Archive template notices
}}

Date-based archives

For annual archives copy and paste the example below. The text %(year)d will be interpreted by the script as the current year.

{{Archive basics
|archive = {{SAFESUBST:#titleparts:{{SAFESUBST:FULLPAGENAME}}}}/Archive %(year)d
}}

For monthly archives:

{{Archive basics
|archive = {{SAFESUBST:#titleparts:{{SAFESUBST:FULLPAGENAME}}}}/Archives/%(year)d/%(monthname)s
}}

Shortcut

There is a shortcut setup template to make it easier to apply defaults for one-click archiving. Archives typically begin at "Archive 1". If archives already exist, you can specify the number of the current highest archive. To move discussions to "Archive X", change the number "1" below to whatever number you want for a counter number:

{{subst:oca|1}}

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Archive basics in articles based on its TemplateData.

TemplateData for Archive basics

Config for OneClickArchiving scripts

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Archivearchive

WikiPath to where you want the archives stored.

Stringrequired
Countercounter

This is what numbered archive the OneClickArchiver will archive to. If you are archiving at User talk:Example/Archive 1, for example, this parameter must be set at 1. Otherwise, the OneClickArchiver will archive to the wrong page.

Numberrequired
Maximum Sizemaxsize maxarchivesize

Size at which a "nag" notice will show up on page letting users know that the size of the current archive (defined by archive and counter parameters) is above and to suggest that the archive be incremented.

Default
153600
Numberoptional
Header Levelheaderlevel

HTML heading level to create buttons for

Default
2
Stringoptional
Archive Headerarchiveheader

Header banner to add at the top of archived pages.

Default
{{archive}}
Unknownoptional

See also

  • v
  • t
  • e
Templates for archiving
  • Archiving (simple)
  • Archiving (technical)
  • Choosing the right bot
Recommended
  • {{Archives}} (very configurable side box or banner for main talk page)
  • {{Archive}} (banner placed on archive pages with navigation)
  • {{Talk header}} (banner with talk page guidelines and archives)
  • {{Archive top}} / {{Atop}} (archives/closes discussion)
  • lowercase sigmabot III (MiszaBot) (most popular auto archiving bot) {{subst:Setup auto archiving}} (quick setup script)
  • Wikipedia:One click archiving (archiver scripts)
Headers
With
navigation
  • {{Annual archive}}
  • {{Archived annually}}
  • {{Archive}} (does not need parameter)
  • {{Archives by months}}
  • {{Month-year archive nav}}
  • {{Monthly archived talk}}
Without
navigation
  • {{Archiving}}
With
search
  • {{Talk header}} (contains an automatically appearing archive search box and nav)
Content
formatting
  • {{Archive top}} / {{atop}}
  • {{Archive top green}} / {{atopg}}
  • {{Archive top red}} / {{atopr}}
  • {{Archive top yellow}} / {{atopy}}
  • {{Archive bottom}} / {{abot}}
  • {{Closed rfc top}}
  • {{Collapse}}
  • {{Collapse top}} / {{cot}}
  • {{Collapse bottom}} / {{cob}}
  • {{Collapse AI top}} / {{cait}}
  • {{Hidden archive top}} / {{hat}}
  • {{Hidden archive bottom}} / {{hab}}
  • {{Poll top}}
  • {{Poll bottom}}
Lists
  • {{Archive list}} (numbered archives usually the default)
  • {{Archive list alpha}}
  • {{Monthly archive list}}
  • {{Yearly archive list}}
Discussion
  • {{Archive request}}
  • {{Please archive}}
  • {{uw-archive}}
Automatic
archiving
systems
lowercase
sigmabot III

(MiszaBot)
  • {{subst:Setup auto archiving}}
  • {{User:MiszaBot/config}}
ClueBot III
  • {{subst:Setup cluebot archiving}}
  • {{subst:Archive now}}
  • {{User:ClueBot III/ArchiveThis}}
other
  • HBC Archive Indexerbot (Legobot)
general
  • {{Archive basics}}
  • {{subst:Bump}}
  • {{subst:Do not archive until}}
  • {{subst:Pin section}}
  •  Category:Archival templates
The above documentation is transcluded from Template:Archive basics/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Archive_basics&oldid=1119026430"
Last edited on 30 October 2022, at 09:16

Languages

    • العربية
    • Azərbaycanca
    • تۆرکجه
    • فارسی
    • Français
    • മലയാളം
    • සිංහල
    • Simple English
    • Српски / srpski
    • Türkçe
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 30 October 2022, at 09:16 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop