Difference between revisions of "Template:Archives"

From Discworld MUD Wiki
Jump to: navigation, search
m (Protected "Template:Archives": Preemptive protect for template linked from Talk:Main Page ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
(fix)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
  |style = "border:0px" colspan="{{{numarchives|1}}}" | Old content for this page has been archived, and can be found at the following locations.
 
  |style = "border:0px" colspan="{{{numarchives|1}}}" | Old content for this page has been archived, and can be found at the following locations.
 
  |-
 
  |-
{{#ifexpr:{{{numarchives|1}}} >= 1| {{!}}style = "border:0px;text-align:center" {{!}} [[{{FULLPAGENAME}}/Archive 1{{!}}Archive 1]]|{{!}}-}}
+
|{{Special:PrefixIndex/{{FULLPAGENAME}}/}}
{{#ifexpr:{{{numarchives|1}}} >= 2| {{!}}style = "border:0px;text-align:center" {{!}} [[{{FULLPAGENAME}}/Archive 2{{!}}Archive 2]]|{{!}}-}}
+
{{#ifexpr:{{{numarchives|1}}} >= 3| {{!}}style = "border:0px;text-align:center" {{!}} [[{{FULLPAGENAME}}/Archive 3{{!}}Archive 3]]|{{!}}-}}
+
{{#ifexpr:{{{numarchives|1}}} >= 4| {{!}}style = "border:0px;text-align:center" {{!}} [[{{FULLPAGENAME}}/Archive 4{{!}}Archive 4]]|{{!}}-}}
+
{{#ifexpr:{{{numarchives|1}}} >= 5| {{!}}style = "border:0px;text-align:center" {{!}} [[{{FULLPAGENAME}}/Archive 5{{!}}Archive 5]]|{{!}}-}}
+
 
  |-
 
  |-
 
  |}<noinclude>{{documentation}}</noinclude>
 
  |}<noinclude>{{documentation}}</noinclude>

Latest revision as of 15:40, 9 November 2018

Filing cabinet.gif Old content for this page has been archived, and can be found at the following locations.
Archives/doc

[edit]

Documentation
 

Add this template to any talk pages whose content have been archived.

Archives should be created as 'Talk:pagename/Archive 1', 'Talk:pagename/Archive 2', etc, and the {{talkarchive}} template should be placed at the top of each.

This template can currently support up to 5 archives; higher numbers will require the template to be extended.

Parameters

  • numarchives - the number of archives for this page.