• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Archive list

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 58,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:
  • Module:Archive list

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.

Contents

  • 1 Usage
  • 2 Parameters
  • 3 Limitations
  • 4 See also
  • 5 Related templates

Usage

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

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 (⧼dot-separator⧽), pipe ( | ), comma (, ), or tpt-languages ( • ), 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 '.

Limitations

This template has been updated to use Module:Archive list. The old template was limited to detecting 200 archives, but now there is no such limitation. However, 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.

See also

  • Module:Archive list - the Lua module this template is based on.

Related templates

For other related templates see navbox below.

  • v
  • t
  • e
Templates for archiving
  • Archiving (simple)
  • Archiving (technical)
Recommended
  • {{Archives}} (very configurable side box or banner for main talk page)
  • {{Automatic archive navigator}} (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)
  • Archy McArchface (one-click archiver script)
Side box
  • {{Archives}}
Headers
With
navigation
  • {{Annual archive}}
  • {{Archived annually}}
  • {{Archive navigation}}
  • {{Archive number}}
  • {{Automatic archive navigator}} (does not need parameter)
  • {{Archives by months}}
  • {{Month-year archive nav}}
  • {{Monthly archived talk}}
  • {{UserTalkArchive}}
  • {{Warning archive notice}}
Without
navigation
  • {{Archive}}
  • {{Archive index}}
  • {{Archivemainpage}}
  • {{Archiving}}
  • {{Talk archive notice with diff}}
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}}
  • {{Collapse bottom}}
  • {{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
  • Archy McArchface (one-click archiver script)
  • ClueBot III
    • {{User:ClueBot III/ArchiveNow}}
  • HBC Archive Indexerbot (Legobot)
  • lowercase sigmabot III (MiszaBot)
  • OneClickArchiver
  • {{Archive basics}}
  • {{subst:Bump}}
  • {{subst:Do not archive until}}
  • {{subst:Oca}}
  • {{subst:Pin section}}
  • {{subst:Setup auto archiving}}
  •  Category:Archival templates
The above documentation is transcluded from Template:Archive list/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Archive_list&oldid=5221"
Categories:
  • Lua-based templates
  • Archival templates
Last edited on 21 February 2015, at 08:18

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 21 February 2015, at 08:18.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop