Misplaced Pages

Template:Archive list: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactivelyContent deleted Content addedVisualWikitext
Revision as of 22:09, 7 January 2007 view sourceGurch (talk | contribs)Extended confirmed users, Rollbackers109,955 edits new template  Latest revision as of 13:18, 21 February 2015 view source Martijn Hoekstra (talk | contribs)Extended confirmed users19,333 edits TfD closed as merge 
(35 intermediate revisions by 18 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 1|]<!-- <includeonly>{{#invoke:Archive list|main}}</includeonly><noinclude>
{{documentation}}
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 2|, ]<!--
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 3|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 4|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 5|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 6|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 7|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 8|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 9|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 10|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 11|<br/>]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 12|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 13|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 14|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 15|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 16|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 17|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 18|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 19|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 20|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 21|<br/>]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 22|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 23|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 24|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 25|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 26|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 27|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 28|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 29|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 30|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 31|<br/>]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 32|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 33|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 34|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 35|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 36|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 37|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 38|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 39|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 40|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 41|<br/>]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 42|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 43|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 44|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 45|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 46|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 47|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 48|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 49|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 50|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 51|<br/>]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 52|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 53|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 54|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 55|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 56|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 57|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 58|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 59|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 60|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 61|<br/>]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 62|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 63|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 64|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 65|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 66|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 67|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 68|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 69|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 70|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 71|<br/>]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 72|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 73|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 74|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 75|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 76|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 77|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 78|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 79|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 80|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 81|<br/>]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 82|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 83|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 84|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 85|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 86|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 87|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 88|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 89|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 90|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 91|<br/>]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 92|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 93|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 94|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 95|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 96|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 97|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 98|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 99|, ]<!--
-->{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}/Archive 100|, ]<!--
-->}}}}}}}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}}}}}}}<!-- one row for each 10 items --></includeonly><noinclude>
This template 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. In order for the template to work, the archives must follow the naming convention specified at ], <tt>Talk:PAGENAME/Archive 1</tt>, with a capital "A", a space before the number, and no leading zeros. This template should not be substituted – that way, the list of links will update itself whenever a new numbered archive is added. This template can be used with {{]}} to produce a box of numbered archive links without entering them all manually. To do this, use <tt><nowiki>{{archive&nbsp;box|{{archive&nbsp;list}}}}</nowiki></tt>.

This template is based on a template created by ], ].
]
]
</noinclude> </noinclude>

Latest revision as of 13:18, 21 February 2015

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 85,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:

This template 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 template uses the naming convention specified at WP:ARCHIVE, Talk:PAGENAME/Archive 1, with a capital A, a space before the number, and no leading zeros. This template should not usually be substituted – that way, the list of links will update itself whenever a new numbered archive is added.

This template is used by {{archives}} to produce a box of numbered archive links without entering them all manually if a list isn't defined manually.

Usage

{{archive list
| root                = 
| links               = 
| nobr                = 
| prefix              = 
| prefixspace         = 
| linkprefix          = 
| linkprefixspace     = 
| sep                 = 
| linesep             = 
| start               = 
| max                 = 
| auto                =
| leavefirstcellblank =
}}

Parameters

Valid parameters are:

  • root = <root> - use this to specify a root other than that of the page from which the template is transcluded.
  • links = # - the number of links to display per line. The default is 10.
  • nobr = yes - set this to yes to remove all line breaks. This parameter cannot be used in conjunction with |links=.
  • prefix = <prefix> - a custom prefix for the archives, without the number. The default is "Archive ".
  • prefixspace = yes - adds a space between the prefix and the archive number for prefixes specified with |prefix=.
  • linkprefix = <linkprefix> - a custom prefix for the display links, without the number. The default is blank. If auto=long, use 'none' to have it blank.
  • linkprefixspace = yes - adds a space between the link prefix and the archive number for prefixes specified with |linkprefix=.
  • sep = <sep> - the separator for archive links. The default value is the comma separator for the language set in your preferences: ", ". If this is set to either dot ( · ), pipe ( | ), comma (, ), or tpt-languages (⧼tpt-languages-separator⧽), then it uses that separator as specified for your default language. If it is any other value, that value is used as it is. Whitespace is stripped from the values, but this can be worked around by using &#32; (for spaces) and <br /> (for new lines). It is also possible to work around the whitespace limitation by calling Module:Archive list directly from another Lua module.
  • linesep = <linesep> - the separator for lines of archive links. The possible input values are the same as for the |sep= parameter, and the default separator text is <br />. How often the value is displayed depends on the value of |links=.
  • start = # - the archive number to start listing archives from. This must be smaller than the largest archive number, or |max= if it is specified.
  • max = # - the largest archive number to list. This overrides the automatic detection of archive page numbers.
  • auto = long - outputs as a table. Changes default value of links to 3 and linkprefix to 'Archive '.
  • leavefirstcellblank = yes - leave the first cell of the first row empty, so that each row starts on a multiple of the number of links per line. In other words, this aligns the first column to contain round numbers (multiples of the links param). This can make long archive lists easier to read. This option is off by default for compatibility.

Limitations

At very high numbers of archives the template might reach the expensive function call limit. On a page with no other templates that call expensive functions, this template should be able to output 400,000+ archive links. On pages with other templates that make expensive function calls, it may fail sooner.

Related templates

For other related templates see navbox below.

Templates for archiving
Recommended
Side box
Headers
With
navigation
Without
navigation
With
search
  • {{Talk header}} (contains an automatically appearing archive search box and nav)
Content
formatting
Lists
Discussion
Automatic
archiving
systems
The above documentation is transcluded from Template:Archive list/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: