Template:Archive navigation/sandbox
- Archive 5
- 6
![]() | This is the template sandbox page for Template:Archive navigation (diff). See also the companion subpage for test cases. |
Example display
[edit]Usage
[edit]{{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
[edit]- {{Archive number}} for a way to automatically insert the archive number.
- {{Talk archive navigation}}
TemplateData
[edit]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 name | optional |
show missing links | showmissing | Show links to pages that are missing.
| Boolean | optional |