| 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"
(Created page with "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. {{Inf...") |
|||
| Line 16: | Line 16: | ||
| Disbanded date = | | Disbanded date = | ||
| Leader = <!--Who is the mayor-like figure?--!> | | Leader = <!--Who is the mayor-like figure?--!> | ||
| + | | Former leader 1 = | ||
| + | | Former leader 2 = | ||
| + | | Former leader 3 = | ||
| + | | Former leader 4 = | ||
| Members = <!--Amount of members--!> | | Members = <!--Amount of members--!> | ||
| − | | | + | | Current nation = |
| + | | Former nation 1 = | ||
| + | | Former nation 2 = | ||
| + | | Former nation 3 = | ||
| + | | Former nation 4 = | ||
}} | }} | ||
</pre> | </pre> | ||
Revision as of 14:47, 20 April 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?--!>
| Former leader 1 =
| Former leader 2 =
| Former leader 3 =
| Former leader 4 =
| Members = <!--Amount of members--!>
| Current nation =
| Former nation 1 =
| Former nation 2 =
| Former nation 3 =
| Former 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.