Welcome to Wars Wiki!
Welcome, new users! For help on where to start, look at our getting started page and our manual of style. Need more help? Ask a staff member!

Template:ArchiveBox: Difference between revisions

From Wars Wiki
Jump to navigationJump to search
m (Changing category from Formatting Templates to Formatting templates)
mNo edit summary
Line 1: Line 1:
<div class="messagebox" style="width: 11em; border: 5px solid #699864; background-color:#A7CA91; float: right; -moz-border-radius:20px;border-radius: 20px, khtml-border-radius: 20px; -webkit-border-radius: 20px;">
<div class="messagebox" style="width: 11em; border: 5px solid #699864; background-color:#A7CA91; float: right; border-radius: 20px;">
<div style="margin-left: 37px;"><div style="float: center;">[[File:Mainpageimage_copy.png|80px]]</div></div>
[[File:Mainpageimage_copy.png|150px|center]]<br>
<div style="margin-left: 8px; margin-bottom: 8px;"><b>&nbsp;&nbsp;Archives:</b><small>
<div style="margin-left: 8px; margin-bottom: 8px;">'''&nbsp;&nbsp;Archives:'''<small>
{{#switch:{{{1|}}}
{{#switch:{{{1|}}}
|Other={{#ifeq:{{{2|}}}|{{Void}}|{{Void}}|*[[{{{2}}}{{!}}{{{3}}}]]}}
|Other={{#ifeq:{{{2|}}}|{{Void}}|{{Void}}|*[[{{{2}}}{{!}}{{{3}}}]]}}

Revision as of 01:30, 26 June 2021

Mainpageimage copy.png

  Archives:

This page has been transcluded from Template:ArchiveBox/doc.


Usage

This template creates a list of a page's archives. This template has four options. At the moment each option supports up to sixteen archive links.

  1. User
    • {{Archives|User|Archive 1|Archive 2|Archive 3|...|...|Archive 16}}
    • This option will automatically create the proper links. Only the names of the archives need to be provided.
    • Here is an example: {{Archives|User|Archive T1|Archive M08|Archive J08}}
  2. User2
    • {{Archives|User2|Archive 1|Archive 1 Name|Archive 2|Archive 2 Name|...|...|Archive 16|Archive 16 Name}}
    • This option does the same as the previous except that it allows a custom name for the links.
    • Here is an example: {{Archives|User2|Archive_1|Timeline Talk|Archive_2|Talk Archive One|Archive_3|Talk Archive Two|Archive_4|Talk Archive Three}}
  3. Talk
    • {{Archives|Talk|Archive 1|Archive 1 Name|Archive 2|Archive 2 Name|...|...|Archive 16|Archive 16 Name}}
    • This option does the same as the previous except that it is for archives in the "Talk" namespace.
    • Here is an example: {{Archives|Talk|Archive06|Archive, 2006|Archive07|Archive, 2007}}
  4. Other
    • {{Archives|Other|Archive 1 Full Name|Archive 1 Name|Archive 2 Full Name|Archive 2 Name|...|...|Archive 16 Full Name|Archive 16 Name}}
    • This option is technical. It gives you exactly what you want. Nothing is automatic. It must be done manually. This option is intended for archives that are not on user talk pages. This is useful for archives that are not a subpage of the current page. So the entire path must be entered.
    • Here is an example: {{Archives|Other|Talk:Main Page/Archive06|Archive, 2006|Talk:Main Page/Archive07|Archive, 2007}}