Archived/doc: Difference between revisions
From Joomla! Documentation
doc page, will improve |
m final documentation for archive template use |
||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
Easily archive pages no longer needed or of duplicated content. Options include adding links to relevant page(s). | Easily archive pages no longer needed or of duplicated content. Options include adding links to relevant page(s) - limited to 2 and archive categories inclusions. Should not be used as a substitute for a page in need of actual deletion. | ||
== Functions/Features == | == Functions/Features == | ||
* Information box | |||
**Generic message or stated reason for the page being archived | |||
**Page links to more relevant or current page | |||
**Link to view the page's last state with content before being archived | |||
* Automated category inclusion or creation | |||
== Usage == | == Usage == | ||
<pre> | |||
{{archived|(revision ###)}} - default categorisation will be [[Category:Archived pages]] | |||
Example: | |||
{{archived|77774}} will show this documentation's pages last revision if you | |||
click the link to see the page before archival. | |||
</pre> | |||
{{archived|77774}} | |||
<pre> | |||
Include more information with: | |||
|Page called Foo - parameter {{{2|}} | |||
|Page called Foo2 - parameter {{{3|}}} | |||
|reason=This page has not been maintained since 2007 | |||
|cat=Foo,Foo2,Foo3 (use an array, comma separated to include archive categories | |||
Example: | |||
{{archived|77774|Foo|Foo2|reason=Showing how to use this template.|cat=Foo,Foo2,Foo3}} | |||
</pre> | |||
{{archived|77774|Foo|Foo2|reason=Showing how to use this template.|cat=Foo,Foo2,Foo3}} | |||
== Parameters == | == Parameters == | ||
{|class="prettytable parameters" | {|class="prettytable parameters" style="width:60%;" | ||
|- | |- | ||
!Parameter | !Parameter | ||
| Line 19: | Line 36: | ||
|- | |- | ||
|<nowiki>{{{1}}}</nowiki> | |<nowiki>{{{1}}}</nowiki> | ||
| | |Revision ID of the last page state | ||
| | |style="background-color:#330; color:white;"|required | ||
|- | |- | ||
|<nowiki>{{{ | |<nowiki>{{{2}}}</nowiki> | ||
| | |1st link to relevant page | ||
|class="opt"|optional | |||
|- | |||
|<nowiki>{{{3}}}</nowiki> | |||
|2nd link to relevant page | |||
|class="opt"|optional | |||
|- | |||
|<nowiki>{{{reason}}}</nowiki> | |||
|style="width:60%;"|Override default reason: This page has not been maintained in some time, or no longer contains information relevant or current. It may also contain information which is duplicated or contains historical content. | |||
|class="opt"|optional | |||
|- | |||
|<nowiki>{{{cat}}}</nowiki> | |||
|categorisation using array format - Foo,Foo1,Foo2 | |||
|class="opt"|optional | |class="opt"|optional | ||
|} | |} | ||
== Known Issues == | == Known Issues == | ||
Dependencies: | |||
* | * You must retrieve the REVISION ID of the page before use, otherwise the link to the archived version WILL NOT work. | ||
To find the REVISION ID, use the page history link, then choose the page to show as the last known state. This will generally be at the top, just click the link shown with time and date. | |||
<pre> | |||
(cur | prev) 23:04, 25 November 2012 AnyUser(Talk | contribs | block) . . (+1,438) . . (doc page, will improve) | |||
/ \ | |||
| | |||
click here | |||
</pre> | |||
This will show you page in historical REVISION ID format. The REVISION ID is at the very end of your bowser's address bar shown as <code>&oldid=</code> some number. | |||
<pre> | |||
http://docs.joomla.org/index.php?title=Template:Archived/doc&oldid=77774 | |||
</pre> | |||
<!-- REMOVE BLANKS in includeonly-tags and edit *calling* TEMPLATE CATEGORIES BELOW THIS LINE | <!-- REMOVE BLANKS in includeonly-tags and edit *calling* TEMPLATE CATEGORIES BELOW THIS LINE | ||
| Line 48: | Line 77: | ||
--> | --> | ||
<includeonly> | <includeonly> | ||
[[Category: | [[Category:Marker Template|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||
Revision as of 14:55, 29 November 2012
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Archived.
Easily archive pages no longer needed or of duplicated content. Options include adding links to relevant page(s) - limited to 2 and archive categories inclusions. Should not be used as a substitute for a page in need of actual deletion.
Functions/Features
- Information box
- Generic message or stated reason for the page being archived
- Page links to more relevant or current page
- Link to view the page's last state with content before being archived
- Automated category inclusion or creation
Usage
{{archived|(revision ###)}} - default categorisation will be [[Category:Archived pages]]
Example:
{{archived|77774}} will show this documentation's pages last revision if you
click the link to see the page before archival.
| |
This page has been archived.
This page has not been maintained in some time, or no longer contains information relevant or current. It may also contain information which is duplicated or contains historical content. To see the page before archival, click here |
Include more information with:
|Page called Foo - parameter {{{2|}}
|Page called Foo2 - parameter {{{3|}}}
|reason=This page has not been maintained since 2007
|cat=Foo,Foo2,Foo3 (use an array, comma separated to include archive categories
Example:
{{archived|77774|Foo|Foo2|reason=Showing how to use this template.|cat=Foo,Foo2,Foo3}}
| |
This page has been archived.
Showing how to use this template.
|
Parameters
| Parameter | Parameter description | req./opt. |
|---|---|---|
| {{{1}}} | Revision ID of the last page state | required |
| {{{2}}} | 1st link to relevant page | optional |
| {{{3}}} | 2nd link to relevant page | optional |
| {{{reason}}} | Override default reason: This page has not been maintained in some time, or no longer contains information relevant or current. It may also contain information which is duplicated or contains historical content. | optional |
| {{{cat}}} | categorisation using array format - Foo,Foo1,Foo2 | optional |
Known Issues
Dependencies:
- You must retrieve the REVISION ID of the page before use, otherwise the link to the archived version WILL NOT work.
To find the REVISION ID, use the page history link, then choose the page to show as the last known state. This will generally be at the top, just click the link shown with time and date.
(cur | prev) 23:04, 25 November 2012 AnyUser(Talk | contribs | block) . . (+1,438) . . (doc page, will improve)
/ \
|
click here
This will show you page in historical REVISION ID format. The REVISION ID is at the very end of your bowser's address bar shown as &oldid= some number.
http://docs.joomla.org/index.php?title=Template:Archived/doc&oldid=77774
