Template:Archive box: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(A nifty "additions": "Archive" for 1 archive; "Archives" for the rest, and a blank if you fail one way or the other; plus, "Usage" editing)
m (Text replacement - "{{[Cc]lear}}" to "{{clr}}")
 
(29 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{|align="right" style="border: solid 1px #CCC; padding: 1px; background-color:#FCFCFC"
<div role="navigation" aria-labelledby="archives-label" style="border:2px solid #7fbfbf; padding:.3em; background-color:#eff7f7; float:right; text-align:center; margin:0 0 .5em .5em; max-width: 95.8%"><!--
|-
-->[[File:Archive.png|50px|Archives|link=|alt=]]
|<center>[[Image:Replacement filing cabinet.svg|40px|Archives]]</center>
    {{#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><!--
|{{#switch:{{{1}}}
-->{{#ifexpr:{{{1|0}}}<=0|
| 1 = {{!}}-{{!}}<center>'''Archive'''</center>
        '''There are no archives provided for this page.'''<br />Please specify the archive count or remove this template from this page.
| 2 = {{!}}-{{!}}<center>'''Archive</center>
    |
| 3
        <ol style="padding:0;margin:0">{{#loop:i|1|{{{1|0}}}|<li style="display:inline;margin:.2em">[[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive {{#var:i}}|{{#var:i}}]]</li>}}</ol>
| 4
    }}
| 5
</div><noinclude>{{clr}}
| 6
{{Archive box/doc}}
| 7
 
| 8
[[Category:Message templates]]</noinclude>
|
}}
----
<center>{{#switch:{{{1}}}
| 1 = [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 1|1]]
| 2 = [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 1|1]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 2|2]]
| 3 = [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 1|1]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 2|2]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 3|3]]
| 4 = [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 1|1]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 2|2]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 3|3]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 4|4]]
| 5 = [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 1|1]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 2|2]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 3|3]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 4|4]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 5|5]]
| 6 = [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 1|1]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 2|2]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 3|3]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 4|4]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 5|5]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 6|6]]
| 7 = [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 1|1]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 2|2]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 3|3]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 4|4]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 5|5]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 6|6]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 7|7]]
| 8 = [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 1|1]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 2|2]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 3|3]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 4|4]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 5|5]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 6|6]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 7|7]] [[{{NAMESPACE}}:{{BASEPAGENAME}}/Archive 8|8]]
| = '''''WARNING!''''' You have not inputted a value for the number of archive pages! Input one by instead putting <nowiki>{{Page Archive Box|# of Archive Pages}}</nowiki>
| '''''WARNING!''''' The Page Archive Box's coding needs to be updated. You have exceeded the number of archive pages it can handle. Please contact a reliable coding person to handle this problem.
}}</center>
|}
<noinclude>{{Clear}}
==Usage==
This template creates an archive box which links to archives of pages such as talk pages. This can be done with <nowiki>{{Archive Box|# of Archives}}</nowiki>, where "# of Archives" is the number of archive pages. Please note, however, that there is a limit to the number of archives currently (8). It must be updated to satisfy the number of user archives. You should ask someone good with templates if you receive the box displayed above.
</noinclude><noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 13:48, September 16, 2022

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.