Template:Archivelinks

From RationalWiki
Jump to navigation Jump to search

 ,(new)


[edit] [purge] Documentation

Usage

Put this template {{archivelinks}} on any talk page and it will automatically show links to all existing archive pages (currently up to 10).

It can also be put on the archive pages themselves, and will show links to the other archives.

The default template (without parameters) will assume that the archives exist at /Archive1, /Archive2, /Archive3 etc. and show like this: 1, 2, 3

The path to the archive pages and the look of the links can be customised with the template's parameters.


Advanced usage:

{{archivelinks
   | archive path component  (default: 'Archive')  the text between the '/' and the numeral in the paths to the archive pages.
   | link before markup      (default: '')         the text that will show before the numeral in archive links
   | link after markup       (default: '')         the text that will show after the numeral in archive links
   | link separator markup   (default: ', ')       the text that will show between archive links
 }}

 ------------------------------------------------------------------------------------------------------------
 == Examples ==                   Code:                                     Output:
 ------------------------------------------------------------------------------------------------------------
 if archive pages are at 
 '/archive1' and '/archive2'      {{archivelinks|archive|Archive #||, }}    Archive #1, Archive #2
 ------------------------------------------------------------------------------------------------------------
 if archive pages are at
 '/Archive 1' and 'Archive 2'     {{archivelinks|Archive |{|}| - }}         {1} - {2}
 ------------------------------------------------------------------------------------------------------------

See also