Template:Archives: Difference between revisions

From TestWiki
Content added Content deleted
(spacing tweaks per talk page request)
(Undid revision 16813 by SMcCandlish (talk))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="width: {{{width|315px}}}"
<table id="archivebox" role="presentation" class="{{talk other |tmbox tmbox-notice |ombox ombox-notice |demospace={{{demospace|}}}}} mbox-small {{#ifeq:{{{collapsed}}}|yes
| style="text-align: right; font-size: x-small;" class="plainlinks" | [{{fullurl:{{{archivelist|{{FULLPAGENAME}}/archivelist}}}|action=edit&preload=Template:Archives/Preload}} edit]
|collapsible collapsed
|-
|{{#ifeq:{{{collapsible}}}|yes
! [[File:Crystal Clear app file-manager.png|50px|Archive]]
|collapsible
|-
}}
! [[w:Help:Archiving a talk page|Archives]]
}}" style="text-align: center; padding: 1em; {{#if:{{{box-width|}}}|width:{{{box-width}}};}} {{{style|}}}">
|-
<tr><th style="padding-top: 0.6em;">{{#switch:{{{image|}}}
| style="text-align:{{{list align|left}}};" | {{{1|{{#ifexist:{{{archivelist|{{FULLPAGENAME}}/archivelist}}}|{{{{{archivelist|{{FULLPAGENAME}}/archivelist}}}}}}}}}}
|none = <!-- no image -->
|}<noinclude>
|<!--blank-->= [[File:Replacement filing cabinet.svg|{{{image-size|40px}}}|alt=|link=]]<br>
[[Category:Template]]
|#default = {{#invoke:InfoboxImage|InfoboxImage
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
|alt={{{alt|}}}
[[Category:Archive templates]]
|link={{{link|}}}
|image={{{image|Replacement filing cabinet.svg}}}
|size={{{image-size|}}}|sizedefault=40px
}}<br>
}}{{#if:{{{index|}}}
|[[{{#rel2abs: {{{index}}} }}|{{{title|Archives}}}]]
|{{{title|Archives}}}
}}
</th></tr>
<tr><td class="plainlinks" style="text-align:left;">{{#if:{{{list|}}}
|{{{list}}}
|{{#switch:{{#switch:{{{auto|¬}}}
|no = no
|long = long
|<!-- blank -->
|¬ = {{#ifexist:{{#rel2abs:{{{archivelist|./archivelist}}}}}
|{{#if:{{ {{#rel2abs:{{{archivelist|./archivelist}}}}} }}
|index
|long
}}
|long
}}
|yes
|#default = list
}}
|no = <!-- no output -->
|long = {{Archive list|{{#if:{{{root|}}}|root}}={{{root}}} |auto = long }}
|index = {{ {{#rel2abs:{{#if:{{{archivelist|}}}|{{{archivelist}}}|./archivelist}} }} }}
|list = <div style="text-align:center;">{{Archive list|{{#if:{{{root|}}}|root}}={{{root}}} }}</div>
}}
}}<!--Parameter content MUST be on newline in code or some wikimarkup will fail:-->
{{{1|}}}
</td></tr>{{#ifeq:{{{search|yes}}}|no|
|<tr><td>{{#tag:inputbox|
bgcolor=transparent
type=fulltext
prefix={{#if:{{{prefix|}}}|{{{prefix}}}|{{#if:{{{root|}}}|{{{root}}}|{{FULLPAGENAME}}}}/}}
break={{#if:{{{search-break|}}}|{{{search-break}}}|yes}}
width={{#if:{{{search-width|}}}|{{{search-width}}}|22}}
searchbuttonlabel={{#if:{{{search-button-label|}}}|{{{search-button-label}}}|Search}}
}}
</td></tr>
}}{{#if:{{{bot|}}}{{{age|}}}{{{target|}}}
|<tr><td>{{#if:{{{age|}}}
|{{#if:{{{botnotesmall|}}}
|<small>
}}Threads older than {{{age}}}{{#ifeq:{{{units|}}}|h||&nbsp;}}{{{units|day{{#ifeq:{{{age|}}}|1||s}}}}} {{#if:{{{minthreadszero|}}}|are|may be}}
|This page is
}} archived{{#if:{{{target|}}}
|{{#ifexist:{{#rel2abs:{{{target}}}}}
|&#32;to [[{{#rel2abs:{{{target}}}}}]]
}}
}}{{#if:{{{bot|}}}
|&#32;by <span class="nowraplinks">[[User:{{{bot}}}|{{{bot}}}]]</span>
}}.</td></tr>
}}{{#ifeq:{{{auto}}}-{{{editbox|yes}}}|no-yes
|<tr><td><small class="plainlinks">[{{fullurl:{{#rel2abs:{{{archivelist|./archivelist}}}}}|action=edit&preload=Template:Archives/Preload}} Edit this box]</small></td></tr>
}}
</table>{{#if:{{{box-width|}}}
|[[Category:Archive boxes with unusual parameters|β{{PAGENAME}}]]
}}<noinclude>
{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
</noinclude>
</noinclude>

Latest revision as of 05:09, 28 January 2018