Difference between revisions of "Template:Archive Header"

From Arcen Wiki
Jump to navigation Jump to search
(kCblIBPqZvzRoCsCmcS)
 
m (Protected "Template:Archive Header": High traffic page (‎[edit=autoconfirmed] (indefinite) ‎[move=autoconfirmed] (indefinite)))
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
comment4
+
<includeonly><cleanspace>
 +
{{#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. -->
 +
}}
 +
{{#define:cat|{{{1|}}}}}
 +
{{#define:cat2|{{{2|}}}}}
 +
{{#define:cat3|{{{3|}}}}}
 +
{{#define:cat4|{{{4|}}}}}
 +
</cleanspace>{{#ifeq:{{{source}}}|{{FULLPAGENAME}}||
 +
{{#settrail:[[{{{source}}}]]}}
 +
{{Message|This is an archive of past [[{{{source}}}]] {{#if:{{{source2|}}}|and [[{{{source2}}}]]&#32;}}discussions. '''Do not edit the contents of this page,''' except for maintenance such as updating links.|align=center}}{{#ifeq:{{{cat}}}|none||{{#if:{{{cat}}}|[[Category:Archive-{{{cat}}}]]|[[Category:Archive-Uncategorized]]}}{{#if:{{{cat2}}}|[[Category:Archive-{{{cat2}}}]]}}{{#if:{{{cat3}}}|[[Category:Archive-{{{cat3}}}]]}}{{#if:{{{cat4}}}|[[Category:Archive-{{{cat4}}}]]}}}}{{#if:{{{date|}}}|[[Category:Archive-By Date-{{{date}}}]]|[[Category:Archive-By Date-Missing]]}}{{#ifeq:{{NESTLEVEL}}|1|{{#ifeq:{{#explode:{{PAGENAME}}|/|1}}|Archives|{{#switch:{{#explode:{{BASEPAGENAME}}|/|0}}
 +
|Community Portal=[[Category:Archive-Community Portal|{{SUBPAGENAME}}]]
 +
|Administrator Noticeboard=[[Category:Archive-Administrator Noticeboard]]|{{SUBPAGENAME}}}}}}}}}}</includeonly><noinclude>{{/Doc}}</noinclude>

Latest revision as of 22: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