Template:Archive: Difference between revisions

Template page
w:c:strategywiki>Najzere
(adding implementation)
m (21 revisions imported: Imported from https://strategywiki.org/)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="archive_box">[[Image:Vista-file-manager.png|50px|Archive]]<p class="archive_heading">Archives</p>
<templatestyles src="Template:Archive/styles.css" /><div class="archive_box">[[File:Vista-file-manager.png|50px|Archive]]<p class="archive_heading">Archives</p>
<div>{{{1}}}</div></div><noinclude>
<div>{{{1}}}</div></div><noinclude>
{{TemplateStyles|Template:Archive/styles.css}}


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.
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, e.g. ''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.


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.
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.
Line 8: Line 9:
<pre>{{Archive|[[User talk:Username/Archive 1|Archive 1]]<br />[[User talk:Username/Archive 2|Archive 2]]}}</pre>
<pre>{{Archive|[[User talk:Username/Archive 1|Archive 1]]<br />[[User talk:Username/Archive 2|Archive 2]]}}</pre>


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

Latest revision as of 18:28, 28 October 2023

Page Template:Archive/styles.css has no content.

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, e.g. 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.

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]]}}