Template:ArchiveBox: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div style="float: right; margin: 0 0 .5em .5em; width: {{{width|150px}}}; | <div style="float: right; margin: 0 0 .5em .5em; width: {{{width|150px}}}; border: 2px solid {{ #if: {{{color|}}} | {{{color}}} | {{{border-color|#3F550F}}} }}; background: {{{background-color|#2B3C2B}}}; padding: .5em 1em;"> | ||
<div class="archive-header" style="text-align: center;"> | <div class="archive-header" style="text-align: center;"> | ||
{{ #ifeq: {{{image}}} | none | | [[Image:{{{image|Vista-file-manager.png}}}|{{{image-size|64px}}}]]<br /> }}{{ #ifeq: {{{title}}} | none | | '''{{{title|Archive}}}''' }} | |||
---- | ---- | ||
</div> | </div> | ||
Line 30: | Line 29: | ||
'''title''' | '''title''' | ||
:Alter the title of the box. Default is "Archive". Selecting <code>none</code> results in no title below the image. | :Alter the title of the box. Default is "Archive". Selecting <code>none</code> results in no title below the image. | ||
'''width''' | '''width''' | ||
:Alter the width. Default is 16em. | :Alter the width. Default is 16em. | ||
'''border-color''' | '''border-color''' | ||
:Modify the color of the border. Default is # | :Modify the color of the border. Default is #3F550F | ||
'''background-color''' | '''background-color''' | ||
:Modify the color of the background. Default is # | :Modify the color of the background. Default is #2B3C2B | ||
'''image''' | '''image''' | ||
:Choose which image you'd like as your archive icon. Default is [[:File:Vista-file-manager.png]]. Selecting <code>none</code> results in no image. | :Choose which image you'd like as your archive icon. Default is [[:File:Vista-file-manager.png]]. Selecting <code>none</code> results in no image. | ||
Line 153: | Line 144: | ||
|<pre>{{ArchiveBox | |<pre>{{ArchiveBox | ||
|title=none | |title=none | ||
| | | | ||
* [[/Archive 1]] | * [[/Archive 1]] | ||
Line 161: | Line 151: | ||
|{{ArchiveBox | |{{ArchiveBox | ||
|title=none | |title=none | ||
| | | | ||
* [[/Archive 1]] | * [[/Archive 1]] | ||
Line 170: | Line 159: | ||
|<pre>{{ArchiveBox | |<pre>{{ArchiveBox | ||
|title=none | |title=none | ||
|background-color=AliceBlue | |background-color=AliceBlue | ||
|border-color=MidnightBlue | |border-color=MidnightBlue | ||
Line 181: | Line 168: | ||
|{{ArchiveBox | |{{ArchiveBox | ||
|title=none | |title=none | ||
|background-color=AliceBlue | |background-color=AliceBlue | ||
|border-color=MidnightBlue | |border-color=MidnightBlue |
Revision as of 00:59, July 16, 2013
Usage[edit source]
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:
- 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[edit source]
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[edit source]
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[edit source]
- Template:Tl = a template for flagging that the page contents are an archive and should not be edited.
(copied from http://wiki.guildwars2.com/wiki/Template:Archive-box)