Anonymous user
Template:Archives: Difference between revisions
spacing tweaks per talk page request
m (one category added) |
(spacing tweaks per talk page request) |
||
Line 1:
<table id="archivebox" role="presentation" class="{{talk other |tmbox tmbox-notice |ombox ombox-notice |demospace={{{demospace|}}}}} mbox-small {{#ifeq:{{{collapsed}}}|yes
|collapsible collapsed
| style="text-align: right; font-size: x-small;" class="plainlinks" | [{{fullurl:{{{archivelist|{{FULLPAGENAME}}/archivelist}}}|action=edit&preload=Template:Archives/Preload}} edit]▼
|{{#ifeq:{{{collapsible}}}|yes
|collapsible
}}
}}" style="text-align: center; padding: 1em; {{#if:{{{box-width|}}}|width:{{{box-width}}};}} {{{style|}}}">
<tr><th style="padding-top: 0.6em;">{{#switch:{{{image|}}}
|none = <!-- no image -->
|<!--blank-->= [[File:Replacement filing cabinet.svg|{{{image-size|40px}}}|alt=|link=]]<br>
|}<noinclude>▼
|#default = {{#invoke:InfoboxImage|InfoboxImage
|alt={{{alt|}}}
|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|| }}{{{units|day{{#ifeq:{{{age|}}}|1||s}}}}} {{#if:{{{minthreadszero|}}}|are|may be}}
|This page is
}} archived{{#if:{{{target|}}}
|{{#ifexist:{{#rel2abs:{{{target}}}}}
| to [[{{#rel2abs:{{{target}}}}}]]
}}
}}{{#if:{{{bot|}}}
| by <span class="nowraplinks">[[User:{{{bot}}}|{{{bot}}}]]</span>
}}.</td></tr>
}}{{#ifeq:{{{auto}}}-{{{editbox|yes}}}|no-yes
▲ |
}}
</table>{{#if:{{{box-width|}}}
|[[Category:Archive boxes with unusual parameters|β{{PAGENAME}}]]
{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
</noinclude>
|