Template:Archive box/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(New page: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> ==Usage== Include the archive box in the talk page by adding <pre>{{Archive box|[[/...)
Current revision (13:59, April 3, 2012) (edit) (undo)
m (Cleaned up)
 
(One intermediate revision not shown.)
Line 7: Line 7:
Include the archive box in the talk page by adding
Include the archive box in the talk page by adding
<pre>{{Archive box|[[/Archive]]}}</pre>
<pre>{{Archive box|[[/Archive]]}}</pre>
-
to where you want the archive box to appear. Substitute <tt><nowiki>[[/Archive]]</nowiki></tt> 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 [[WP:PIPE|<nowiki>[[</nowiki>WP:PIPE|piped links<nowiki>]]</nowiki>]]. See [[#Automatic links]] and [[#Examples]] below.
+
to where you want the archive box to appear. Substitute <tt><nowiki>[[/Archive]]</nowiki></tt> 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 [http://en.wikipedia.org/wiki/Wikipedia:PIPE piped links].
=== Placement ===
=== 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.
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.
Line 22: Line 21:
=== Examples ===
=== Examples ===
-
For actual examples of the use of this template, use the [[Special:Whatlinkshere/Template:Archive box|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).
+
For actual examples of the use of this template, use the [[Special:Whatlinkshere/Template:Archive box|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 [http://www.mediawiki.org/wiki/Help:Magic_words '''''magic words'''''], this will work on any talk page(s) with archival sub-pages... without modification!
 +
 
 +
{| class="table" align="center"
 +
! Wikitext !! Appearance
 +
|-
 +
|<pre>{{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]]}}</pre>
 +
|{{archive box|
 +
{{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====
{| class="table" align="center"
{| class="table" align="center"
Line 92: Line 114:
* [[/December 2005 - January 2006]]
* [[/December 2005 - January 2006]]
* [[/Deletion discussion]]}}
* [[/Deletion discussion]]}}
-
|-
 
-
|<pre>{{Archive box|
 
-
{{multicol}}
 
-
'''2006'''<br>
 
-
[[/Archive1|1]]<br>
 
-
[[/Archive2|2]]<br>
 
-
[[/Archive3|3]]<br>
 
-
[[/Archive4|4]]<br>
 
-
[[/Archive5|5]]<br>
 
-
{{multicol-break}}
 
-
'''2007'''<br>
 
-
[[/Archive6|6]]<br>
 
-
[[/Archive7|7]]<br>
 
-
[[/Archive8|8]]<br>
 
-
[[/Archive9|9]]<br>
 
-
[[/Archive10|10]]<br>
 
-
[[/Archive11|11]]<br>
 
-
{{multicol-break}}
 
-
'''2008'''<br>
 
-
[[/Archive12|12]]<br>
 
-
[[/Archive13|13]]<br>
 
-
{{multicol-end}}
 
-
}}</pre>
 
-
|
 
-
{{Archive box|
 
-
{{multicol}}
 
-
'''2006'''<br>
 
-
[[/Archive1|1]]<br>
 
-
[[/Archive2|2]]<br>
 
-
[[/Archive3|3]]<br>
 
-
[[/Archive4|4]]<br>
 
-
[[/Archive5|5]]<br>
 
-
{{multicol-break}}
 
-
'''2007'''<br>
 
-
[[/Archive6|6]]<br>
 
-
[[/Archive7|7]]<br>
 
-
[[/Archive8|8]]<br>
 
-
[[/Archive9|9]]<br>
 
-
[[/Archive10|10]]<br>
 
-
[[/Archive11|11]]<br>
 
-
{{multicol-break}}
 
-
'''2008'''<br>
 
-
[[/Archive12|12]]<br>
 
-
[[/Archive13|13]]<br>
 
-
{{multicol-end}}
 
-
}}
 
|}
|}
Line 147: Line 123:
[[Category:Talk header templates|{{PAGENAME}}]]
[[Category:Talk header templates|{{PAGENAME}}]]
</includeonly>
</includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Current revision

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