Template:Archive: Difference between revisions

Content deleted Content added
full page name can be an unnamed param, adding in that option
fix/improve tracking cat Category:Archive pages whose parent page is a redirect. (1. |Redirect category=no should disable the tracking category, not enable it; 2. adding correct handling of archives of the form "/Archives/...", where the BASEPAGENAME would not be the ROOTPAGENAME)
 
(6 intermediate revisions by 6 users not shown)
Line 1:
{{#invoke:Archive|aan|start={{{start|}}}}}<includeonly>{{#ifeq:{{{Redirect category|}}}|no||{{#if:{{is redirect|{{FULLBASEPAGENAME}}|talk=yes}}{{is redirect|{{#invoke:String|replace|{{FULLPAGENAME}}|/Archive.*||plain=false}}|talk=yes}} |[[Category:Archive pages whose parent page is a redirect]] |}}}}</includeonly><noinclude>
{{ {{Namespace detect
{{documentation}}
| talk = Tmbox
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. -->
| other = Mbox
| demospace = {{{demospace|<noinclude>talk</noinclude>}}}
}}
| image = [[File:Replacement filing cabinet.svg|50x40px|Archive|alt=|link=]]
| text = {{Namespace detect
| demospace = {{{demospace|<noinclude>talk</noinclude>}}}
| talk = This page is an [[Help:Archiving a talk page|archive]] of past discussions{{#if:{{{period|}}}|&#32;for the period '''{{{period}}}'''}}. '''Do not edit the contents of this page'''. If you wish to start a new discussion or revive an old one, please do so on the [[:{{{1|{{#titleparts:{{FULLPAGENAME}}|1}}}}}|current talk page]].{{#if:{{{diff|}}}{{{histOffset|}}}|<br /><div style="text-align: center;"><small>
<div class="hlist plainlinks">{{#if:{{{diff|}}}|
* [{{fullurl:{{{1|{{{currentpage|{{#titleparts:{{FULLPAGENAME}}|1}}}}}}}}|oldid={{{diff}}}}} historical revision]}}{{#if:{{{histOffset|}}}|
* [{{fullurl:{{{1|{{{currentpage|{{#titleparts:{{FULLPAGENAME}}|1}}}}}}}}|offset={{{histOffset}}}&action=history}} history]}}
</div>
</small></div>}}
| other = This page is an [[Help:Archiving a talk page|archive]]. '''Do not edit the contents of this page'''. Please direct any additional comments to the [[{{{1|{{#ifexist:{{TALKSPACE}}:{{BASEPAGENAME}}|{{TALKSPACE}}:{{BASEPAGENAME}}|{{SUBJECTSPACE}}:{{BASEPAGENAME}}}}}}}|current main page]].
}}
}}<includeonly>__NOEDITSECTION__ __NONEWSECTIONLINK__</includeonly><noinclude>
{{Documentation}}
</noinclude>