Difference between revisions of "Template:Archive Header"

From Arcen Wiki
Jump to navigation Jump to search
(EbFVqFnsRoz)
 
m (37 revisions: Taken from http://www.uesp.net)
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
2WZbIu Cool lol hey bla bla bla bla
+
<includeonly><cleanspace>
 +
{{#define:source|{{#switch:{{#explode:{{FULLPAGENAME}}| |0}}
 +
|UESPWiki:Archive/CP=UESPWiki:Community Portal
 +
|UESPWiki:Archive/AN=UESPWiki: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>

Revision as of 18:06, 31 January 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