Template:Archive box

From Citizendium
Revision as of 11:54, 23 February 2007 by imported>Chris day (→‎Box width and image)
Jump to navigation Jump to search


Usage

Include the archive box in the articles talk page by adding it to where you want the archive box to appear. How you present a list of archive pages is up to you. You can separate them with commas, pipes (vertical lines: '|') or as lists. See further #Examples below.

Wikitext Appearance
{{Archive box|
[[{{BASEPAGENAME}}/Archive 1|Archive 1]]}}

This template can also be placed on all the archive pages to make it convenient to toggle between the different archives, the current talk page and the main article. For an example, see the talk pages and archives associated with this template.

Placement

The box uses a style that makes it float to the right. This means that where it appears in the page it will be aligned to the right edge of the page (more accurately: the containing box, but that is an unnecessary detail) and all following content will flow around it.


Automatic links

If all the archives of a talk page are numbered (/Archive 1, /Archive 2 etc.), you can use the auto parameter to display links to them all automatically. Choosing the yes option will list the archives with numbers only:

Alternatively, if you want longer and more visible links, try:setting the auto parameter to long since this will give a prose version; all other parameter values will trigger the numerical yes format above.

The list will update itself when new archives are added. If there are also named archives, you can add links to these as well. See the additional links shown in the archive boxs below.


Numerical version Wikitext Prose version
Left archive box: this example uses the yes option for numbers.
{{archive box|auto=yes|
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]] and
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
Right archive box: this example uses the long option for prose and numbers.
{{archive box|auto=long|
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]] and
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}

Box width and image

Wikitext Appearance
The box and image widths can be set by passing their widths as parameters:
{{Archive box
|box-width=13em
|image-width=35px
|[[{{BASEPAGENAME}}/Archive 1|Archive 1]]}}
The image can also be changed from the default, Image:Logo200gr.jpg, for example:
{{Archive box
|image=Image:Heckert_GNU_white.jpg
|[[{{BASEPAGENAME}}/Archive 1|Archive 1]]}}

Examples

For actual examples of the use of this template, use the what links here link in the toolbox on the sidebar, near the top on the left side of this page.

Wikitext Appearance Explanation
{{archive box|
[[{{BASEPAGENAME}}/Archive 1|Archive 1]], 
[[{{BASEPAGENAME}}/Archive 2|Archive 2]], 
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]] and
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
{{archive box|image=image:Heckert_GNU_white.jpg|
[[{{BASEPAGENAME}}/Archive 1|Archive 1]], 
[[{{BASEPAGENAME}}/Archive 2|Archive 2]], 
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]] and
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
{{archive box|box-width=14em|image-width=50px|image=image:Heckert_GNU_white.jpg|
*[[{{BASEPAGENAME}}/Archive 1|Archive 1]]
*[[{{BASEPAGENAME}}/Archive 2|Archive 2]]
*[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]]
*[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
{{archive box|approved=no|
[[{{BASEPAGENAME}}/Archive 1|Archive 1]], 
[[{{BASEPAGENAME}}/Archive 2|Archive 2]], 
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]] and
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
{{archive box|approved=yes|
[[{{BASEPAGENAME}}/Archive 1|Archive 1]], 
[[{{BASEPAGENAME}}/Archive 2|Archive 2]], 
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]] and
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
{{archive box|
[[{{BASEPAGENAME}}/Archive 1|Archive 1]]<br>
[[{{BASEPAGENAME}}/Archive 2|Archive 2]]<br>
[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]]<br>
[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
{{archive box|
:[[{{BASEPAGENAME}}/Archive 1|Archive 1]]
:[[{{BASEPAGENAME}}/Archive 2|Archive 2]]
:[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]]
:[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
{{archive box|
:*[[{{BASEPAGENAME}}/Archive 1|Archive 1]]
:*[[{{BASEPAGENAME}}/Archive 2|Archive 2]]
:*[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]]
:*[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}
{{archive box|
#[[{{BASEPAGENAME}}/Archive 1|Archive 1]]
#[[{{BASEPAGENAME}}/Archive 2|Archive 2]]
#[[{{BASEPAGENAME}}/Archive 3|December 2005 - January 2006]]
#[[{{BASEPAGENAME}}/Deletion discussion|Deletion discussion]]}}