Jump to content

Template:Archives: Difference between revisions

From BadWolfMC Wiki
BadWolfMC>Bellezzasolo
Undid revision 841002211 by Bellezzasolo (talk) phab:phab:T193392 reverted, no longer necessary
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table id="archivebox" role="presentation" class="{{talk other |tmbox tmbox-notice |ombox ombox-notice |demospace={{{demospace|}}}}} mbox-small {{#ifeq:{{{collapsed}}}|yes
{{talk other|<templatestyles src="Module:Message box/tmbox.css"/>|<templatestyles src="Module:Message box/ombox.css"/>|demospace={{{demospace|}}}}}
|collapsible collapsed
<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|}}}">
|{{#ifeq:{{{collapsible}}}|yes
<tr>
  |collapsible
{{#ifeq:{{{banner|{{{large}}}}}}|yes
}}
|<!-- Banner style: image in a rowspan cell (if present) -->
}}" style="text-align: center; padding: 1em; {{#if:{{{box-width|}}}|width:{{{box-width}}};}} {{{style|}}}">
{{#ifeq:{{{image|}}}|none||
<tr><th style="padding-top: 0.6em;">{{#switch:{{{image|}}}
<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;">
|none        = <!-- no image -->
{{#invoke:InfoboxImage|InfoboxImage|alt=Archiving icon|image={{{image|Replacement filing cabinet.svg}}}|size={{{image-size|}}}|sizedefault=40px}}
|<!--blank-->= [[File:Replacement filing cabinet.svg|{{{image-size|40px}}}|alt=|link=]]<br>
</td>
|#default    = {{#invoke:InfoboxImage|InfoboxImage
}}
  |alt={{{alt|}}}
|<!-- Box style: header row, with image (if present) -->
  |link={{{link|}}}
<td style="padding:0.6em 0 0.25em;">
  |image={{{image|Replacement filing cabinet.svg}}}
<div style="{{#ifeq:{{{image|}}}|none||width:100%; overflow:hidden;}}">{{#ifeq:{{{image|}}}|none||{{#invoke:InfoboxImage|InfoboxImage|alt=Archiving icon|image={{{image|Replacement filing cabinet.svg}}}|size={{{image-size|}}}|sizedefault=40px}}<br>}}<b>{{{title|Archives}}}</b></div>
  |size={{{image-size|}}}|sizedefault=40px
</tr><tr>
}}<br>
}}{{#if:{{{index|}}}
|[[{{#rel2abs: {{{index}}} }}|{{{title|Archives}}}]]
|{{{title|Archives}}}
}}
}}
</th></tr>
<td class="plainlinks {{#ifeq:{{{banner|{{{large}}}}}}|yes|mbox-text}}">
<tr><td class="plainlinks" style="text-align:left;">{{#if:{{{list|}}}
{{#ifeq:{{{banner|{{{large}}}}}}|yes|{{{title|Archives}}}&#58;&#32;}}{{#switch:{{#if:{{{list|}}}|no|{{{auto|{{#if:{{{1|}}}|no}}}}}}}
|{{{list}}}
|#default={{#ifeq:{{{index|}}}|none||{{#ifexist:{{#rel2abs:./{{{index|Archive index}}}}}|[[{{#rel2abs:./{{{index|Archive index}}}}}|Index]]&#32;|{{#ifexist:User:ClueBot III/Master Detailed Indices/{{FULLPAGENAME}}|[[User:ClueBot III/Master Detailed Indices/{{FULLPAGENAME}}|Index]]&#32;}}}}
|{{#switch:{{#switch:{{{auto|¬}}}
}}{{#ifexist:{{#rel2abs:{{#if:{{{archivelist|}}}|{{{archivelist}}}|./archivelist}}}}
  |no       = no
  |<div style="text-align:left;">{{ {{#rel2abs:{{{archivelist|./archivelist}}}}} }}</div>
  |long    = long
  |{{Archive list
  |<!-- blank -->
  |{{#if:{{{root|}}}|root|DISABLE1}}={{{root}}}
  |¬        = {{#ifexist:{{#rel2abs:{{{archivelist|./archivelist}}}}}
  |{{#ifeq:{{{banner|{{{large}}}}}}|yes|DISABLE2|auto}}={{{auto|long}}}
    |{{#if:{{ {{#rel2abs:{{{archivelist|./archivelist}}}}} }}
   |nobr={{#ifeq:{{{banner|{{{large}}}}}}|yes|yes|no}}
    |index
   |{{#if:{{{prefix|}}}|prefix|DISABLE3}}={{{prefix|}}}
    |long
   |{{#if:{{{start|}}}|start|DISABLE4}}={{{start|}}}
    }}
    |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:-->
|no=<!--no output-->}}{{#if:{{{list|{{{1|}}}}}}
{{{1|}}}
|</td></tr><tr><td class="plainlinks" style="padding:0px 10px; {{#ifeq:{{{banner|{{{large}}}}}}|yes||text-align:left;}}">
</td></tr>{{#ifeq:{{{search|yes}}}|no|
{{{list|{{{1|}}}}}}<!--Parameters MUST be on newline or some wikimarkup will fail-->}}
|<tr><td>{{#tag:inputbox|
</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|}}}|{{{search-break}}}|yes}}
break={{#ifeq:{{{banner|{{{large}}}}}}|yes|{{{search-break|no}}}|{{{search-break|yes}}}}}
width={{#if:{{{search-width|}}}|{{{search-width}}}|22}}
width={{#ifeq:{{{banner|{{{large}}}}}}|yes||{{#if:{{{search-width|}}}|{{{search-width}}}|22}}}}
searchbuttonlabel={{#if:{{{search-button-label|}}}|{{{search-button-label}}}|Search}}
searchbuttonlabel={{{search-button-label|{{{button-label|Search archives}}}}}}
}}
}}
</td></tr>
</td></tr>
}}{{#if:{{{bot|}}}{{{age|}}}{{{target|}}}
}}{{#if:{{{age|}}}{{{archive_age|}}}{{{target|}}}{{Th/abp|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;}}">
|<tr><td>{{#if:{{{age|}}}
{{#if: {{{nobot|}}}||
  |{{#if:{{{botnotesmall|}}}
----
  |<small>
{{#if:{{{target|}}}{{Th/abp|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}|This page has {{#if: {{{target|}}} |'''[[{{#rel2abs:{{{target}}}}}|archives]]'''.&#32;|archives.&#32;}}<!--
  }}Threads older than {{{age}}}{{#ifeq:{{{units|}}}|h||&nbsp;}}{{{units|day{{#ifeq:{{{age|}}}|1||s}}}}} {{#if:{{{minthreadszero|}}}|are|may be}}
-->{{#if: {{Th/abp|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}
  |This page is
    |Sections {{#if: {{Th/abp|age|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}} | older than  '''{{Th/abp|age|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}|r=y}} {{Th/abp|units|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}|r=y}}''' }} <!--
}} archived{{#if:{{{target|}}}
      -->&#32;may be automatically archived by <span class="nowraplinks">[[User:{{Th/abp|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}|{{Th/abp|bot|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}]]</span><!--
  |{{#ifexist:{{#rel2abs:{{{target}}}}}
      -->{{#ifexpr: {{Th/abp|min|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}} |&#32;when more than {{Th/abp|min|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}} section{{#ifexpr: {{Th/abp|min|{{{root|{{FULLPAGENAME}}}}}|cfg={{{cfg|1}}}}}-1 |s are | &#32;is}} present}}.<!--
  |&#32;to [[{{#rel2abs:{{{target}}}}}]]
    -->}}<!--
  }}
-->}}
}}{{#if:{{{bot|}}}
}}}}</td></tr>
  |&#32;by <span class="nowraplinks">[[User:{{{bot}}}|{{{bot}}}]]</span>
{{#ifeq:{{#if:{{{auto|}}}|auto|{{#if:{{{1|}}}|no|¬}}}}-{{{editbox|yes}}}|no-yes
}}.</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>}}
}}{{#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|}}}
</table><noinclude>{{User:MiszaBot/config <!-- for page top canonical display only -->
|[[Category:Archive boxes with unusual parameters|β{{PAGENAME}}]]
|archive = Template:Archives/
}}<noinclude>
|counter = 3
{{documentation}}<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
|minthreadsleft = 4
|minthreadstoarchive = 2
|algo = old(90d)
}}{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 08:33, 4 May 2025