Template:Archive box/doc

Alternative
For excessively controversial talk pages, the talkheader template automatically includes links to archive subpages, assuming the archive subpages are numbered in the standard manner (Archive 1, Archive 2, etc.). If the talkheader template is on a page, and archive subpages are named in the standard manner, then the talkheader template will display links to the archive pages much like Archive box when used with the Automatic links parameter. It is therefore recommended to use talkheader in order to reduce the number of templates transcluded on the talk page. Please note, however, that—unlike manually added links—automatic links cannot be pipe named to include e.g. the dates of each archive page.

Usage
Include the archive box in the talk page by adding 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 [[ WP:PIPE|piped links  ]]. See and  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 and all following content will flow around it.

(On some article or wikiproject talk pages, there is more than one right floating box. In that case, the edit links of the text sections next to those boxes often "bunch up". Template:FixBunching provides a solution for that problem.)

Box width
The box width can be set by using the  parameter:

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

Image
The image can be changed from the default (see for examples) using the image parameter, for example:

Styles
 Examples:
 * Talk page colors on non-talk pages:
 * Other page colors on talk pages:
 * Font size unchanged:
 * Specific example, changing the background color to white :  

Automatic links
If all the archives of a talk page are named exactly /Archive 1, /Archive 2 etc. (it will not work with e.g. /Archive1, /Archive 01, or subpages of a subpage, e.g. /Archives/Archive 1), you can use the auto</tt> parameter to display links to them all automatically. The list will update itself when new archives are added. If there are also named archives, you can manually add links to those as well.

The links to the archive pages will appear as simple numbers, separated with commas (1, 2, 3, ...). Note: Archives numbered past 100 will be ignored.
 * Using :

The optional root=, links=, and nobr= parameters are passed to archive list when auto=yes. The following will look for a user's talk-page archives named /Archives/Archive 1, /Archives/Archive 2, etc., and list up to 5 archives per line:

If there are no more than 36 archive pages, and you prefer a three-column output, set the auto</tt> parameter to "long". The links to the archive pages will appear as Archive 1, Archive 2, etc. The links will be put into lines with a line break after each third link, to create columns. (Re-arranging the columns, e.g. from top to bottom, is not possible with this parameter. However, manually added links can be arranged in columns with multicol. See the multicol example below.)
 * Using :

The optional root= parameter is passed to archive list when auto=long. The following will look for a user's talk-page archives named /Archives/Archive 1, /Archives/Archive 2, etc.

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).

Other icons
If you wish to use something other than the default icon, there's a gallery of available icons at commons:Category:Archive icons.