Template:Archive box auto

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

Other languages:
العربية • ‎مصرى • ‎asturianu • ‎български • ‎भोजपुरी • ‎বাংলা • ‎dansk • ‎Deutsch • ‎Ελληνικά • ‎English • ‎español • ‎فارسی • ‎suomi • ‎français • ‎magyar • ‎Bahasa Indonesia • ‎italiano • ‎日本語 • ‎kurdî • ‎latviešu • ‎Nederlands • ‎polski • ‎پښتو • ‎português • ‎português do Brasil • ‎română • ‎русский • ‎سنڌي • ‎తెలుగు • ‎Türkçe • ‎українська • ‎اردو • ‎Tiếng Việt • ‎ייִדיש • ‎中文

Template documentation[view] [edit] [history] [purge]

Usage[edit]

Include the archive box in the article by adding

{{Archive box non-auto|[[/Archive]]}}

to where you want the archive box to appear. Make sure to add the forward slash '/' to the archive name to make it a subpage of the page where the archive box is placed. 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 #Examples below.

Placement[edit]

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[edit]

If all the archives of a talk page are numbered (like /Archive 1 or /Archive 2) or dated (like /2017 or /2018), you can use Template:Archive box auto to display links to them all automatically. The list will update itself when new archives are added.

 {{archive box auto}}
 -or-
 {{archive box auto|auto=dated}}

If there are also named archives, you can add links to these as well:

 {{archive box auto|auto=dated|
* [[/Some archive/]]}}

When using numbered archives with less than 20 archive pages, you can generate a larger two-column outputwith auto=long.

Box width and image[edit]

The box and image widths can be set by passing their widths as parameters:

{{Archive box non-auto|box-width=13em|image-width=35px|[[/Archive]]}}

The image can also be changed from the default, File:Vista-file-manager.png, for example:

{{Archive box non-auto|image=Crystal Clear app file-manager.png}}

Examples[edit]

For actual examples of the use of these template, use the "what links here" links Special:Whatlinkshere/Template:Archive box non-auto and Special:Whatlinkshere/Template:Archive_box 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).

Wikitext Appearance
{{archive box auto|auto=dated}}
{{Archive box non-auto|
[[/Archive 1]],
[[/Archive 2]],
[[/December 2005 - January 2006]] and
[[/Deletion discussion]]}}
{{Archive box non-auto|
[[/Archive 1]]<br />
[[/Archive 2]]<br />
[[/December 2005 - January 2006]]<br />
[[/Deletion discussion]]}}
{{Archive box non-auto|
: [[/Archive 1]]
: [[/Archive 2]]
: [[/December 2005 - January 2006]]
: [[/Deletion discussion]]}}
{{Archive box non-auto|
* [[/Archive 1]]
* [[/Archive 2]]
* [[/December 2005 - January 2006]]
* [[/Deletion discussion]]}}
{{Archive box non-auto|
# [[/Archive 1]]
# [[/Archive 2]]
# [[/December 2005 - January 2006]]
# [[/Deletion discussion]]}}
{{Archive box non-auto|box-width=14em|image-width=20px|
* [[/Archive 1]]
* [[/Archive 2]]
* [[/December 2005 - January 2006]]
* [[/Deletion discussion]]}}

No description.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
11

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Translatedtranslated

no description

Default
empty
Example
empty
Auto value
empty
Unbalanced wikitextoptional
Uselanguselang

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Autoauto

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Box-widthbox-width

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Imageimage

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Image-widthimage-width

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Basebase

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Titletitle

Changing the title of box.

Default
Archives
Example
empty
Auto value
empty
Unbalanced wikitextoptional

Other icons[edit]

If you wish to use something other than the default icon, here is a gallery of available icons:

See also[edit]