Editing
Module:Archive list/doc
From Thetacola Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{high-use}} {{module rating|protected}} '''Module:Archive list''' 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. For ease of access, {{tl|archive list}} can be used. This module is used in {{tl|Archives}} to produce a box of numbered archive links without entering them all manually. == Usage == ;Main 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 = }}</pre> ;Count The count function. Returns the number of the most recent archive. <pre>{{#invoke:Archive list|count | root = | prefix = | prefixspace = }}</pre> == 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>&#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.
Summary:
Please note that all contributions to Thetacola Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:High-use
(
edit
)
Template:Module rating
(
edit
)
Template:Nowrap
(
edit
)
Template:Para
(
edit
)
Template:Template link
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:High-use
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/A
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Page actions
Module
Discussion
Read
Edit source
History
Page actions
Module
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information