Template:Archived page: Difference between revisions

Redesigned template and updated/corrected examples
(created template)
 
(Redesigned template and updated/corrected examples)
 
Line 1: Line 1:
<includeonly>{{generic box|This page is archived and does not contain up-to-date information. It was last updated {{{lastupdate|a long time ago}}}.
<includeonly>
 
{| style="background-color: sandybrown;  border: solid 2px black;  border-radius: 10px;  padding: 10px;"
Up-to-date information on this subject can be found at {{{newpagelink|some other page}}}.|bgcolor=sandybrown|bordercolor=black}}[[Category:Archived pages]]</includeonly><noinclude>Use this template on archived pages. It automatically adds the page to [[:Category:Archived pages]].
| <span class="fa fa-archive fa-4x"><span>
| style="padding-left: 10px" | '''This page is archived as its information is no longer current.'''<br /><small>Last update: {{{lastupdate|a long time ago}}}.<br />Current information on this subject can be found at {{{newpagelink|some other page}}}.</small>
|}
[[Category:Archived pages]]
</includeonly>
<noinclude>
Use this template on archived pages. It automatically adds the page to [[:Category:Archived pages]].


Please supply <code>lastupdate</code> and <code>newpagelink</code> arguments. (The date of the last edit to the page can be found in the page's footer, but this is not always a content update, so check the page history.)
Please supply <code>lastupdate</code> and <code>newpagelink</code> arguments. (The date of the last edit to the page can be found in the page's footer, but this is not always a content update, so check the page history.)
Line 10: Line 16:
! Code !! Result
! Code !! Result
|-
|-
| <pre>{{archived page}}</pre> || {{generic box|This page is archived and does not contain up-to-date information. It was last updated a long time ago.
| <pre>{{Archived page}}</pre>
 
|
Up-to-date information on this subject can be found at some other page.|bgcolor=sandybrown|bordercolor=black}}
{| style="background-color: sandybrown;  border: solid 2px black;  border-radius: 10px;  padding: 10px;"
| <span class="fa fa-archive fa-4x"><span>
| style="padding-left: 10px" | '''This page is archived as its information is no longer current.'''<br /><small>Last update: a long time ago.<br />Current information on this subject can be found at some other page.</small>
|}
|-
|-
| <pre>{{archived page|lastupdate=in January 2004|newpagelink=[[Template:Archived page]]}}</pre> || {{generic box|This page is archived and does not contain up-to-date information. It was last updated in January 2004.
| <pre>{{Archived page|lastupdate=January 2004|newpagelink=[[Welcome to Protospace]]}}</pre>
 
|
Up-to-date information on this subject can be found at [[Welcome to Protospace]].|bgcolor=sandybrown|bordercolor=black}}
{| style="background-color: sandybrown;  border: solid 2px black;  border-radius: 10px;  padding: 10px;"
| <span class="fa fa-archive fa-4x"><span>
| style="padding-left: 10px" | '''This page is archived as its information is no longer current.'''<br /><small>Last update: January 2004.<br />Current information on this subject can be found at [[Welcome to Protospace]].</small>
|}
|}
|}
</noinclude>