Template:Archives and Template:Archives/sandbox: Difference between pages
(Difference between pages)
m (1 revision imported) |
No edit summary |
||
Line 1: | Line 1: | ||
<table id="archivebox" role="presentation" class="{{talk other|tmbox tmbox-notice|ombox ombox-notice|demospace={{{demospace|}}}}} {{#ifeq:{{{banner|{{{large | {{talk other|<templatestyles src="Module:Message box/tmbox.css"/>|<templatestyles src="Module:Message box/ombox.css"/>|demospace={{{demospace|}}}}} | ||
<tr> | <table id="archivebox" role="presentation" class="{{talk other|tmbox tmbox-notice|ombox ombox-notice|demospace={{{demospace|}}}}} {{#ifeq:{{{banner|{{{large}}}}}}|yes||mbox-small}} {{#ifeq:{{{collapsed}}}|yes|mw-collapsible mw-collapsed|{{#ifeq:{{{collapsible}}}|yes|mw-collapsible}}}} {{{class|}}}" style="text-align: center; padding: 1em; {{#if:{{{box-width|}}}|width:{{{box-width}}};}} {{#ifeq:{{{banner|{{{large}}}}}}|yes|min-width:80%;}} {{{style|}}}"> | ||
<tr> | |||
{{#ifeq: {{{banner|{{{large}}}}}}|yes | |||
|<!-- Banner style: image in a rowspan cell (if present) --> | |||
{{#ifeq:{{{image|}}}|none|| | |||
<td rowspan="{{#expr:1+{{#ifeq:{{{search}}}|no|0|1}}+{{#if:{{{list|{{{1|}}}}}}|1|0}}+{{#if:{{{age|}}}{{{target|}}}|1|0}}}}" class="mbox-image" style="width:52px;"> | |||
{{#invoke:InfoboxImage|InfoboxImage|alt={{{alt|}}}|link={{{link|}}}|image={{{image|Replacement filing cabinet.svg}}}|size={{{image-size|}}}|sizedefault=40px}} | |||
</td> | |||
}} | }} | ||
}}{{# | |<!-- Box style: header row, with image (if present) --> | ||
{{{1}}}|<div style="text-align:left; padding:0px 10px;"> | <td style="padding:0.6em 0 0.25em;"> | ||
{{{1}}}<!-- | <div style="{{#ifeq:{{{image|}}}|none||width:100%; overflow:hidden;}}">{{#ifeq:{{{image|}}}|none||{{#invoke:InfoboxImage|InfoboxImage|alt={{{alt|}}}|link={{{link|}}}|image={{{image|Replacement filing cabinet.svg}}}|size={{{image-size|}}}|sizedefault=40px}}<br>}}<b>{{{title|Archives}}}</b></div> | ||
</ | </tr><tr> | ||
}} | |||
<td class="plainlinks {{#ifeq:{{{banner|{{{large}}}}}}|yes|mbox-text}}"> | |||
{{#ifeq:{{{banner|{{{large}}}}}}|yes|{{{title|Archives}}}: }}{{#switch:{{#if:{{{list|}}}|no|{{{auto|{{#if:{{{1|}}}|no}}}}}}} | |||
|#default={{#ifeq:{{{index|}}}|none||{{#ifexist:{{#rel2abs:./{{{index|Archive index}}}}}|[[{{#rel2abs:./{{{index|Archive index}}}}}|Index]] |{{#ifexist:User:ClueBot III/Master Detailed Indices/{{FULLPAGENAME}}|[[User:MuskitBot/Master Detailed Indices/{{FULLPAGENAME}}|Index]] }}}} | |||
}}{{#ifexist:{{#rel2abs:{{#if:{{{archivelist|}}}|{{{archivelist}}}|./archivelist}}}} | |||
|<div style="text-align:left;">{{ {{#rel2abs:{{{archivelist|./archivelist}}}}} }}</div> | |||
|{{Archive list | |||
|{{#if:{{{root|}}}|root|DISABLE1}}={{{root}}} | |||
|{{#ifeq:{{{banner|{{{large}}}}}}|yes|DISABLE2|auto}}={{{auto|long}}} | |||
|nobr={{#ifeq:{{{banner|{{{large}}}}}}|yes|yes|no}} | |||
|{{#if:{{{prefix|}}}|prefix|DISABLE3}}={{{prefix|}}} | |||
|{{#if:{{{start|}}}|start|DISABLE4}}={{{start|}}} | |||
}} | |||
}} | |||
|no=<!--no output-->}}{{#if:{{{list|{{{1|}}}}}} | |||
|</td></tr><tr><td class="plainlinks" style="padding:0px 10px; {{#ifeq:{{{banner|{{{large}}}}}}|yes||text-align:left;}}"> | |||
{{{list|{{{1|}}}}}}<!--Parameters MUST be on newline or some wikimarkup will fail-->}} | |||
</td><!--List/1 MUST be separate from all other tags--> | |||
</tr>{{#ifeq:{{{search}}}|no||<tr><td style="padding-bottom:11px">{{#tag:inputbox| | |||
bgcolor=transparent | bgcolor=transparent | ||
type=fulltext | type=fulltext | ||
prefix={{if empty|{{{ | prefix={{if empty|{{{searchprefix|}}}|{{{root|}}}|{{FULLPAGENAME}}/}} | ||
break={{# | break={{#ifeq:{{{banner|{{{large}}}}}}|yes|{{{search-break|no}}}|{{{search-break|yes}}}}} | ||
width={{#ifeq:{{{banner|{{{large}}}}}}|yes||{{#if:{{{search-width|}}}|{{{search-width}}}|22}}}} | width={{#ifeq:{{{banner|{{{large}}}}}}|yes||{{#if:{{{search-width|}}}|{{{search-width}}}|22}}}} | ||
searchbuttonlabel= | searchbuttonlabel={{{search-button-label|{{{button-label|Search archives}}}}}} | ||
}} | }} | ||
</td></tr> | </td></tr> | ||
}}{{#if:{{{age|}}}{{{target|}}}|<tr><td style="padding:0px 10px; font-size:11.9px; {{# | }}{{#if:{{{age|}}}{{{archive_age|}}}{{{target|}}}{{Th/abp/sbx|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}|<tr><td {{#ifeq:{{{banner|{{{large}}}}}}|yes|colspan=2}} style="padding:0px 10px; font-size:11.9px; {{#ifeq:{{{banner|{{{large}}}}}}|yes|text-align:center;}}"> | ||
---- | ---- | ||
{{#if:{{{target|}}}|This page has '''[[{{#rel2abs:{{{target}}}}}|archives]]''' }}{{#if:{{ | {{#if:{{{target|}}}{{Th/abp/sbx|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}|This page has {{#if: {{{target|}}} |'''[[{{#rel2abs:{{{target}}}}}|archives]]'''. |archives. }}<!-- | ||
-->{{#if: {{Th/abp/sbx|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}} | |||
| {{#if: {{{nobot|}}} | |||
||Sections {{#if: {{Th/abp/sbx|age|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}} | older than '''{{Th/abp/sbx|age|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}|r=y}} {{Th/abp/sbx|units|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}|r=y}}''' }} <!-- | |||
--> may be automatically archived by <span class="nowraplinks">[[User:{{Th/abp/sbx|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}|{{Th/abp/sbx|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}]]</span><!-- | |||
-->{{#ifexpr: {{Th/abp/sbx|min|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}} | when more than {{Th/abp/sbx|min|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}} section{{#ifexpr: {{Th/abp/sbx|min|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}-1 |s are |  is}} present}}.<!-- | |||
-->}}<!-- | |||
-->}} | |||
}}}}</td></tr> | |||
{{#ifeq:{{#if:{{{auto|}}}|auto|{{#if:{{{1|}}}|no|¬}}}}-{{{editbox|yes}}}|no-yes | {{#ifeq:{{#if:{{{auto|}}}|auto|{{#if:{{{1|}}}|no|¬}}}}-{{{editbox|yes}}}|no-yes | ||
|{{#ifexist | |{{#ifexist:{{#rel2abs:{{{archivelist|./archivelist}}}}}|<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|}}} | </table>{{#if:{{{box-width|}}} | ||
|[[Category:Archive boxes with unusual parameters|β]] | |[[Category:Archive boxes with unusual parameters|β]] | ||
}}<noinclude> | }}<noinclude>{{User:MuskitBot/config <!-- for page top canonical display only --> | ||
{{Documentation}} | |archive = Template:Archives/sandbox | ||
|counter = 3 | |||
|minthreadsleft = 4 | |||
|minthreadstoarchive = 2 | |||
|algo = old(90d) | |||
}}{{Documentation}} | |||
</noinclude> | </noinclude> |