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"

From Kiwiki
Jump to: navigation, search
(Parameters)
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          =
+
  | Previous leader 1          =
  | Former leader 2          =
+
  | Previous leader 2          =
  | Former leader 3          =
+
  | Previous leader 3          =
  | Former leader 4          =
+
  | Previous leader 4          =
 
  | Members                  = <!--Amount of members--!>
 
  | Members                  = <!--Amount of members--!>
 
  | Current nation            =
 
  | Current nation            =
  | Former nation 1          =
+
  | Previous nation 1          =
  | Former nation 2          =
+
  | Previous nation 2          =
  | Former nation 3          =
+
  | Previous nation 3          =
  | Former nation 4          =
+
  | Previous nation 4          =
 
  }}
 
  }}
 
</pre>
 
</pre>

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.

}}{{#if:|}}

}}{{#ifeq:{{{embed}}}|yes|{{#if:|{{{title}}}}}}}{{#if:|{{#if:

{{#if: }} }} }}{{#if:|{{#if: {{#if: }} }} }}{{#if:{{#if:|[[File:|{{safesubst:#if:{{#ifeq:|yes|Template:Minx200px}} {{#if: }} }} }}{{#if:|{{#if: {{#if: }} }} }}{{#if:{{#if:|Town info}} {{#if: }} }}{{#if: {{#if:Town name }} }}{{#if: {{#if:Created }} }}{{#if: {{#if:Disbanded }} }}{{#if: {{#if:Leader }} }}{{#if: {{#if:Former Leader(s) }} }}{{#if: {{#if:Amount of members }} }}{{#if: {{#if:Nation }} }}{{#if: {{#if:Former Nation(s) }} }}{{#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: {{#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}}}
}}|}}{{#if:|}} {{#ifeq:{{{embed}}}|yes||
Ageos
yes
{{{title}}}
{{{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:

[[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}}} 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:|
}}

{{{caption2}}}}}
{{{label}}}
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
}}{{#switch:¬ no = force|yes = Template:Italic title

}}{{#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: 
{{{demospace}}} {{#if:
       {{#ifeq:|
talk
       }}
       {{#ifeq:template|template talk
talk template
       }}
     }}
   }}
main = talk = user = wikipedia = file image = mediawiki = template = help = category = portal = book = other #default =

}}}}}}{{#switch:

Replace this image male.svg Replace_this_image_male.svg Replace this image female.svg Replace_this_image_female.svg=

}}{{#ifeq:Template||{{#if:|{{#ifeq:Template||}}}}{{#if:|}}{{#if:|{{#if:|}}}}}}{{#if:|}}{{#switch:

 {{#if: 
{{{demospace}}} main other
   }} 
 }}
}} other #default =

}}

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.