Template:Archive: Difference between revisions

Template page
w:c:strategywiki>Melon247
m (fixed link)
w:c:strategywiki>Najzere
(adding implementation)
Line 2: Line 2:
<div>{{{1}}}</div></div><noinclude>
<div>{{{1}}}</div></div><noinclude>


This template is used to link to archived pages, typically in the [[StrategyWiki:Staff lounge|Staff Lounge]].
This template is used to link to archived pages, typically talk pages and the [[StrategyWiki:Staff lounge|Staff Lounge]]. To archive a page, move it to a new page, i.e. ''pagename''/Archive 1, or ''pagename''/1. Then go back to the original page and replace the redirect with the Archive template, passing a link to the newly archived page (and any previously archived pages) in the sole parameter. To keep the Archives box at the top of the page, put '''<nowiki>__TOC__</nowiki>''' after it.
 
If there is content you want to keep at the top, copy it from the archived page instead of copying the parts you want to be archived to a new archive page. This will ensure that the edit history stays with the archived page and a fresh one is started with the new page. If you are using the Archive template on the page you now want to archive, don't forget to remove it from the page.
 
<pre>{{Archive|[[User talk:Username/Archive 1|Archive 1]]<br />[[User talk:Username/Archive 2|Archive 2]]}}</pre>


[[Category:Templates|A]]</noinclude>
[[Category:Templates|A]]</noinclude>

Revision as of 17:25, 2 March 2009

Archive

Archives

{{{1}}}

This template is used to link to archived pages, typically talk pages and the Staff Lounge. To archive a page, move it to a new page, i.e. pagename/Archive 1, or pagename/1. Then go back to the original page and replace the redirect with the Archive template, passing a link to the newly archived page (and any previously archived pages) in the sole parameter. To keep the Archives box at the top of the page, put __TOC__ after it.

If there is content you want to keep at the top, copy it from the archived page instead of copying the parts you want to be archived to a new archive page. This will ensure that the edit history stays with the archived page and a fresh one is started with the new page. If you are using the Archive template on the page you now want to archive, don't forget to remove it from the page.

{{Archive|[[User talk:Username/Archive 1|Archive 1]]<br />[[User talk:Username/Archive 2|Archive 2]]}}