Template:Trim and Template:Archivelinks/doc: Difference between pages
(Difference between pages)
m
why'd I do that? copyedit
m (1 revision imported) |
mp>Blue m (why'd I do that? copyedit) |
||
Line 1: | Line 1: | ||
< | === Usage === | ||
</ | Put this template <nowiki>{{archivelinks}}</nowiki> 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: [[Main_Page|1]], [[Main_Page|2]], [[Main_Page|3]] | |||
The path to the archive pages and the look of the links can be customised with the template's parameters. | |||
=== Advanced usage: === | |||
<nowiki>{{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} | |||
------------------------------------------------------------------------------------------------------------ | |||
</nowiki> | |||
=== See also === | |||
<includeonly> | |||
<!-- ADD CATEGORIES HERE --> | |||
[[Category:In-text templates]] | |||
</includeonly> |