This is a documentation subpage for Template:Yearly archive list. It may contain usage information, categories and other content that is not part of the original template page. |
This template returns a list of existing archive sub-pages with names that end in a four-digit year (starting at 2000). The list is in short format, i.e. just the four-digit years, separated by commas or sep. Each year is linked to the matching archive. All entries are on a single line with no line breaks, in a format suitable to pass to parameter list of Template:archives. Makes use of Template:Yearly archive list/display, Template:For loop and Module:string.
(( Yearly archive list | root = | prefix = | sep = ))
|root=
((FULLPAGENAME))/.
|prefix=
 
to represent a whitespace between the prefix and the year, since leading trailing spaces are stripped from named parameters before being passed. Quotes don't help.|sep=
 
to represent a whitespace between each year/(( Yearly archive list | root = Talk:Ionizing radiation | prefix = Archive  ))
will find all the archives of Talk:Ionizing radiation and return
Using the defaults, ((Yearly archive list))
, if placed on Talk:Ionizing radiation, would also return
If the archives are named by year only, immediately preceded by a '/' (slash), then the default prefix must be overwritten. For example, if an archive is of the form User talk:Ytrottier/Archives/2005 then this:
(( Yearly archive list | root = User talk:Ytrottier/Archives | prefix = ))
or if placed directly on User talk:Ytrottier this:
(( Yearly archive list | prefix = /Archives/ ))
will return .
The first year must be after 1999 (can be changed), the final year must be 2034 (10 years in the future, can be changed).
Templates for archiving | |||||||
---|---|---|---|---|---|---|---|
| |||||||
Recommended |
| ||||||
Side box |
| ||||||
Headers |
| ||||||
Content formatting |
| ||||||
Lists |
| ||||||
Discussion |
| ||||||
Automatic archiving systems |
| ||||||