Template:Archive box/doc: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
(importing from wikipedia with modifications/simplifications)
 
imported>Zombie Man
(+cat:User Page Templates)
 
(One intermediate revision by one other user not shown)
Line 67: Line 67:
: [[/Deletion discussion]]}}
: [[/Deletion discussion]]}}
|-
|-
|<pre>{{archive box|image=[[Image:File-manager.svg|35px]]|
|<pre>{{archive box|image=[[Image:CoH Game Icon.png|35px]]|
* [[/Archive 1|Archive 1]]
* [[/Archive 1|Archive 1]]
* [[/Archive 2]]
* [[/Archive 2]]
* [[/December 2005 - January 2006]]
* [[/December 2005 - January 2006]]
* [[/Deletion discussion]]}}</pre>
* [[/Deletion discussion]]}}</pre>
|{{archive box|image=[[Image:File-manager.svg|35px]]|
|{{archive box|image=[[Image:CoH Game Icon.png|35px]]|
* [[/Archive 1|Archive 1]]
* [[/Archive 1|Archive 1]]
* [[/Archive 2]]
* [[/Archive 2]]
Line 106: Line 106:


<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Archival templates|{{PAGENAME}}]]
[[Category:Archival templates|{{PAGENAME}}]][[Category:User Page Templates]]
</includeonly>
</includeonly>

Latest revision as of 22:53, 16 February 2010

This is a documentation subpage for Template:Archive box (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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 [[wikipedia:WP:PIPE|piped links. See #Examples below.

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.

Image

For the standard image, the width can be adjusted by using the image-width= parameter:

{{Archive box|image-width=35px|[[/Archive]]}}

The image can also be changed from the default using the image= parameter. Please note that if you're using a changed image, the width of that image can not be adjusted with image-width=. Instead, set the image width using normal image syntax, for example:

{{Archive box|image=[[Image:Crystal Clear app file-manager.png|35px]]}}

Examples

For actual examples of the use of this template, use the what links here link in the toolbox on the sidebar.

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:CoH Game Icon.png|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|image-width=20px|
* [[/Archive 1]]
* [[/Archive 2]]
* [[/December 2005 - January 2006]]
* [[/Deletion discussion]]}}

See also