Template:Archive box/doc

From MeritBadgeDotOrg

Revision as of 13:59, April 3, 2012 by RWSmith (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
This documentation is transcluded from Template:Archive box/doc/doc.
This template may have a sandbox (edit) and testcases for editors to experiment.


Contents

Usage

Include the archive box in the talk page by adding

{{Archive box|[[/Archive]]}}

to where you want the archive box to appear. Substitute [[/Archive]] with the actual name(s) of the archive page(s) and make sure to add the forward slash '/'. How you present a list of archive pages is up to you. You can e.g. separate them with commas or format them as lists. You can also use piped links.

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.

Box width

The box width can be set by using the box-width= parameter:

{{Archive box|box-width=13em|[[/Archive]]}}
{{Archive box|box-width=200px|[[/Archive]]}}

The standard width when this parameter is not used is 238px.

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 (unless you are using an unconventional skin... in which case, you probably know what you are doing).

The easy way

By using magic words, this will work on any talk page(s) with archival sub-pages... without modification!

Wikitext Appearance
{{archive box|
[[{{TALKSPACE}}:{{BASEPAGENAME}}/2011|/2011]]<br />
[[{{TALKSPACE}}:{{BASEPAGENAME}}/2010|/2010]]<br />
[[{{TALKSPACE}}:{{BASEPAGENAME}}/2009|/2009]]<br />
[[{{TALKSPACE}}:{{BASEPAGENAME}}/2008|/2008]]<br />
[[{{TALKSPACE}}:{{BASEPAGENAME}}/2007|/2007]]}}

More detailed examples

Wikitext Appearance
{{archive box|
[[/Archive 1]],
[[/Archive 2]],
[[/December 2005 - January 2006]] and
[[/Deletion discussion]]}}
{{archive box|
[[/Archive 1]]<br />
[[/Archive 2]]<br />
[[/December 2005 - January 2006]]<br />
[[/Deletion discussion]]}}
{{archive box|
: [[/Archive 1]]
: [[/Archive 2]]
: [[/December 2005 - January 2006]]
: [[/Deletion discussion]]}}
{{archive box|image=[[Image:File-manager.svg|35px]]|
* [[/Archive 1|Archive 1]]
* [[/Archive 2]]
* [[/December 2005 - January 2006]]
* [[/Deletion discussion]]}}
{{archive box|
# [[/Archive 1]]
# [[/Archive 2]]
# [[/December 2005 - January 2006]]
# [[/Deletion discussion]]}}
{{archive box|box-width=14em|
* [[/Archive 1]]
* [[/Archive 2]]
* [[/December 2005 - January 2006]]
* [[/Deletion discussion]]}}

See also

Personal tools
language