Template:Archives: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
per edit request on talk page - include index=none parameter and argument
Add dynamic generation of bot notice directly from config params, following on the heels of similar upgrade at Template:Talk header; suppressible with (new) param |nobot=yes. Includes hours-to-days conversion for lowercase sigmabot III. Passed Test cases 3.
Line 40: Line 40:
}}
}}
</td></tr>
</td></tr>
}}{{#if:{{{age|}}}{{{archive_age|}}}{{{target|}}}|<tr><td style="padding:0px 10px; font-size:11.9px; {{#ifeq:{{{banner|{{{large}}}}}}|yes|text-align:center;}}">
}}{{#if:{{{age|}}}{{{archive_age|}}}{{{target|}}}{{Th/abp|bot|{{{root|{{FULLPAGENAME}}}}}}}|<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|}}}{{Th/abp|bot|{{{root|{{FULLPAGENAME}}}}}}}|This page has {{#if: {{{target|}}} |'''[[{{#rel2abs:{{{target}}}}}|archives]]'''.&#32;|archives.&#32;}}<!--
{{#if:{{{target|}}}|This page has '''[[{{#rel2abs:{{{target}}}}}|archives]]''' }}{{#if:{{{age|{{{archive_age|}}}}}}|Sections older than '''{{{age|{{{archive_age}}}}}}&nbsp;{{{units|{{{archive_units|day}}}}}}{{#ifeq:{{{age|{{{archive_age}}}}}}|1||{{#if:{{#invoke:String|endswith|{{{units|{{{archive_units|day}}}}}}|s}}||s}}}}''' may be automatically archived{{#if:{{{bot|{{{archive_bot|}}}}}}|&#32;by <span class="nowraplinks">[[User:{{{bot|{{{archive_bot|}}}}}}|{{{bot|{{{archive_bot|}}}}}}]]</span>}}{{#if:{{{minthreadsleft|}}}|&#32;when more than {{{minthreadsleft|4}}} sections are present}}.}}}}</td></tr>
-->{{#if: {{Th/abp|bot|{{{root|{{FULLPAGENAME}}}}}}}
| {{#if: {{{nobot|}}}
||Sections {{#if: {{Th/abp|age|{{{root|{{FULLPAGENAME}}}}}}} | older than '''{{Th/abp|age|{{{root|{{FULLPAGENAME}}}}}|r=y}} {{Th/abp|units|{{{root|{{FULLPAGENAME}}}}}|r=y}}''' }} <!--
-->&#32;may be automatically archived by <span class="nowraplinks">[[User:{{Th/abp|bot|{{{root|{{FULLPAGENAME}}}}}}}|{{Th/abp|bot|{{{root|{{FULLPAGENAME}}}}}}}]]</span><!--
-->{{#ifexpr: {{Th/abp|min|{{{root|{{FULLPAGENAME}}}}}}} |&#32;when more than {{Th/abp|min|{{{root|{{FULLPAGENAME}}}}}}} section{{#ifexpr: {{Th/abp|min|{{{root|{{FULLPAGENAME}}}}}}}-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:{{#rel2abs:{{{archivelist|./archivelist}}}}}|<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>}}

Revision as of 04:55, 29 March 2024