| You need to be logged into the wiki to be able to edit! To login or join the wiki, click here. | 
Difference between revisions of "Template:Infobox town/doc"
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
|   | Disbanded date            =   |   | Disbanded date            =   | ||
|   | Leader                    = <!--Who is the mayor-like figure?--!> |   | Leader                    = <!--Who is the mayor-like figure?--!> | ||
| − |   |  | + |   | Previous leader 1         = | 
| − |   |  | + |   | Previous leader 2         = | 
| − |   |  | + |   | Previous leader 3         = | 
| − |   |  | + |   | Previous leader 4         = | 
|   | Members                   = <!--Amount of members--!> |   | Members                   = <!--Amount of members--!> | ||
|   | Current nation            = |   | Current nation            = | ||
| − |   |  | + |   | Previous nation 1         = | 
| − |   |  | + |   | Previous nation 2         = | 
| − |   |  | + |   | Previous nation 3         = | 
| − |   |  | + |   | Previous nation 4         = | 
|   }} |   }} | ||
| </pre> | </pre> | ||
Latest revision as of 13:42, 19 September 2012
The infobox template is a staple among wikis, creating a sidebar to the left side containing information in a brief form. Below is the parameters of the infobox for towns.
| Ageos | ||||||||||||
| yes | ||||||||||||
| {{{above}}} | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{{header}}} | {{#if: | |||||||||||
| {{{label}}} | }} | |||||||||||
| {{{header}}} | {{#if:{{{subheader2}}} | |||||||||||
| {{{label}}} | }}{{{subheader2}}} | yes|Template:Minx200px}}{{safesubst:#iferror:{{safesubst:#expr:{{#ifeq:|yes|Template:Minx200px}}>0}} | px}} | {{safesubst:#if: | {{safesubst:#iferror:{{safesubst:#expr:>0}} | px}} | frameless{{safesubst:#iferror:{{safesubst:#expr:frameless>0}} | px}} }} }}|alt=|]]}}|{{#if: | ||||
| {{{header}}} | [[File:|{{safesubst:#if:{{#ifeq:|yes|Template:Minx200px}} | yes|Template:Minx200px}}{{safesubst:#iferror:{{safesubst:#expr:{{#ifeq:|yes|Template:Minx200px}}>0}} | px}} | {{safesubst:#if: | {{safesubst:#iferror:{{safesubst:#expr:>0}} | px}} | frameless{{safesubst:#iferror:{{safesubst:#expr:frameless>0}} | px}} }} }}|alt=|]]}}{{#if:| | ||||
| {{{label}}} | }} {{#if:|[[File:|{{safesubst:#if:{{#ifeq:|yes|Template:Minx200px}} | yes|Template:Minx200px}}{{safesubst:#iferror:{{safesubst:#expr:{{#ifeq:|yes|Template:Minx200px}}>0}} | px}} | {{safesubst:#if: | {{safesubst:#iferror:{{safesubst:#expr:>0}} | px}} | frameless{{safesubst:#iferror:{{safesubst:#expr:frameless>0}} | px}} }}}}|alt=|]]}}{{#if:| }} | ||||
| {{{header}}} | {{{caption2}}}}} | |||||||||||
| {{{label}}} | }}{{{image2}}}{{#if:| {{{caption2}}}}} | Town info}} | {{#if: | |||||||||
| }} | ||||||||||||
| {{#if:Ageos | ||||||||||||
| Town name | }}Ageos | |||||||||||
| {{#if:March something or other | ||||||||||||
| Created | }}March something or other | |||||||||||
| {{#if: | ||||||||||||
| Disbanded | }} | |||||||||||
| {{#if:Leech | ||||||||||||
| Leader | }}Leech | |||||||||||
| {{safesubst:#if:| }}}}{{safesubst:#if:|{{safesubst:#if:| }}}} | ||||||||||||
| Former Leader(s) | }}{{safesubst:#if:|{{safesubst:#if:| }}}}{{safesubst:#if:|{{safesubst:#if:| }}}} | |||||||||||
| {{#if:17 | ||||||||||||
| Amount of members | }}17 | |||||||||||
| {{#if: | ||||||||||||
| Nation | }} | |||||||||||
| {{safesubst:#if:| }}}}{{safesubst:#if:|{{safesubst:#if:| }}}} | ||||||||||||
| Former Nation(s) | }}{{safesubst:#if:|{{safesubst:#if:| }}}}{{safesubst:#if:|{{safesubst:#if:| }}}} | |||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if: | ||||||||||||
| }} | ||||||||||||
| {{#if:|Notes {{{footnotes}}}}} | ||||||||||||
| Template:Navbar | ||||||||||||
}}{{#ifeq:|yes||{{#if:AgeosMarch something or otherLeech{{safesubst:#if:|{{safesubst:#if:|
}}}}{{safesubst:#if:|{{safesubst:#if:|
}}}}17{{safesubst:#if:|{{safesubst:#if:|
}}}}{{safesubst:#if:|{{safesubst:#if:|
}}}}||{{#switch:
 {{#if: 
       {{#ifeq:|
}}
       {{#ifeq:template|template talk
       }}
     }}
   }}
}}}}}}{{#switch:
}}{{#ifeq:Template||{{#if:|{{#ifeq:Template||}}}}{{#if:|}}{{#if:|{{#if:|}}}}}}{{#if:|}}{{#switch:
 {{#if: 
}} }}
}}
Parameters
{{Infobox town
 | image                     = <!-- Do not include brackets or 'File:'--!>
 | caption                   = 
 | Town name                 =
 | Creation date             =
 | Disbanded date            = 
 | Leader                    = <!--Who is the mayor-like figure?--!>
 | Previous leader 1         =
 | Previous leader 2         =
 | Previous leader 3         =
 | Previous leader 4         =
 | Members                   = <!--Amount of members--!>
 | Current nation            =
 | Previous nation 1         =
 | Previous nation 2         =
 | Previous nation 3         =
 | Previous nation 4         =
 }}
Removing fields
Are some of the fields not applicable? well, one nice thing about Infoboxes is that you can remove any field you want, and it will still work.
