Template:Archive box: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
Serpent King (talk | contribs) m (Testing. Should link archives to the current talk page.) |
Rigel Kent (talk | contribs) (navigation list instead of table; slightly more space between links for mobile) |
||
Line 1: | Line 1: | ||
<div role="navigation" aria-labelledby="archives-label" style="border: solid 2px #7fbfbf; padding: .3em; background-color:#eff7f7; float: right; text-align:center;"><!-- | |||
-->[[Image:Archive.png|50px|Archives|link=|alt=]] | |||
{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}||<div style="font-size:85%">[[{{NAMESPACE}}:{{BASEPAGENAME}}|current talk page]]</div>}} | |||
<div id="archives-label" style="padding:.3em 0;font-weight:bold">Archive{{PLURAL:{{{1|}}}||s}}</div><!-- | |||
-->{{#ifexpr:{{{1|0}}}<=0| | |||
'''There are no archives provided for this page.'''<br />Please specify the archive count or remove this template from this page. | |||
| | |||
<ol style="margin:0">{{#loop:i|1|{{{1|0}}}|<li style="display:inline;margin:.2em">[[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive {{#var:i}}|{{#var:i}}]]</li>}}</ol> | |||
}} | |||
</div><noinclude>{{Clear}} | |||
{{Archive box/doc}} | {{Archive box/doc}} | ||
[[Category:Message templates]] | [[Category:Message templates]] | ||
</noinclude> | </noinclude> |
Revision as of 22:57, July 29, 2016
Usage
- Note: The following documentation is stored at Template:Archive box/doc. If you would like to change this text, please edit it there.
This template creates an archive box which links to archives of pages such as talk pages. This can be done with {{Archive box|numberOfArchives}}
, where "numberOfArchives" is the number of archive pages.