Template:Archive box: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Testing. Should link archives to the current talk page.)
(navigation list instead of table; slightly more space between links for mobile)
Line 1: Line 1:
{| style="border: solid 2px #7fbfbf; padding: 1px; background-color:#eff7f7; float: right; text-align:center;"
<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=]]
| [[Image:Archive.png|50px|Archives]]{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}||<br><small>[[{{NAMESPACE}}:{{BASEPAGENAME}}|current talk page]]</small>}}
    {{#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><!--
! Archive{{PLURAL:{{{1|}}}||s}}  
-->{{#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.
|{{#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.}}{{#loop:i|1|{{{1|0}}}|<nowiki/> [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive {{#var:i}}|{{#var:i}}]]}}
    |
|}<noinclude>{{Clear}}
        <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

Archives
There are no archives provided for this page.
Please specify the archive count or remove this template from this page.

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.