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

Template:Yearly archive list

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

This template returns a list of existing archive sub-pages with names that end in a four-digit year (starting at 2003). 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.

Contents

  • 1 Usage
  • 2 Examples
  • 3 Limitations
  • 4 See also

Usage

{{ Yearly archive list 
| root   = 
| prefix = 
| sep = 
}}

|root=

Default = {{FULLPAGENAME}}/.
Can be used to specify which page is searched. The default is the page where the template is placed. Use prefix for anything that belongs between the trailing slash and the year number.

|prefix=

Default = "Archive " (No quotes, but note trailing space.)
Specify a base that will be inserted between root and the four-digit year. Use   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=

Default = ", " (No quotes, but note trailing space.)
Specify the separator between each year. Use   to represent a whitespace between each year/

Examples

{{ 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 .

Limitations

The first year must be 2003, the final year can not be more than one year in the future. These limitations are to limit the number of expensive parser function calls.

See also

  • Template:Yearly archive list/display called by this template
  • Template:MonthlyArchive Monthly archive template
  • Template:Month-year archive nav Monthly archive navigation template
  • 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:Yearly 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:Yearly_archive_list&oldid=39828"
Category:
  • Archival templates
Last edited on 24 March 2022, at 04:58

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 24 March 2022, at 04:58.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop