Difference between revisions of "Template:Archive navigation/doc"
Jump to navigation
Jump to search
blackwiki>Zyxw m (add {{TemplateData header}} (via JWB)) |
m (18 revisions imported) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | |||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | ||
| Line 11: | Line 10: | ||
=== Usage === | === Usage === | ||
| − | < | + | <kbd><nowiki>{{archive-nav|N}}</nowiki></kbd> where N is archive number. Archive subpages must be named as "Archive 1", "Archive 2", "Archive 3", etc. for this to work. Otherwise use <kbd><nowiki>{{archive-nav|N|prev=Prev|next=Next}}</nowiki></kbd>, where Prev and Next are the names of the preceding and following archive subpages (e.g. <kbd><nowiki>{{archive-nav|3|prev=Archive2|next=archive 4}}</nowiki></kbd>). |
Optionally, you can use {{tl|archive number}} to provide N for you. | Optionally, you can use {{tl|archive number}} to provide N for you. | ||
| Line 69: | Line 68: | ||
</templatedata> | </templatedata> | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES HERE, THANKS --> | <!-- CATEGORIES HERE, THANKS --> | ||
[[Category:Archival templates]] | [[Category:Archival templates]] | ||
[[Category:Talk header templates]] | [[Category:Talk header templates]] | ||
| − | + | }}</includeonly> | |
| − | </includeonly> | ||
Latest revision as of 12:46, 23 October 2020
| This is a documentation subpage for Template:Archive navigation. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Example display
Usage
{{archive-nav|N}} where N is archive number. Archive subpages must be named as "Archive 1", "Archive 2", "Archive 3", etc. for this to work. Otherwise use {{archive-nav|N|prev=Prev|next=Next}}, where Prev and Next are the names of the preceding and following archive subpages (e.g. {{archive-nav|3|prev=Archive2|next=archive 4}}).
Optionally, you can use {{archive number}} to provide N for you.
By default, a link to the next archive will be generated, even if that archive does not exist. To suppress this link, use showmissing=0.
See also
- {{Archive number}} for a way to automatically insert the archive number.
- {{archive nav}}
- {{Talk archive navigation}}
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Archive navigation
Archive page navigation
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| N | 1 | Number of current archive page
| Number | required |
| previous archive page | prev | Name of previous archive subpage.
| String | optional |
| next archive subpage | next | Name of next archive subpage.
| Page | optional |
| show missing links | showmissing | Show links to pages that are missing.
| Boolean | optional |