| 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 event/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 events.  {{In...") | |||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| 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 events. | 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 events. | ||
| − | {{Infobox  | + | {{Infobox event | 
| − |   |  | + |   | image                     = TNT.png | 
| − |   |  | + |   | image_size                = 150 | 
| − |   |  | + |   | caption                   = A test | 
| − |   |  | + |   | Event name                = Nomad Wars | 
| − |   |  | + |   | Start date                = April 2nd, 2012 | 
| − |   |  | + |   | Start reason              = Dwarves wanted resources | 
| − |   |  | + |  | Involved1                 = Sunbeards | 
| − |   |  | + |   | Involved2                 = Inkscale's group | 
| − |   |  | + |   | Involved3                 = Northern Alliance | 
| − |   |  | + |   | Involved4                 = Adf's group | 
| − |   |  | + |   | Involved5                 = Ageos, Darkwood, and Unnamed | 
| − |   |  | + |   | Location1                 = Ageos | 
| − |   |  | + |   | Location2                 = Darkwood | 
| + |   | Location3                 = Unnamed | ||
|   }} |   }} | ||
| ===Parameters=== | ===Parameters=== | ||
| Line 21: | Line 22: | ||
|   | name                      = <!--The event's name, which will go on top--!> |   | name                      = <!--The event's name, which will go on top--!> | ||
|   | image                     = <!-- Do not include brackets or 'File:'--!> |   | image                     = <!-- Do not include brackets or 'File:'--!> | ||
| − |   | caption                   =   | + |   | caption                   = <!--Size of the image--!> | 
|   | Name                      = <!--The event's name again--!> |   | Name                      = <!--The event's name again--!> | ||
|   | Start date                = <!--When it started--!> |   | Start date                = <!--When it started--!> | ||
| Line 37: | Line 38: | ||
|   | Location3                 =   |   | Location3                 =   | ||
|   | Location4                 =   |   | Location4                 =   | ||
| − |   |  | + |   | Location5                 =   | 
| − | |||
|   }} |   }} | ||
| </pre> | </pre> | ||
Latest revision as of 15:47, 18 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 events.
| Nomad Wars | |||||
|---|---|---|---|---|---|
| yes | |||||
| {{{above}}} | |||||
| {{{header}}} | {{#if: | ||||
| {{{label}}} | }} | ||||
| {{{header}}} | {{#if:{{{subheader2}}} | ||||
| {{{label}}} | }}{{{subheader2}}} | ||||
| {{{header}}} |  }}{{#if:A test| A test}} | ||||
| {{{label}}} | }}{{#if:TNT.png|  }}{{#if:A test| A test}} | ||||
| {{{header}}} | {{{caption2}}}}} | ||||
| {{{label}}} | }}{{{image2}}}{{#if:| {{{caption2}}}}} | ||||
| {{#if: | |||||
| }} | |||||
| {{#if:Nomad Wars | |||||
| Name | }}Nomad Wars | ||||
| {{safesubst:#if:Dwarves wanted resources| }}}}Dwarves wanted resources{{safesubst:#if:Dwarves wanted resources|{{safesubst:#if:| }}}} | |||||
| Began | }}April 2nd, 2012{{safesubst:#if:April 2nd, 2012|{{safesubst:#if:Dwarves wanted resources| }}}}Dwarves wanted resources{{safesubst:#if:Dwarves wanted resources|{{safesubst:#if:| }}}} | ||||
| {{safesubst:#if:| }}}}{{safesubst:#if:|{{safesubst:#if:| }}}} | |||||
| Ended | }}{{safesubst:#if:|{{safesubst:#if:| }}}}{{safesubst:#if:|{{safesubst:#if:| }}}} | ||||
| {{safesubst:#if:Inkscale's groupNorthern Alliance| }}}}Inkscale's group{{safesubst:#if:Inkscale's group|{{safesubst:#if:Northern Alliance| }}}}Northern Alliance | |||||
| People/groups involved | }}Sunbeards{{safesubst:#if:Sunbeards|{{safesubst:#if:Inkscale's groupNorthern Alliance| }}}}Inkscale's group{{safesubst:#if:Inkscale's group|{{safesubst:#if:Northern Alliance| }}}}Northern Alliance | ||||
| {{safesubst:#if:DarkwoodUnnamed| }}}}Darkwood{{safesubst:#if:Darkwood|{{safesubst:#if:Unnamed| }}}}Unnamed | |||||
| Location(s) | }}Ageos{{safesubst:#if:Ageos|{{safesubst:#if:DarkwoodUnnamed| }}}}Darkwood{{safesubst:#if:Darkwood|{{safesubst:#if:Unnamed| }}}}Unnamed | ||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{#if: | |||||
| }} | |||||
| {{{below}}} | |||||
| Template:Navbar | |||||
}}{{#ifeq:|yes||{{#if:Nomad WarsApril 2nd, 2012{{safesubst:#if:April 2nd, 2012|{{safesubst:#if:Dwarves wanted resources|
}}}}Dwarves wanted resources{{safesubst:#if:Dwarves wanted resources|{{safesubst:#if:|
}}}}{{safesubst:#if:|{{safesubst:#if:|
}}}}{{safesubst:#if:|{{safesubst:#if:|
}}}}Sunbeards{{safesubst:#if:Sunbeards|{{safesubst:#if:Inkscale's groupNorthern Alliance|
}}}}Inkscale's group{{safesubst:#if:Inkscale's group|{{safesubst:#if:Northern Alliance|
}}}}Northern AllianceAgeos{{safesubst:#if:Ageos|{{safesubst:#if:DarkwoodUnnamed|
}}}}Darkwood{{safesubst:#if:Darkwood|{{safesubst:#if:Unnamed|
}}}}Unnamed||{{#switch:
 {{#if: 
       {{#ifeq:|
}}
       {{#ifeq:template|template talk
       }}
     }}
   }}
}}}}}}
Parameters
{{Infobox event
 | name                      = <!--The event's name, which will go on top--!>
 | image                     = <!-- Do not include brackets or 'File:'--!>
 | caption                   = <!--Size of the image--!>
 | Name                      = <!--The event's name again--!>
 | Start date                = <!--When it started--!>
 | Start reason              = <!--Why it started--!>
 | End date                  = <!--When it ended--!>
 | End reason                = <!--Why/how it ended--!>
 | Involved1                 = <!--One person/group that's inolved--!>
 | Involved2                 = <!--Same as the first--!>
 | Involved3                 = 
 | Involved4                 = 
 | Involved5                 = 
 | Involved6                 = 
 | Location1                 = <!--Where it happened--!>
 | Location2                 = 
 | Location3                 = 
 | Location4                 = 
 | Location5                 = 
 }}
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.
