www.fgks.org   »   [go: up one dir, main page]

Jump to content

Help:Archiving a talk page: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎Automated archiving: +{{Auto-archive}}
Tag: Reverted
replace hat with beginner version template
 
(38 intermediate revisions by 25 users not shown)
Line 1: Line 1:
{{Short description|Advice on archiving completed discussions}}
{{Short description|Advice on archiving completed discussions}}
{{About|archiving old discussions on a talk page|adding web archives to citations|Help:Archiving a source}}
{{Redirect2|Help:Archive|Help:Archiving|help on archiving web pages|Help:Archiving a source|the template used to mark discussions as closed|Template:Archive top|Wikipedia's historical archive|Wikipedia:Historical archive|selfref=yes}}
{{redirect|WP:AATP|the project page with the [[WP:ATP]] shortcut|Wikipedia:Attack page}}
{{redirect|WP:AATP|the project page with the [[WP:ATP]] shortcut|Wikipedia:Attack page}}
{{pp-vandalism|small=yes}}
{{pp-vandalism|small=yes}}
{{Pp-move-indef}}
{{Pp-move-indef}}
{{Beginner version|Help: Archiving (plain and simple)}}
{{nutshell|This page explains how and why to set up archiving and archive search boxes on Wikipedia, offering multiple options and assessments of those options; for plain and simple instructions, see [[Help:Archiving (plain and simple)]].|}}
{{Wikipedia how to|H:ARC|WP:ARCHIVE|WP:AATP}}
{{Wikipedia how to|H:ARC|WP:ARCHIVE|WP:AATP}}
{{nutshell|This page explains how and why to set up archiving and archive search boxes on Wikipedia, offering multiple options and assessments of those options.|}}


It is customary to periodically '''archive old discussions on a talk page''' when that page becomes too large. Bulky [[Help:Using talk pages|talk pages]] may be hard to navigate, contain obsolete discussion, or become a burden for users with slow Internet connections or computers. Notices are placed at the beginning of the talk page to inform all editors of an archive.
It is customary to periodically '''archive old discussions on a talk page''' when the talk page becomes too large. Archiving is often done automatically by a [[Wikipedia:Bots|bot]]. Step-by-step instructions to set up automated archiving can be found at '''[[Help:Archiving (plain and simple)]]'''. There are two main bots that archive talk pages:


* [[User:ClueBot III]] will create archives based on the parameters set using [[User:ClueBot III/ArchiveThis]].
Regular articles are not archived because previous versions may be seen in the [[Help:Page history|page history]]; the practice of archiving is unique to talk pages and noticeboards, which often swell to great length. Archiving one's own user talk page is optional; some users simply [[WP:BLANKING|blank the page]], as the history is kept available for future reference, but this is not considered the best practice (as it makes things more difficult to find and link). For this specific case, the use of "permalinks" can provide an easy way to display an archived view of a talk page at a given moment, though there's no control on thread organization or presentation.
* [[User:Lowercase sigmabot III/Archive HowTo|User:Lowercase sigmabot III]] will create archives based on the parameters set using [[User:MiszaBot/config]].


Archives can also be created manually. Manual archiving can be done [[Help:Archiving a talk page/Manual archiving|by hand]] by cutting and pasting from a talk page to an archive subpage. [[Wikipedia:One click archiving|One click archiving]] streamlines this process by adding an archive button to all talk page sections.
The [[Wikipedia:Talk page guidelines#When to archive pages|talk page guidelines]] suggest archiving when the talk page exceeds 75 KB (or 75,000 bytes), or has multiple resolved or stale discussions. However, when to archive, and what may be the optimal length for a talk page, are subjective decisions that should be adapted to each case. For example, ongoing discussions and nearby sections they reference should generally be kept intact.


Only noticeboards and talk pages are archived because both can become very long. The [[Wikipedia:Talk page guidelines#When to archive pages|talk page guidelines]] suggest archiving when the talk page exceeds 75 KB (or 75,000 bytes) or has multiple resolved or stale discussions. Older discussions that are still relevant can be summarized and linked using the {{Tlx|FAQ}} template. Archiving one's own user talk page is preferred but optional; some users simply [[WP:BLANKING|blank the page]].
There may be circumstances where it would be useful to keep older discussions present on a talk page, to avoid the same issues being repeatedly raised. However, this situation can be better addressed by use of the {{Tlx|FAQ}} template.


== Technical overview ==
== Technical overview ==
{{main|Help:Archiving a talk page/Naming}}
The preferred method for archiving a talk page is to copy the older sections to a series of [[Wikipedia:Subpages|subpages]], and remove the sections from the original page. This can be performed either [[#Manual archiving|by hand]] or [[#Automated archiving|automatically]] by a [[Wikipedia:Bots|bot]].


There are several standard ways to archive a talk page. Each consists of [[Cut and paste|cutting and pasting]] sections from a talk page to an "Archive" [[Wikipedia:Subpages|subpage]]. The sections can archived [[#Manual archiving|manually]] or [[#Automated archiving|automatically]]. Manual archiving is done by editing the page by hand or using a [[Wikipedia:One click archiving|one click archiving]] script that adds an archive button to talk page sections. Automatic archiving is done by a [[Wikipedia:Bots|bot]]. There are two widely archiving bots, [[User:ClueBot III]] and [[User:Lowercase sigmabot III]].
There are two common methods of naming archive pages. The most common, and easiest, is sequentially numbered archives. Archive pages should be named as follows: take the name of the talk page, and add "<code>/Archive&nbsp;#</code>", where "<code>#</code>" is the number of the archive. Note that the word ''Archive'' has a capital ''A'', there is a space before the number, and there are no leading zeros. Templates like {{Tl|Archive list}} rely on this naming convention to automatically find the archive pages.

The most common method of [[Help:Archiving a talk page/Naming|naming talk page archives]] is with sequentially numbered archives. For example:


For example:
* The 20th archive of [[Talk:Earth]] would be named <code>Talk:Earth/Archive&nbsp;20</code>
* The 20th archive of [[Talk:Earth]] would be named <code>Talk:Earth/Archive&nbsp;20</code>
* The first archive of [[User talk:Example]] would be named <code>User talk:Example/Archive&nbsp;1</code>
* The first archive of [[User talk:Example]] would be named <code>User talk:Example/Archive&nbsp;1</code>

The second common method of naming archive pages is by year and month. With this method archive pages are typically named <code>Talk:YourPage/Archives/2013/June</code>, <code>Talk:YourPage/Archives/2013/July</code>, etc. Some things are more complex with this method of naming. When using this naming scheme the subpages should use <code>/Archives/</code> not <code>/Archive/</code> as some of the navigation templates rely on Archives being plural.


Remember to use the correct namespace&nbsp;– the part before the colon (<code>:</code>)&nbsp;– when archiving your own user talk page. It should start with "<code>User talk:</code>", not "<code>Talk:</code>".
Remember to use the correct namespace&nbsp;– the part before the colon (<code>:</code>)&nbsp;– when archiving your own user talk page. It should start with "<code>User talk:</code>", not "<code>Talk:</code>".

Alternatively, archives are often named chronologically. Archive templates will not automatically detect subpages with unusual names.


== Are there any existing archived talk pages?==
== Are there any existing archived talk pages?==
Line 33: Line 36:
:<code><nowiki>Special:PrefixIndex/</nowiki>''Talk:Pagename''</code>
:<code><nowiki>Special:PrefixIndex/</nowiki>''Talk:Pagename''</code>
For example
For example
:<code>{{search link|Special:PrefixIndex/Help talk:Archiving a talk page}}</code> will display the talk page to this help page and all its archives.
:<code>[[Special:PrefixIndex/Help talk:Archiving a talk page]]</code> will display the talk page to this help page and all its archives.


== Manual archiving ==
== Manual archiving ==
===Cut and paste procedure===
===Cut and paste procedure===
{{main|Help:Archiving a talk page/Manual archiving}}
# Edit the talk page, copying material you wish to archive to your computer's [[Clipboard (computing)|clipboard]].

# Create a new archive page at <code>Talk:Example page/Archive N</code>, where N is the lowest number for which no archive exists. (You can create the page by searching for the desired title and clicking the red link in the search results, or by editing the URL bar to point to the desired location then clicking the "Create" button.)
The most basic way to [[/Manual archiving|manually archive]] a page is to [[Cut and paste|cut the material]] from the talk page and [[Cut and paste|paste it]] into an archive. If no archive exists, you will need to create a new subpage. Create the archive subpage at <code>Talk:Example page/Archive N</code> where "N" is either "1", the next positive [[integer]], or an appropriate name for a topic-specific archive (for example <code>Talk:Example page/Place of birth debate</code>). When an archive subpage becomes too large, new archives can be created as needed.
#*Alternatively, you may occasionally wish to create a topical archive, in which case the archive should be named according to the topic. For example <code>Talk:Example page/Place of birth debate</code>.
# Paste the clipboard contents into this archive and add {{Tlx|Talk archive}} (or {{tlx|Automatic archive navigator}} to enable navigation between archives) to the top of the code. Publish the new archive.
# Delete copied material from main talk page with edit summary mentioning the name of the new archive.
# If an archive box doesn't already exist on the main talk page, add the line {{Tlx|Archives}} below the WikiProject tags and publish. (This will not be necessary if the main talk page already contains the line {{Tlx|Talk header}}, since this template automatically contains a list of archives if they are [[#Automated archiving|named in the standard way]].)


When manually creating an archive, add {{tlx|Automatic archive navigator}} to the top of each archive page. If an archive box doesn't already exist on the main talk page, add the line {{Tlx|Archives}} below the WikiProject tags. For the full list of archiving templates, see [[:Category:Archival templates]]. For step-by-step instructions, see [[/Manual archiving]].
For a more detailed set of instructions, see [[/Manual archiving]].


=== {{anchor|Semi-automated cut and past procedure}}Semi-automated cut and paste procedure ===
=== {{anchor|Semi-automated cut and past procedure}}Semi-automated cut and paste procedure ===
[[Wikipedia:One click archiving|One click archiving]] allows you to archive any section of a talk page by clicking a button next to the section. To use this method, you'll need to install a [[Wikipedia:User scripts|user script]]. After installing one of the scripts listed below or at [[Wikipedia:One click archiving]], you will see links next to talk page headers allowing you to archive a section immediately:
[[User:Technical 13/Scripts/OneClickArchiver|OneClickArchiver]] and [[User:Σ/Testing facility/Archiver|Archy McArchface]] are userscripts designed to simplify the above manual procedure. Instead of manually copying and pasting the text, these scripts allow you to simply check which sections you wish to archive and specify a page to archive the selected sections to. [[:User:Alexis Jazz/Bawl|Bawl]] is not a dedicated archiver script but can [[:User:Alexis Jazz/Bawl#Move a section to another page?|move a section to another specified page]], which can be a talk page archive.


* [[User:Elli/OneClickArchiver]] – archives one section at a time<!--Maintained as of 2024-->
=== Other manual procedures ===
* [[User:FlightTime/OneClickArchiver.js]] - archives one section at a time<!--Maintained as of 2024-->
[[Help:Archiving a talk page/Other procedures|Other manual procedures]] were once considered equal alternatives with the cut and paste procedure described above. Over time both methods fell out of use and are generally not used. If you have used the page move procedure those pages '''do not qualify''' for [[Wikipedia:CSD#U1|speedy deletion by user request]].
* [[User:andrybak/Archiver]] – archives multiple sections at once<!--Maintained as of 2024-->


{{anchor|Other manual procedures}}
[[Help:Archiving a talk page/Other procedures|Other manual procedures]]—like [[Wikipedia:Moving a page|moving]] talk pages to archive subpages—are discouraged. See the discussion at [[Wikipedia talk:How to archive a talk page/Archive 1#Archive standards]] for rationale.
{{anchor|Automated_archival}}
{{anchor|Automated_archival}}


Line 57: Line 60:
{{for|plain and simple automated archiving|Help:Archiving (plain and simple)}}
{{for|plain and simple automated archiving|Help:Archiving (plain and simple)}}
{{shortcut|WP:AUTOARCHIVE}}
{{shortcut|WP:AUTOARCHIVE}}
[[User:ClueBot III|ClueBot III]], [[User:lowercase sigmabot III|lowercase sigmabot III]] and [[User:cewbot|cewbot]] can automatically create archives for any discussion page (one that has "talk" in the namespace), by moving sections to a subpage when the section has received no comments for a specified period of time. Both bots can archive sections into simple sequentially numbered archives (e.g. <code>YourPage/Archive&nbsp;1</code>, <code>YourPage/Archive&nbsp;2</code>, ...), or archive according to date (e.g. <code>YourPage/Archives/2013/June</code>, <code>YourPage/Archives/2013/July</code>, ...).
[[User:ClueBot III|ClueBot III]] and [[User:lowercase sigmabot III|lowercase sigmabot III]] can automatically create archives for any discussion page (one that has "talk" in the namespace), by moving sections to a subpage when the section has received no comments for a specified period of time. Both bots can archive sections into simple sequentially numbered archives (e.g. <code>YourPage/Archive&nbsp;1</code>, <code>YourPage/Archive&nbsp;2</code>, ...), or archive according to date (e.g. <code>YourPage/Archives/2013/June</code>, <code>YourPage/Archives/2013/July</code>, ...).


See the '''[[User:ClueBot III|ClueBot III page]]''', the '''[[User:lowercase sigmabot III/Archive HowTo|lowercase sigmabot III page]]''' and {{tl|Auto-archive}} for detailed instructions on setting up these bots. Those pages explain each of the parameters used, such as <code>archiveheader</code>, <code>minthreadsleft</code>, etc. The examples below are also available for use. All of the examples here are intended for you to be able to copy them while viewing this page and paste them into the edit box on your target page without ''requiring'' any modification to have a working configuration.
See the '''[[User:ClueBot III|ClueBot III page]]''' and the '''[[User:lowercase sigmabot III/Archive HowTo|lowercase sigmabot III page]]''' for detailed instructions on setting up these bots. Those pages explain each of the parameters used, such as <code>archiveheader</code>, <code>minthreadsleft</code>, etc. The examples below are also available for use. All of the examples here are intended for you to be able to copy them while viewing this page and paste them into the edit box on your target page without ''requiring'' any modification to have a working configuration.


=== Choosing a bot ===
=== Choosing a bot ===
Line 70: Line 73:
|-
|-
! style=text-align:left; | Number of talk pages in use on
! style=text-align:left; | Number of talk pages in use on
| [https://templatecount.toolforge.org/index.php?lang=en&namespace=2&name=MiszaBot%2Fconfig ~32,000]
| [https://templatecount.toolforge.org/index.php?lang=en&namespace=2&name=MiszaBot%2Fconfig ~37,000]
| [https://templatecount.toolforge.org/index.php?lang=en&namespace=2&name=ClueBot+III%2FArchiveThis ~9,400]
| [https://templatecount.toolforge.org/index.php?lang=en&namespace=2&name=ClueBot+III%2FArchiveThis ~10,600]
|-
|-
! style=text-align:left; | Index of archives?
! style=text-align:left; | Index of archives?
Line 92: Line 95:
The following are example configurations to set up automatic archiving of an article talk page or user talk page. These configuration templates do not produce any visible output, so you should generally also include [[#For talk pages|a template]] such as {{tlx|Archives}} to provide readers with links to search and navigate the archives. These templates may also be configured with the parameters <code>bot</code> and <code>age</code> to include a message notifying readers that automatic archiving is taking place. For example: {{tlc|Archives|age{{=}}90|bot{{=}}[[User:ClueBot III#How to archive your page|ClueBot III]]}}.
The following are example configurations to set up automatic archiving of an article talk page or user talk page. These configuration templates do not produce any visible output, so you should generally also include [[#For talk pages|a template]] such as {{tlx|Archives}} to provide readers with links to search and navigate the archives. These templates may also be configured with the parameters <code>bot</code> and <code>age</code> to include a message notifying readers that automatic archiving is taking place. For example: {{tlc|Archives|age{{=}}90|bot{{=}}[[User:ClueBot III#How to archive your page|ClueBot III]]}}.


=== Sequentially numbered archives ===
=== Example with sequentially numbered archives ===


{| class="wikitable"
{| class="wikitable"
Line 98: Line 101:
! colspan="2" | Sequentially numbered archives
! colspan="2" | Sequentially numbered archives
|-
|-
! [[User:lowercase sigmabot III/Archive HowTo|lowercase sigmabot III]] !! [[User:ClueBot III#How to archive your page|ClueBot III]]
! [[User:Lowercase sigmabot III/Archive HowTo|Lowercase sigmabot III]] !! [[User:ClueBot III#How to archive your page|ClueBot III]]
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| <!-- This is intended to be able to be copied while you are viewing the page, not while editing. --><pre>
| <!-- This is intended to be able to be copied while you are viewing the page, not while editing. --><syntaxhighlight lang="wikitext">
<nowiki>{{User:MiszaBot/config
{{User:MiszaBot/config
| algo=old(90d)
| algo=old(90d)
| archive={{SUBST:FULLPAGENAME}}/Archive %(counter)d
| archive={{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}/Archive %(counter)d
| counter=1
| counter=1
| maxarchivesize=75K
| maxarchivesize=75K
Line 109: Line 112:
| minthreadsleft=5
| minthreadsleft=5
| minthreadstoarchive=2
| minthreadstoarchive=2
}}</nowiki></pre>
}}</syntaxhighlight>
|| <!-- This is intended to be able to be copied while you are viewing the page, not while editing. --><pre>
|| <!-- This is intended to be able to be copied while you are viewing the page, not while editing. --><syntaxhighlight lang="wikitext">
<nowiki>{{User:ClueBot III/ArchiveThis
{{User:ClueBot III/ArchiveThis
| age=2160
| age=2160
| archiveprefix={{SUBST:FULLPAGENAME}}/Archive
| archiveprefix={{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}/Archive
| numberstart=1
| numberstart=1
| maxarchsize=75000
| maxarchsize=75000
Line 120: Line 123:
| minarchthreads=2
| minarchthreads=2
| format= %%i
| format= %%i
}}</nowiki>
}}</syntaxhighlight>
</pre>
|}
|}


Both of the above examples will create archive pages, as needed, starting with <code>''TalkPage''/Archive&nbsp;1</code> and continuing with <code>''TalkPage''/Archive&nbsp;2</code>, etc., when the current archive page grows to more than 75,000 bytes. Only sections with dates that are older than 90 days (2,160 hours) will be archived, although the five sections with the most recent contributions will be retained on the talk page no matter how long ago the last contribution was added. If archives for the page already exist, then set the counter/numberstart parameter to the next archive number in the series.
Both of the above examples will create archive pages, as needed, starting with <code>''TalkPage''/Archive&nbsp;1</code> and continuing with <code>''TalkPage''/Archive&nbsp;2</code>, etc., when the current archive page grows to more than 75,000 bytes. Only sections with dates that are older than 90 days (2,160 hours) will be archived, although the five sections with the most recent contributions will be retained on the talk page no matter how long ago the last contribution was added. If archives for the page already exist, then set the counter/numberstart parameter to the next archive number in the series.


{{anchor|FULLPAGENAME}}Warning: the system variable '''<nowiki>{{SUBST:FULLPAGENAME}}</nowiki>''' is replaced by the talk page name when the template is saved to a talk page. However some punctuation characters that can appear in a page name (<code>"&'</code>) are replaced by HTML character codes that are not recognised by the bots (see [[:mediawikiwiki:Manual:PAGENAMEE encoding]] for details about these and other characters). For example <code>'</code> is replaced with <code>&#39&#59;</code> (so if the bot is to work then <code>&#39&#59;</code> must be replaced with <code>'</code>).
{{anchor|FULLPAGENAME}}Warning: the magic word '''<nowiki>{{SUBST:FULLPAGENAME}}</nowiki>''' is replaced by the talk page name when the template is saved to a talk page. However some punctuation characters that can appear in a page name (<code>"&'</code>) are replaced by HTML character codes that are not recognised by the bots (see [[:mediawikiwiki:Manual:PAGENAMEE encoding#PAGENAME]] for details about these and other characters). For example <code>'</code> is replaced with <code>&#39&#59;</code> (so if the bot is to work then <code>&#39&#59;</code> must be replaced with <code>'</code>). This can be circumvented by using <code><nowiki>{{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}</nowiki></code> to automatically sort the encoding.


=== Archives by year and month ===
=== Example with archives by year and month ===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 140: Line 142:
Note:Each time ClueBot III runs it places threads in a ''single'' archive which is the YYYY/Month of (NOW - age). If you are starting archiving with a backlog this will result in a ''single file'' with all of your old threads older than <code>age</code>. ClueBot III does not appear to run every single day. Thus, even when archiving has been running for a while, some threads may end up in an archive that is one month later than when they were last edited.<br />
Note:Each time ClueBot III runs it places threads in a ''single'' archive which is the YYYY/Month of (NOW - age). If you are starting archiving with a backlog this will result in a ''single file'' with all of your old threads older than <code>age</code>. ClueBot III does not appear to run every single day. Thus, even when archiving has been running for a while, some threads may end up in an archive that is one month later than when they were last edited.<br />
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| <!-- This is intended to be able to be copied while you are viewing the page, not while editing. --><pre>
| <!-- This is intended to be able to be copied while you are viewing the page, not while editing. --><syntaxhighlight lang="wikitext">
<nowiki>{{User:MiszaBot/config
{{User:MiszaBot/config
| algo=old(90d)
| algo=old(90d)
| archive={{SUBST:FULLPAGENAME}}/Archives/%(year)d/%(monthname)s
| archive={{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}/Archives/%(year)d/%(monthname)s
| minthreadsleft=4
| minthreadsleft=4
| minthreadstoarchive=2
| minthreadstoarchive=2
}}</nowiki></pre>
}}</syntaxhighlight>
|| <!-- This is intended to be able to be copied while you are viewing the page, not while editing. --><pre>
|| <!-- This is intended to be able to be copied while you are viewing the page, not while editing. --><syntaxhighlight lang="wikitext">
<nowiki>{{User:ClueBot III/ArchiveThis
{{User:ClueBot III/ArchiveThis
| age=2160
| age=2160
| archiveprefix={{SUBST:FULLPAGENAME}}/Archives/
| archiveprefix={{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}/Archives/
| minkeepthreads=4
| minkeepthreads=4
| minarchthreads=2
| minarchthreads=2
| format=Y/F
| format=Y/F
}}</nowiki>
}}</syntaxhighlight>
</pre>
|-
|-
| colspan="2" |Both of the above examples will create archive pages, as needed, with names similar to <code>YourPage/Archives/June</code>, <code>YourPage/Archives/July</code>, etc. Only sections with dates that are older than 90 days (2,160 hours) will be archived.
| colspan="2" |Both of the above examples will create archive pages, as needed, with names similar to <code>YourPage/Archives/June</code>, <code>YourPage/Archives/July</code>, etc. Only sections with dates that are older than 90 days (2,160 hours) will be archived in these examples.
|-
|colspan="2"|see the Warning above for the system variable [[#FULLPAGENAME|FULLPAGENAME]]
|}
|}


Line 196: Line 195:
{{clear}}
{{clear}}
;Example 2
;Example 2
{{Archives|*[[Help_talk:Archiving_a_talk_page/Archive_1|2003-2006]]
{{Archives|*[[Help_talk:Archiving_a_talk_page/Archive_1|2003–2006]]
*[[Help_talk:Archiving_a_talk_page/Archive_2|2006-2007]]
*[[Help_talk:Archiving_a_talk_page/Archive_2|2006–2007]]
*[[Help_talk:Archiving_a_talk_page/Archive_3|2007-2009]]
*[[Help_talk:Archiving_a_talk_page/Archive_3|2007–2009]]
*[[Help_talk:Archiving_a_talk_page/Archive_4|2008-2014]]
*[[Help_talk:Archiving_a_talk_page/Archive_4|2008–2014]]
*[[Help_talk:Archiving_a_talk_page/Archive_5|2014-2019]]}}
*[[Help_talk:Archiving_a_talk_page/Archive_5|2014–2019]]}}
For a box with a manual archive list and a search bar {{tlp|Archives|''List of archives''}} can be used. For the box to the right the code is:
For a box with a manual archive list and a search bar {{tlp|Archives|''List of archives''}} can be used. For the box to the right the code is:
<br><code>{{tlp|Archives|<br>
<br><syntaxhighlight lang="wikitext">{{tlp|Archives|
<nowiki>*[[Help_talk:Archiving_a_talk_page/Archive_1|2003-2006]]</nowiki> <br>
*[[Help_talk:Archiving_a_talk_page/Archive_1|2003–2006]]
<nowiki>*[[Help_talk:Archiving_a_talk_page/Archive_2|2006-2007]]</nowiki> <br>
*[[Help_talk:Archiving_a_talk_page/Archive_2|2006–2007]]
<nowiki>*[[Help_talk:Archiving_a_talk_page/Archive_3|2007-2009]]</nowiki> <br>
*[[Help_talk:Archiving_a_talk_page/Archive_3|2007–2009]]
<nowiki>*[[Help_talk:Archiving_a_talk_page/Archive_4|2008-2014]]</nowiki> <br>
*[[Help_talk:Archiving_a_talk_page/Archive_4|2008–2014]]
<nowiki>*[[Help_talk:Archiving_a_talk_page/Archive_5|2014-2019]]</nowiki>}}</code>
*[[Help_talk:Archiving_a_talk_page/Archive_5|2014–2019]]}}</syntaxhighlight>
{{clear}}
{{clear}}
;Example 3
;Example 3
{{Archives|auto=long|'''Archive box archives''':<br>[[Template talk:Archive box/Archive 1|Archive 1]], [[Template talk:Archive box/Archive 1|Archive 1]]|root=Template talk:Archives}}
{{Archives|auto=long|'''Archive box archives''':<br>[[Template talk:Archive box/Archive 1|Archive 1]], [[Template talk:Archive box/Archive 1|Archive 1]]|root=Template talk:Archives}}
For a box with both an automatic and manual list {{tlp|Archives|auto=long|''List of archives''}} can be used. The example below for [[Template talk:Archives]] where the archives for the old {{tl|archive box}} template are shown use the following code:
For a box with both an automatic and manual list {{tlp|Archives|auto=long|''List of archives''}} can be used. The example below for [[Template talk:Archives]] where the archives for the old {{tl|archive box}} template are shown use the following code:
<code><nowiki>{{Archives|auto=long|'''Archive box archives''':<br>[[Template talk:Archive box/Archive 1|Archive 1]], [[Template talk:Archive box/Archive 1|Archive 1]]}}</nowiki></code>
<syntaxhighlight lang="wikitext" inline>{{Archives|auto=long|'''Archive box archives''':<br>[[Template talk:Archive box/Archive 1|Archive 1]], [[Template talk:Archive box/Archive 1|Archive 1]]}}</syntaxhighlight>
{{clear}}
{{clear}}
;Example 4
;Example 4
Line 230: Line 229:
}}
}}
This template just demonstrate a lot of the parameters. Most of them are quite self explanatory. <br>
This template just demonstrate a lot of the parameters. Most of them are quite self explanatory. <br>
<code><nowiki>{{archives
<syntaxhighlight lang="wikitext">{{archives
| auto = short
| auto = short
| search = no
| search = no
Line 243: Line 242:
| age = 1
| age = 1
| units = year
| units = year
}}</nowiki></code>
}}</syntaxhighlight>
{{clear}}
{{clear}}


Line 252: Line 251:
{| border="0"
{| border="0"
|-
|-
| width="300" |<pre><nowiki>{{Archive box |search=yes |collapsible=yes |
| width="400" |<syntaxhighlight lang="wikitext">{{Archive box |search=yes |collapsible=yes |
bot=ClueBot III |age=90 |</nowiki>
bot=ClueBot III |age=90 |
<nowiki>title=[[Help:Archiving a talk page|Archives]]<!--</nowiki>
title=[[Help:Archiving a talk page|Archives]]<!--
<nowiki>--> ([[{{#titleparts:{{TALKPAGENAME}}|1}}/Archive index|index]])| </nowiki>
--> ([[{{#titleparts:{{TALKPAGENAME}}|1}}/Archive index|index]])|
<nowiki>{{Nowrap|'''2004''': {{Archives by months|2004}}}}</nowiki>
{{Nowrap|'''2004''': {{Archives by months|2004}}}}
<nowiki>{{Nowrap|'''2005''': {{Archives by months|2005}}}}</nowiki>
{{Nowrap|'''2005''': {{Archives by months|2005}}}}
<nowiki>{{Nowrap|'''2006''': {{Archives by months|2006}}}}</nowiki>
{{Nowrap|'''2006''': {{Archives by months|2006}}}}
<nowiki>{{Nowrap|'''2007''': {{Archives by months|2007}}}}</nowiki>
{{Nowrap|'''2007''': {{Archives by months|2007}}}}
<nowiki>{{Nowrap|'''2008''': {{Archives by months|2008}}}}</nowiki>
{{Nowrap|'''2008''': {{Archives by months|2008}}}}
<nowiki>{{Nowrap|'''2009''': {{Archives by months|2009}}}}</nowiki>
{{Nowrap|'''2009''': {{Archives by months|2009}}}}
<nowiki>{{Nowrap|'''2010''': {{Archives by months|2010}}}}</nowiki>
{{Nowrap|'''2010''': {{Archives by months|2010}}}}
<nowiki>{{Nowrap|'''2011''': {{Archives by months|2011}}}}</nowiki>
{{Nowrap|'''2011''': {{Archives by months|2011}}}}
<nowiki>{{Nowrap|'''2012''': {{Archives by months|2012}}}}</nowiki>
{{Nowrap|'''2012''': {{Archives by months|2012}}}}
<nowiki>{{Nowrap|'''2013''': {{Archives by months|2013}}}}</nowiki>
{{Nowrap|'''2013''': {{Archives by months|2013}}}}
<nowiki>{{Nowrap|'''2014''': {{Archives by months|2014}}}}</nowiki>
{{Nowrap|'''2014''': {{Archives by months|2014}}}}
<nowiki>{{Nowrap|'''2015''': {{Archives by months|2015}}}}</nowiki>
{{Nowrap|'''2015''': {{Archives by months|2015}}}}
<nowiki>'''2016''': {{Archives by months|2016}}</nowiki>
'''2016''': {{Archives by months|2016}}
}}</syntaxhighlight>
<nowiki>}}</nowiki> </pre>
| style="vertical-align:top;" | {{Archive box |search=yes |title=[[Help:Archiving a talk page|Archives]]<!--
| style="vertical-align:top;" | {{Archive box |search=yes |title=[[Help:Archiving a talk page|Archives]]<!--
--> ([[{{#titleparts:{{TALKPAGENAME}}|1}}/Archive index|index]]) |collapsible=yes |bot=ClueBot III |age=90
--> ([[{{#titleparts:{{TALKPAGENAME}}|1}}/Archive index|index]]) |collapsible=yes |bot=ClueBot III |age=90
Line 306: Line 305:


== Archive indexing ==
== Archive indexing ==
{{Notice|[[User:Legobot|Legobot]]'s archive indexing task is currently not functioning on a regular basis and has not been for quite some time. It is unclear when, or if, this bot will be functioning.}}
Having an archive index makes finding old discussions on a given topic easier, particularly in pages with many archives, or when the archives are of considerable size. An archive index, when one exists, is typically stored on the page <code>Talk:YourPage/Archive index</code>. While it is possible to generate an index by hand, the <code>/Archive index</code> page is normally generated automatically. There are two bots which automatically create indexes: [[User:Legobot|Legobot]] and [[User:ClueBot III|ClueBot III]].
Having an archive index makes finding old discussions on a given topic easier, particularly in pages with many archives, or when the archives are of considerable size. An archive index, when one exists, is typically stored on the page <code>Talk:YourPage/Archive index</code>. While it is possible to generate an index by hand, the <code>/Archive index</code> page is normally generated automatically. There are two bots which automatically create indexes: [[User:Legobot|Legobot]] and [[User:ClueBot III|ClueBot III]].


Line 317: Line 315:
! Numbered archives !! Archives/Year/Month
! Numbered archives !! Archives/Year/Month
|- valign="top" <!-- This is intended to be able to be copied while you are viewing the page, not while editing. -->
|- valign="top" <!-- This is intended to be able to be copied while you are viewing the page, not while editing. -->
| <pre><nowiki>{{User:HBC Archive Indexerbot/OptIn
| <syntaxhighlight lang="wikitext">{{User:HBC Archive Indexerbot/OptIn
|target=/Archive index
|target=/Archive index
|mask=/Archive <#>
|mask=/Archive <#>
|leading_zeros=0
|leading_zeros=0
|indexhere=yes
|indexhere=yes
}}</nowiki></pre><!-- This is intended to be able to be copied while you are viewing the page, not while editing. -->
}}</syntaxhighlight><!-- This is intended to be able to be copied while you are viewing the page, not while editing. -->
|| <pre><nowiki>{{User:HBC Archive Indexerbot/OptIn
|| <syntaxhighlight lang="wikitext">{{User:HBC Archive Indexerbot/OptIn
|target=/Archive index
|target=/Archive index
|mask=/Archives/<year>/<month>
|mask=/Archives/<year>/<month>
|indexhere=yes
|indexhere=yes
}}</nowiki></pre>
}}</syntaxhighlight>
|}
|}


[[User:ClueBot III|ClueBot III]] automatically creates an archive index when archiving. ClueBot III stores the archive indexes it creates on unique pages in its user space. The archive index for the page you are archiving can be [[WP:TRANS|transcluded]] onto your <code>Talk:YourPage/Archive index</code> page by putting the following text in that page:<br />
[[User:ClueBot III|ClueBot III]] automatically creates an archive index when archiving. ClueBot III stores the archive indexes it creates on unique pages in its user space. The archive index for the page you are archiving can be [[WP:TRANS|transcluded]] onto your <code>Talk:YourPage/Archive index</code> page by putting the following text in that page:<br />
<code><nowiki>{{User:ClueBot III/Master Detailed Indices/{{NAMESPACE}}: {{BASEPAGENAME}}}}</nowiki></code><!-- This is intended to be able to be copied while you are viewing the page, not while editing. -->
<code><nowiki>{{User:ClueBot III/Master Detailed Indices/{{NAMESPACE}}:{{BASEPAGENAME}}}}</nowiki></code><!-- This is intended to be able to be copied while you are viewing the page, not while editing. -->


== Archive searching ==
== Archive searching ==
Line 348: Line 346:


== See also ==
== See also ==
* [[Help:Archiving for dummies]]
* [[Help:Archiving (plain and simple)]]
*[[Help:Using talk pages]]
*[[Help:Using talk pages]]
* [[Wikipedia:Closing discussions]]
* [[Wikipedia:Closing discussions]]
* [[Wikipedia:Refactoring talk pages]]
* [[Wikipedia:Refactoring talk pages]]
* [[Module:Archive list]] is the [[Wikipedia:Lua|Lua]] code that drives Archive templates
* [[Module:Archive list]], [[Wikipedia:Lua|Lua]] code that drives Archive templates
* Pages that need archiving
* Pages that need archiving
** [[:Category:Archive requests|Category Archive requests]] is populated by the {{Tl|Archiveme}} template.
** [[:Category:Archive requests|Category Archive requests]] is populated by the {{Tl|Archiveme}} template.

Latest revision as of 09:52, 17 June 2024

It is customary to periodically archive old discussions on a talk page when the talk page becomes too large. Archiving is often done automatically by a bot. Step-by-step instructions to set up automated archiving can be found at Help:Archiving (plain and simple). There are two main bots that archive talk pages:

Archives can also be created manually. Manual archiving can be done by hand by cutting and pasting from a talk page to an archive subpage. One click archiving streamlines this process by adding an archive button to all talk page sections.

Only noticeboards and talk pages are archived because both can become very long. The talk page guidelines suggest archiving when the talk page exceeds 75 KB (or 75,000 bytes) or has multiple resolved or stale discussions. Older discussions that are still relevant can be summarized and linked using the {{FAQ}} template. Archiving one's own user talk page is preferred but optional; some users simply blank the page.

Technical overview

There are several standard ways to archive a talk page. Each consists of cutting and pasting sections from a talk page to an "Archive" subpage. The sections can archived manually or automatically. Manual archiving is done by editing the page by hand or using a one click archiving script that adds an archive button to talk page sections. Automatic archiving is done by a bot. There are two widely archiving bots, User:ClueBot III and User:Lowercase sigmabot III.

The most common method of naming talk page archives is with sequentially numbered archives. For example:

  • The 20th archive of Talk:Earth would be named Talk:Earth/Archive 20
  • The first archive of User talk:Example would be named User talk:Example/Archive 1

Remember to use the correct namespace – the part before the colon (:) – when archiving your own user talk page. It should start with "User talk:", not "Talk:".

Alternatively, archives are often named chronologically. Archive templates will not automatically detect subpages with unusual names.

Are there any existing archived talk pages?

Most of the methods here rely on checking if any archived talk pages already exist, and placing the new sections to be archived either into the most recent archive, or in a new archive numerically sequenced one above the existing archive. There is a search to check if any subpages exist under a talk page (and archived pages are usually placed in subpages of the existing talk page). In the search bar type:

Special:PrefixIndex/Talk:Pagename

For example

Special:PrefixIndex/Help talk:Archiving a talk page will display the talk page to this help page and all its archives.

Manual archiving

Cut and paste procedure

The most basic way to manually archive a page is to cut the material from the talk page and paste it into an archive. If no archive exists, you will need to create a new subpage. Create the archive subpage at Talk:Example page/Archive N where "N" is either "1", the next positive integer, or an appropriate name for a topic-specific archive (for example Talk:Example page/Place of birth debate). When an archive subpage becomes too large, new archives can be created as needed.

When manually creating an archive, add {{Automatic archive navigator}} to the top of each archive page. If an archive box doesn't already exist on the main talk page, add the line {{Archives}} below the WikiProject tags. For the full list of archiving templates, see Category:Archival templates. For step-by-step instructions, see /Manual archiving.

Semi-automated cut and paste procedure

One click archiving allows you to archive any section of a talk page by clicking a button next to the section. To use this method, you'll need to install a user script. After installing one of the scripts listed below or at Wikipedia:One click archiving, you will see links next to talk page headers allowing you to archive a section immediately:

Other manual procedures—like moving talk pages to archive subpages—are discouraged. See the discussion at Wikipedia talk:How to archive a talk page/Archive 1#Archive standards for rationale.

Automated archiving

ClueBot III and lowercase sigmabot III can automatically create archives for any discussion page (one that has "talk" in the namespace), by moving sections to a subpage when the section has received no comments for a specified period of time. Both bots can archive sections into simple sequentially numbered archives (e.g. YourPage/Archive 1, YourPage/Archive 2, ...), or archive according to date (e.g. YourPage/Archives/2013/June, YourPage/Archives/2013/July, ...).

See the ClueBot III page and the lowercase sigmabot III page for detailed instructions on setting up these bots. Those pages explain each of the parameters used, such as archiveheader, minthreadsleft, etc. The examples below are also available for use. All of the examples here are intended for you to be able to copy them while viewing this page and paste them into the edit box on your target page without requiring any modification to have a working configuration.

Choosing a bot

ClueBot III and lowercase sigmabot III, the two bots in current use for automated archiving, are similar in their behaviour, but have some differences in terms of features they implement and limitations on their use:

lowercase sigmabot III ClueBot III
Number of talk pages in use on ~37,000 ~10,600
Index of archives? requires additional bot Yes
Automatically repair links to discussions when archiving? No Yes (example)
Initial delay before first archive Less than 24 hours (typically begins runs at 00:00 UTC daily) Up to several days (example)
Limitations Will not archive sections without signatures Not suitable for pages linked to by a number of pages in the order of thousands (for performance reasons)

The following are example configurations to set up automatic archiving of an article talk page or user talk page. These configuration templates do not produce any visible output, so you should generally also include a template such as {{Archives}} to provide readers with links to search and navigate the archives. These templates may also be configured with the parameters bot and age to include a message notifying readers that automatic archiving is taking place. For example: {{Archives|age=90|bot=ClueBot III}}.

Example with sequentially numbered archives

Sequentially numbered archives
Lowercase sigmabot III ClueBot III
{{User:MiszaBot/config
| algo=old(90d)
| archive={{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}/Archive %(counter)d
| counter=1
| maxarchivesize=75K
| archiveheader={{Automatic archive navigator}}
| minthreadsleft=5
| minthreadstoarchive=2
}}
{{User:ClueBot III/ArchiveThis
| age=2160
| archiveprefix={{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}/Archive
| numberstart=1
| maxarchsize=75000
| header={{Automatic archive navigator}}
| minkeepthreads=5
| minarchthreads=2
| format= %%i
}}

Both of the above examples will create archive pages, as needed, starting with TalkPage/Archive 1 and continuing with TalkPage/Archive 2, etc., when the current archive page grows to more than 75,000 bytes. Only sections with dates that are older than 90 days (2,160 hours) will be archived, although the five sections with the most recent contributions will be retained on the talk page no matter how long ago the last contribution was added. If archives for the page already exist, then set the counter/numberstart parameter to the next archive number in the series.

Warning: the magic word {{SUBST:FULLPAGENAME}} is replaced by the talk page name when the template is saved to a talk page. However some punctuation characters that can appear in a page name ("&') are replaced by HTML character codes that are not recognised by the bots (see mediawikiwiki:Manual:PAGENAMEE encoding#PAGENAME for details about these and other characters). For example ' is replaced with &#39; (so if the bot is to work then &#39; must be replaced with '). This can be circumvented by using {{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}} to automatically sort the encoding.

Example with archives by year and month

Archives by year/month
lowercase sigmabot III ClueBot III

Note: In this configuration lowercase sigmabot III puts threads into archives based on the last date in each thread. Here is an example of it splitting an archiving task of 185 threads into 54 YYYY/Month based archives.

Note:Each time ClueBot III runs it places threads in a single archive which is the YYYY/Month of (NOW - age). If you are starting archiving with a backlog this will result in a single file with all of your old threads older than age. ClueBot III does not appear to run every single day. Thus, even when archiving has been running for a while, some threads may end up in an archive that is one month later than when they were last edited.

{{User:MiszaBot/config
| algo=old(90d)
| archive={{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}/Archives/%(year)d/%(monthname)s
| minthreadsleft=4
| minthreadstoarchive=2
}}
{{User:ClueBot III/ArchiveThis
| age=2160
| archiveprefix={{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}/Archives/
| minkeepthreads=4
| minarchthreads=2
| format=Y/F
}}
Both of the above examples will create archive pages, as needed, with names similar to YourPage/Archives/June, YourPage/Archives/July, etc. Only sections with dates that are older than 90 days (2,160 hours) will be archived in these examples.

Bot and config details

The configuration template for lowercase sigmabot III is still named {{User:MiszaBot/config}} even though the original bots, MiszaBot I, MiszaBot II, and MiszaBot III, are no longer active.

The best age for threads to be archived will vary, depending on talk page activity. The purpose of archiving article talk pages should be to remove stale discussions, not to stifle discussion. Article talk page threads should not typically be archived in less than 30 days except for very busy talk pages.

The maxarchivesize/maxarchsize parameter determines how large each archive is allowed to grow before a new archive is started. Keeping this value larger than a typical talk page allows the archives to be browsed more easily, but increases page load times. Each individual archive should not be larger than 512kB, because this may cause accessibility problems for some devices. Because a large batch of threads can "overshoot" the maxarch[ive]size parameter, the parameter should always be set lower than the maximum acceptable archive size.

Category:Pages where archive parameter is not a subpage

One limitation of the way automatic archival instructions are set up is how page moves will easily break the functionality. For several reasons, the bots will generally only archive to subpages; that is, the archive must reside as one or more subpages to the talk page in question.

When a page is renamed (moved) and the user forgets to also update the bot instructions, this means that no further archiving will take place (until the bot instructions are updated manually). To facilitate identifying cases where archiving is interrupted, the Category:Pages where archive parameter is not a subpage was created.

If your talk page isn't archiving properly, you might want to check this category. If your page is included, this indicates that the specified archive pages are incorrect.

Templates

For archive pages

A template should be placed at the top of each archive page indicating that it is an archive. The simplest such template is {{Talk archive}}. If the page is using sequentially numbered archives, you can instead use {{Automatic archive navigator}} which will add navigation links to earlier and later archives (example).

ClueBot III and Lowercase sigmabot III will automatically place {{Talk archive}} on archive pages they create. They can be configured to use other templates using the header and archiveheader parameters, respectively. For example (for ClueBot III), |header={{Automatic archive navigator}}.

For talk pages

There are many templates that can be placed on talk pages to make the page's archives visible and accessible to editors. These can be broadly divided into "boxes" (which generally appear floating to the right of the table of contents), and banners. Some pages use one or the other, and some use both. Templates dedicated to archiving should generally be placed last, after all other talk templates, but before the discussions proper.

Archive link boxes

On regularly archived talk pages, it is useful to have an "archive box" template. Common usage is to place the archive box below other header templates and before the first section heading so that the box appears to the right of the table of contents. If the page already has a manual archive box, add the link to the new archive page to it. If there is no archive box yet, you may want to set one up.

The most common archive box template is {{Archives}}. It has a significant number of options. The auto option causes the box to automatically find your archive page list. If auto=yes or auto=short the links are shown as "1, 2, 3". If auto=long the links are shown as "Archive 1, Archive 2, Archive 3"). If the archives do not follow the standard naming scheme (/Archive #), or date labels are desired a manual list can be inputted in the first unnamed parameter as seen in example 2 below. There are also options which show a search field, permit the box to collapse/expand, start the box collapsed/expanded, etc. Many of these are shown in example 4 and all of them are explained in more detail at Template:Archive/doc.

Example 1

For a box with an automatically generated archive list with a search bar. {{Archives}} can be used without any extra parameters.

Example 2

For a box with a manual archive list and a search bar {{Archives|List of archives}} can be used. For the box to the right the code is:


{{tlp|Archives|
*[[Help_talk:Archiving_a_talk_page/Archive_1|2003–2006]]
*[[Help_talk:Archiving_a_talk_page/Archive_2|2006–2007]]
*[[Help_talk:Archiving_a_talk_page/Archive_3|2007–2009]]
*[[Help_talk:Archiving_a_talk_page/Archive_4|2008–2014]]
*[[Help_talk:Archiving_a_talk_page/Archive_5|2014–2019]]}}
Example 3

For a box with both an automatic and manual list {{Archives|List of archives}} can be used. The example below for Template talk:Archives where the archives for the old {{archive box}} template are shown use the following code: {{Archives|auto=long|'''Archive box archives''':<br>[[Template talk:Archive box/Archive 1|Archive 1]], [[Template talk:Archive box/Archive 1|Archive 1]]}}

Example 4

This template just demonstrate a lot of the parameters. Most of them are quite self explanatory.

{{archives
| auto        = short
| search      = no
| root        = Help talk:Archiving a talk page
| collapsible = yes
| collapsed   = yes
| style = background-color:#FFAAAA; width:140px
| title       = These are the archives!
| image       = File:Crystal Clear app file-manager.png
| image-size  = 60px
| bot         = Lowercase sigmabot III
| age         = 1
| units       = year
}}

Automatic archive boxes for year/month archives

Automatic archive boxes for Year/Month archives are a bit more complicated.

The most common method is by using the {{Archives by months}} template to generate links to your existing archives. It produces a live link for each existing archive month within a year. It is commonly used in something similar to:

{{Archive box |search=yes |collapsible=yes |
bot=ClueBot III |age=90 |
title=[[Help:Archiving a talk page|Archives]]<!--
--> ([[{{#titleparts:{{TALKPAGENAME}}|1}}/Archive index|index]])|
{{Nowrap|'''2004''': {{Archives by months|2004}}}}
{{Nowrap|'''2005''': {{Archives by months|2005}}}}
{{Nowrap|'''2006''': {{Archives by months|2006}}}}
{{Nowrap|'''2007''': {{Archives by months|2007}}}}
{{Nowrap|'''2008''': {{Archives by months|2008}}}}
{{Nowrap|'''2009''': {{Archives by months|2009}}}}
{{Nowrap|'''2010''': {{Archives by months|2010}}}}
{{Nowrap|'''2011''': {{Archives by months|2011}}}}
{{Nowrap|'''2012''': {{Archives by months|2012}}}}
{{Nowrap|'''2013''': {{Archives by months|2013}}}}
{{Nowrap|'''2014''': {{Archives by months|2014}}}}
{{Nowrap|'''2015''': {{Archives by months|2015}}}}
'''2016''': {{Archives by months|2016}}
}}

The above code produces the archive box to the above right. The example here has no month names which are links because there are no archive files for this page. You can, of course, delete the lines for the years you don't want.

The default for the {{Archives by months}} template is that archive page names are in the format YourPage/Archives/2013/June, YourPage/Archives/2013/July, etc. However, {{Archives by months}} allows you to specify various naming conventions for your archives. Archives can have an arbitrary prefix by using the archprefix parameter (e.g. archprefix=Archive/ instead of Archives/). Months can be in four formats: A) the default uses January, February, March, etc.; B) abbrev3=yes months are Jan, Feb, Mar, etc.; C) numbers=yes months are 1, 2, 3, ... 12; D) numbers0=yes months are 01, 02, 03, ... 12.

If you are using ClueBot III, it has a couple of additional options for creating an archive box. These involve the use of either the archivebox or the index parameters. See the ClueBot III page for more information.

Archive link banner

Instead of putting the archive links in a box that floats to the right or left, some prefer the links in a banner like {{Talk header}}. Yearly and alphabetic archives are automatically detected in addition to regular sequential archives. A search box is by default included and if the page is archived by bots an auto archiving notice can be included by specifying |archive_age= in days.

{{Talk header}}

The archive links show up in a row at the bottom of the above banner. For a real world example see Talk:Proxima Centauri.

Archive indexing

Having an archive index makes finding old discussions on a given topic easier, particularly in pages with many archives, or when the archives are of considerable size. An archive index, when one exists, is typically stored on the page Talk:YourPage/Archive index. While it is possible to generate an index by hand, the /Archive index page is normally generated automatically. There are two bots which automatically create indexes: Legobot and ClueBot III.

Legobot, formerly HBC Archive Indexerbot, can create an archive index page based on a set of archives. See the bot's instructions for details on how to set up archive indexing. Legobot generated archive indexes are the most commonly available type of index. To set up Legobot archiving you have to create your Talk:YourPage/Archive index page and need to place:
<!-- Legobot can blank this -->
on top of the index page. The following is a Legobot configuration that works with numbered archives which you can place on the page you are archiving:

Example Legobot configurations
Numbered archives Archives/Year/Month
{{User:HBC Archive Indexerbot/OptIn
|target=/Archive index
|mask=/Archive <#>
|leading_zeros=0
|indexhere=yes
}}
{{User:HBC Archive Indexerbot/OptIn
|target=/Archive index
|mask=/Archives/<year>/<month>
|indexhere=yes
}}

ClueBot III automatically creates an archive index when archiving. ClueBot III stores the archive indexes it creates on unique pages in its user space. The archive index for the page you are archiving can be transcluded onto your Talk:YourPage/Archive index page by putting the following text in that page:
{{User:ClueBot III/Master Detailed Indices/{{NAMESPACE}}:{{BASEPAGENAME}}}}

Archive searching

If there are several archives, it is easy to search them all at once using the optional search parameter prefix. For example, suppose we want to begin a discussion about adding a security section to the Linux article. Before bringing up the topic we can do the following search: security prefix:Talk:Linux/. This will look in all the subpages of the Linux article in its Talk namespace.

The templates {{Archives}}, {{Archive box}}, and {{Talk header}} have a parameter search=yes which provides a helpful search box on the talk page to automate searching, as do independent search templates such as {{search archives}}. It is recommended that when a page is archived, such a template be put on the surviving talk page to simplify access to past discussions.

Continuing discussions

If a thread has been archived prematurely, such as when it is still relevant to current work or was not concluded, unarchive it by copying it back to the talk page from the archive, and deleting it from the archive. Do not unarchive a thread that was effectively closed; instead, start a new discussion and link to the archived prior discussion.

Example pages

Here are actual discussion pages on Wikipedia where you can study the code to see how archive pages were created.

  • Talk:Psychokinesis has a simple archive box with a search field.
  • Talk:Jesus has a mixture of numbered and topical archives. It also includes a summary of recently archived discussions.
  • Talk:Main Page has many numbered archives. The archives are listed on a separate subpage and transcluded.

See also