Template:ArchiveBox
Purpose & Usage
This facilitates breaking potentially long pages to which content can be added over time (like Talk Pages) into subpages. Include the archive box in the article by adding:
{{ArchiveBox|[[/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:
- Move the content to be replaced to a subpage of the page on which the ArchiveBox will appear (preferable in most cases ... otherwise, move to any page).
- At top of the page to which the content was moved, add
{{Archived}}
Template call (for consistency of all pages under Category:Archives) - 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:
{{ArchiveBox|[[{{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.
width
- Alter the width. Default is 16em.
border-color
- Modify the color of the border. Default is #3F550F
background-color
- Modify the color of the background. Default is #2B3C2B
image
- Choose which image you'd like as your archive icon. Default is File: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 |
---|---|
{{ArchiveBox| [[/Archive 1]], [[/Archive 2|titled link]], [[/December 2005 - January 2006]] and [[/Deletion discussion]]}} |
|
{{ArchiveBox| [[/Archive 1]]<br /> [[/Archive 2|titled link]]<br /> [[/December 2005 - January 2006]]<br /> [[/Deletion discussion]]}} |
|
{{ArchiveBox| : [[/Archive 1]] : [[/Archive 2|titled link]] : [[/December 2005 - January 2006]] : [[/Deletion discussion]]}} |
|
{{ArchiveBox| * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
|
{{ArchiveBox| # [[/Archive 1]] # [[/Archive 2|titled link]] # [[/December 2005 - January 2006]] # [[/Deletion discussion]]}} |
|
{{ArchiveBox |width=200px |border-color=red |image-size=75px |title=My talk archive | * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
|
{{ArchiveBox |background-color=white |image=none |title=Archive by subject | * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
Archive by subject |
{{ArchiveBox |title=none | * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
|
{{ArchiveBox |title=none |background-color=AliceBlue |border-color=MidnightBlue | * [[/Archive 1]] * [[/Archive 2|titled link]] * [[/December 2005 - January 2006]] * [[/Deletion discussion]]}} |
See Also
- Archived - Used to archive an ENTIRE page rather than content into subpages.
(copied from https://wiki.guildwars2.com/wiki/Template:Archive-box)