Difference between revisions of "Template:Archive Header"
m (37 revisions: Taken from http://www.uesp.net) |
m (Protected "Template:Archive Header": High traffic page ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><cleanspace> | <includeonly><cleanspace> | ||
{{#define:source|{{#switch:{{#explode:{{FULLPAGENAME}}| |0}} | {{#define:source|{{#switch:{{#explode:{{FULLPAGENAME}}| |0}} | ||
− | | | + | |ArcenWiki:Archive/CP=ArcenWiki:Community Portal |
− | | | + | |ArcenWiki:Archive/AN=ArcenWiki:Administrator Noticeboard |
|#default={{#explode:{{FULLPAGENAME}}|/|0}}}} <!-- Note: #explode is used because at least as of MW 1.14, {{BASEPAGENAME}} does not work when the corresponding subject-space article (e.g., Oblivion:Glitches/Archive 1) doesn't exist. --> | |#default={{#explode:{{FULLPAGENAME}}|/|0}}}} <!-- Note: #explode is used because at least as of MW 1.14, {{BASEPAGENAME}} does not work when the corresponding subject-space article (e.g., Oblivion:Glitches/Archive 1) doesn't exist. --> | ||
}} | }} |
Latest revision as of 21:48, 3 February 2015
<cleanspace> {{#define:level|semi}} </cleanspace>
Due to the sensitive nature of this template and the fact that it is used on a large number of pages, it has been semi-protected to prevent site-wide damage by vandal bots. Editors: In order to minimize the impact on our servers, please use sandboxes to make and test changes to widely used templates before deployment. For more information, please see this article's <cleanspace> {{#preview:1|Category:Templates}} {{#define:3|action={{{action}}}|if=}} {{#define:3|curid={{{curid}}}|if=}} {{#define:3|diff={{{diff}}}|if=}} {{#define:3|group={{{group}}}|if=}} {{#define:3|oldid={{{oldid}}}|if=}} </cleanspace>talk page. |
<cleanspace>
{{#inherit:topiconsright}} {{#define:edit|{{{level}}}}} {{#define:move|}} </cleanspace>
Summary
This is a general header for display on archived subpages. It displays a message stating that the page is an archive, adds a link to the source page or pages, and places the page in any relevant categories.
Parameters
Archive Header | ||
---|---|---|
Parameter | Scope | Description
{{#splitargs:Parameters/Line|3}} |
Examples
{{Archive Header|none}}
Typical use on a page such as ArcenWiki:Community Portal/Archive 1: came from the Community Portal, no categories needed
{{Archive Header|Blocking Policy|Vandalism|date=2008 June}}
Archive from Community Portal; adds two subcategories and the date
{{Archive Header|Blocking Policy|Vandalism|date=2008 June|source=ArcenWiki:Administrator Noticeboard}}
Archive from Administrator Noticeboard instead of Community Portal