From EncyclopAtys
Usage
Include the archive box in the article by adding
{{Archive-box|[[/Archive]]}}
to where you want the archive box to appear. 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. Notes:
- 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.
- If subpages are disabled in the namespace where the template is used, you may need to spell out the full archive path, such as:
{{Archive-box|[[{{NAMESPACE}}:{{PAGENAME}}/Archive|Archive name]]}}
If using the full page, it is suggested that you include the optional "|Archive name" shown above, using an appropriate name.
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.
Advanced usage options
The template contains multiple parameter variables that are intended to give the user additional customization and flexibility when using the template.
title
- Alter the title of the box. Default is "Archive". Selecting
none
results in no title below the image.
alt-title
- Alternate title location above the image. Default is no content.
header
- Another alternate title, formatted in a header block. Default is not shown / no content.
header-color
- Modify the header block color. Default is #ddd. No effect if no header text is specified.
width
- Alter the width. Default is 16em.
font
- Modify the font face. Default is none.
border-color
- Modify the color of the border. Default is #aaa
background-color
- Modify the color of the background. Default is #eee.
image
- Choose which image you'd like as your archive icon. Default is Image:Vista-file-manager.png. Selecting
none
results in no image.
image-size
- Alter the size of the image. Default is 48px.
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).
Wikitext | Appearance |
---|---|
{{archive-box| [[/Archive 1]], [[/Archive 2|titled link]], [[/December 2005 - January 2006]] and [[/Deletion discussion]]}} |
|
{{archive-box| [[/Archive 1]]<br /> [[/Archive 2|titled link]]<br /> [[/December 2005 - January 2006]]<br /> [[/Deletion discussion]]}} |
|
{{archive-box| : [[/Archive 1]] : [[/Archive 2|titled link]] : [[/December 2005 - January 2006]] : [[/Deletion discussion]]}} |
|
{{archive-box| * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
|
{{archive-box| # [[/Archive 1]] # [[/Archive 2|titled link]] # [[/December 2005 - January 2006]] # [[/Deletion discussion]]}} |
|
{{archive-box |width=200px |border-color=red |image-size=75px |title=My talk archive | * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
|
{{archive-box |background-color=white |image=none |title=Archive by subject | * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
Archive by subject |
{{archive-box |title=none |alt-title=Resolved issues | * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
|
{{archive-box |title=none |header=Older discussions |header-color=LightSteelBlue |background-color=AliceBlue |border-color=MidnightBlue | * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
See also
- {{archived}} = a template for flagging that the page contents are an archive and should not be edited.