{{module rating|protected}}
This module can be applied to any talk page or discussion archive, and will return links to all the numbered archives of that page or its parent page. By default the module uses the naming convention specified at [[WP:ARCHIVE]], <code>Talk:PAGENAME/Archive 1</code>, with a capital A, a space before the number, and no leading zeros. This module should not usually be substituted – that way, the list of links will update itself whenever a new numbered archive is added. 
This module can be used with {{tl|archive box}} to produce a box of numbered archive links without entering them all manually. To do this, use <code><nowiki>{{archive&nbsp;box|auto=yes}}</nowiki></code>.
The module is a replacement for the old {{tl|archive list}} and {{tl|archive list long}} templates.
== Usage ==
The main function. Returns a list of archive links.
<pre>{{#invoke:Archive list|main
| root            = 
| links           = 
| nobr            = 
| prefix          = 
| prefixspace     = 
| linkprefix      = 
| linkprefixspace = 
| sep             = 
| linesep         = 
| start           = 
| max             = 
| auto            =
The count function. Returns the number of the most recent archive.
<pre>{{#invoke:Archive list|count
| root            = 
| prefix          = 
| prefixspace     = 
== Parameters ==
Valid parameters are:
* <code>root = ''<root>''</code> - use this to specify a root other than that of the page from which the template is transcluded.
* <code>links = ''#''</code> - the number of links to display per line. The default is 10.
* <code>nobr = ''yes''</code> - set this to <code>''yes''</code> to remove all line breaks. This parameter cannot be used in conjunction with {{para|links}}.
* <code>prefix = ''<prefix>''</code> - a custom prefix for the archives, without the number. The default is "Archive ".
* <code>prefixspace = ''yes''</code> - adds a space between the prefix and the archive number for prefixes specified with {{para|prefix}}.
* <code>linkprefix = ''<linkprefix>''</code> - a custom prefix for the display links, without the number. The default is blank. If auto=long, use 'none' to have it blank.
* <code>prefixspace = ''yes''</code> - adds a space between the link prefix and the archive number for prefixes specified with {{para|linkprefix}}.
* <code>sep = ''<sep>''</code> - the separator for archive links. The default value is the comma separator for the language set in your preferences: "<code>{{int:comma-separator}}</code>". If this is set to either <code>''dot''</code> (<code>{{int:dot-separator}}</code>), <code>''pipe''</code> (<code>{{int:pipe-separator}}</code>), <code>''comma''</code> (<code>{{int:comma-separator}}</code>), or <code>''tpt-languages''</code> (<code>{{int:tpt-languages-separator}}</code>), then it uses that separator as specified for your default language. If it is any other value, that value is used as it is. If this module is called from #invoke then whitespace is stripped, but if called from another module then whitespace is preserved. This allows for other modules to use this module to create wikitables, etc. If called from #invoke, the whitespace problem can be worked around by using <code>&amp;#32;</code> (for spaces) and <code><nowiki><br /></nowiki></code> (for new lines).
* <code>linesep = ''<linesep>''</code> - the separator for lines of archive links. The possible input values are the same as for the {{para|sep}} parameter, and the default separator text is <code><nowiki><br /></nowiki></code>. How often the value is displayed depends on the value of {{para|links}}.
* <code>start = ''#''</code> - the archive number to start listing archives from. This must be smaller than the largest archive number, or {{para|max}} if it is specified.
* <code>max = ''#''</code> - the largest archive number to list. This overrides the automatic detection of archive page numbers.
* <code>auto = ''long''</code> - outputs as a table. Changes default value of links to 3 and linkprefix to 'Archive '.
== Limitations ==
The old {{tl|archive list}} template was limited to detecting 200 archives. This module has no such limitation. However, at very high numbers of archives this module might reach the [[Wikipedia:Template limits#Expensive parser function calls|expensive function call limit]]. On a page with no other templates that call expensive functions, this module should be able to output 400,000+ archive links. On pages with other templates that make expensive function calls, the module may fail sooner.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.