Template:Archives and Template:Archives/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
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|}}}}}}|yes||mbox-small}} {{#if: {{{banner|{{{large|}}}}}}||{{#ifeq:{{{collapsed}}}|yes|collapsible collapsed|{{#ifeq:{{{collapsible}}}|yes|collapsible}}}}}}" style="text-align: center; padding: 1em; {{#if:{{{box-width|}}}|width:{{{box-width}}};}} {{#ifeq:{{{banner|{{{large}}}}}}|yes|min-width:80%;|}} {{{style|}}}">
{{talk other|<templatestyles src="Module:Message box/tmbox.css"/>|<templatestyles src="Module:Message box/ombox.css"/>|demospace={{{demospace|}}}}}
<tr><th rowspan="{{#ifeq:{{{banner|{{{large}}}}}}|yes|{{#if:{{{search|}}}|{{#if:{{{age|}}}{{{target|}}}|2}}|{{#if:{{{age|}}}{{{target|}}}|3|2}}}}|1}}" class="mbox-text" style="text-align: center; padding:0.25em 0; {{#ifeq:{{{banner|{{{large|}}}}}}|yes|width:52px;|}} {{#ifeq:{{{image|}}}|none||padding-top: 0.6em;}}">{{#ifeq:{{{image|}}}|none||<div style="float:left; width:100%;">{{#invoke:InfoboxImage|InfoboxImage|alt={{{alt|}}}|link={{{link|}}}|image={{{image|Replacement filing cabinet.svg}}}|size={{{image-size|}}}|sizedefault=40px}}{{#ifeq:{{{banner|{{{large}}}}}}|yes|</div></th><td>|<br/>}}}}
<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|}}}">
{{{title|Archives}}}{{#ifeq:{{{banner|{{{large}}}}}}|yes|&colon;&#32;
<tr>
|{{#ifeq:{{{image|}}}|none||</div>}}</th></tr><tr><td class="plainlinks">}}{{#if:{{{list|}}}|<div style="padding:0px 10px; text-align:left;">
{{#ifeq: {{{banner|{{{large}}}}}}|yes
{{{list}}}</div><!--Parameter MUST be on newline or some wikimarkup will fail-->
|<!-- Banner style: image in a rowspan cell (if present) -->
|{{#switch:{{#if:{{{auto|}}}|{{{auto|}}}|{{#if:{{{1|}}}|no|¬}}}}
{{#ifeq:{{{image|}}}|none||
|#default={{#ifexist:{{#rel2abs:./{{{index|Archive index}}}}}
<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;">
|[[{{#rel2abs:./{{{index|Archive index}}}}}|Index]]&#32;}}{{#ifexist:{{#rel2abs:{{#if:{{{archivelist|}}}|{{{archivelist}}}|./archivelist}}}}
{{#invoke:InfoboxImage|InfoboxImage|alt={{{alt|}}}|link={{{link|}}}|image={{{image|Replacement filing cabinet.svg}}}|size={{{image-size|}}}|sizedefault=40px}}
|<div style="text-align:left;">{{ {{#rel2abs:{{{archivelist|./archivelist}}}}} }}</div>
</td>
|{{Archive list|{{#if:{{{root|}}}|root|DISABLE1}}={{{root}}}
|{{#if:{{{banner|{{{large|}}}}}}|DISABLE2|auto}}={{{auto|long}}}
|nobr={{#if:{{{banner|{{{large|}}}}}}|yes|no}}
}}}}
|no=<!--No output-->
}}
}}
}}{{#if:{{{1|}}}|{{#if:{{{banner|{{{large|}}}}}}|<br/>
|<!-- 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}}}<!--Parameter MUST be on newline or some wikimarkup will fail-->
<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>
</div>}}}}</td></tr>{{#ifeq:{{{search|}}}|no||<tr><td style="padding-bottom:11px">{{#tag:inputbox|
</tr><tr>
}}
<td class="plainlinks {{#ifeq:{{{banner|{{{large}}}}}}|yes|mbox-text}}">
{{#ifeq:{{{banner|{{{large}}}}}}|yes|{{{title|Archives}}}&#58;&#32;}}{{#switch:{{#if:{{{list|}}}|no|{{{auto|{{#if:{{{1|}}}|no}}}}}}}
|#default={{#ifeq:{{{index|}}}|none||{{#ifexist:{{#rel2abs:./{{{index|Archive index}}}}}|[[{{#rel2abs:./{{{index|Archive index}}}}}|Index]]&#32;|{{#ifexist:User:ClueBot III/Master Detailed Indices/{{FULLPAGENAME}}|[[User:MuskitBot/Master Detailed Indices/{{FULLPAGENAME}}|Index]]&#32;}}}}
}}{{#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|}}}|{{{root|}}}|{{FULLPAGENAME}}/}}
prefix={{if empty|{{{searchprefix|}}}|{{{root|}}}|{{FULLPAGENAME}}/}}
break={{#if:{{{search-break|{{{banner|{{{large|}}}}}}}}}|{{{search-break|no}}}|yes}}
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={{#if:{{{search-button-label|{{{button-label|}}}}}}|{{{search-button-label|{{{button-label|}}}}}}|Search archives}}
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:{{{banner|{{{large}}}}}}|text-align:center;}}">
}}{{#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:{{{age|}}}|Threads older than '''{{{age}}}&nbsp;{{{units|day}}}{{#ifeq:{{{age}}}|1||{{#if:{{#invoke:String|endswith|{{{units|}}}|s}}||s}}}}''' may be automatically archived{{#if:{{{bot|}}}|&#32;by <span class="nowraplinks">[[User:{{{bot}}}|{{{bot}}}]]</span>}}{{#if:{{{minthreadsleft|}}}|&#32;when more than {{{minthreadsleft|4}}} threads are present}}.}}}}</td></tr>
{{#if:{{{target|}}}{{Th/abp/sbx|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}|This page has {{#if: {{{target|}}} |'''[[{{#rel2abs:{{{target}}}}}|archives]]'''.&#32;|archives.&#32;}}<!--
-->{{#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}}''' }} <!--
          -->&#32;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}}}}} |&#32;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 | &#32;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:{{fullurl:{{#rel2abs:{{{archivelist|./archivelist}}}}}|action=edit&preload=Template:Archives/Preload}}|<tr><td><small class="plainlinks">[{{fullurl:{{#rel2abs:{{{archivelist|./archivelist}}}}}|action=edit&preload=Template:Archives/Preload}} Edit this box]</small></td></tr>}}
  |{{#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>