Difference between revisions of "Template:Military unit"

From eRepublik Official Wiki
Jump to: navigation, search
(mu bad :D)
Line 2: Line 2:
 
<div style="float:right; clear:right; opacity:1; width:250px; border:2px solid {{{border|#C6E4F2}}}; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; background-color:{{{background|#F1FAFF}}}; margin:0px 0px 10px 10px; padding:10px 0px 5px 0px; text-align:left;">
 
<div style="float:right; clear:right; opacity:1; width:250px; border:2px solid {{{border|#C6E4F2}}}; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; background-color:{{{background|#F1FAFF}}}; margin:0px 0px 10px 10px; padding:10px 0px 5px 0px; text-align:left;">
  
 +
{{Template:Military_unit/Core
 +
|name={{{name|}}}
 +
|id={{{id|}}}
 +
|border={{{border|#C6E4F2}}}
 +
|background={{{background|#F1FAFF}}}
 +
|logo={{{logo|}}}
 +
|flag={{{flag|}}}
 +
|motto={{{motto|}}}
 +
}}
  
 
{| style="width:240px; border:1px solid {{{border|#C6E4F2}}}; background-color:#fff; margin-top: 5px; padding-left: 3px;" align="center"
 
{| style="width:240px; border:1px solid {{{border|#C6E4F2}}}; background-color:#fff; margin-top: 5px; padding-left: 3px;" align="center"

Revision as of 12:40, 10 April 2012


[edit] [purge]

Documentation

Complex.png Complex template

The code of this template is really complex, please use your sandbox before editing this template


This is a template for pages regarding Military Units.

Usage

{{Military_unit
  |name=
  |id= <!-- Use only if in game military unit (Since [[Rising]] every unit is an in-game unit). -->
  |logo=
  |flag=
  |motto=


  |General=
  |founded=
  |disbanded=
  |country=
  |region=
  |access policy=
  |recruitment rank=
  |colors=
  |type=

  |Structure=
  |soldiers=
  |controlledby=
  |2ndcommander=
  |captain=
  |partof=
  |division1=
  |division2=
  |division10=
}}

Variables

  • name - The name
  • logo - The logo of the unit
  • flag - The flag of the unit
  • id - The id of in-game military unit (last number in the military unit's profile URL)
  • motto - The motto
  • access policy
  • required rank
  • general - Type 'hide' or 'show' for automatic showing the section or not
  • founded - The date when the unit started to exit
  • disbanded - The date when the unit ceased to exit
  • country - The country it is based
  • region - The region it is based in
  • colors - The colors of the unit
  • military - Type 'hide' or 'show' for automatic showing the section or not
  • soldiers - The number of soldiers
  • controlledby - Leader of the army
  • 2ndcommander - A 2nd commander in the unit
  • 2ndcommander2 - An additional 2nd commander in the unit
  • captain - The Captain of the unit's 1st regiment
  • captain2 - The Captain of the unit's 2nd regiment

...

  • captain20 - The Captain of the unit's 20th regiment
  • partof - What the unit belongs to
  • division1 - What belongs to the unit.

...

  • division10 - What belongs to the unit.

Example

{{Military_unit
|name=British Army
|logo=British Army v2.png
|motto=Be The Best
|flag=Flag-British_Army.png
|id=599 <!-- Use only if in game military unit. -->

|General=show
|founded=25th January 2010
|disbanded=N/A
|country=United Kingdom
|region=London
|colors=Red and Gold

|Structure=show
|soldiers=
|controlledby=
|partof=British Armed Forces
|division1=
}}

Example result can be seen here: British Army

Update April 2010

  • Complete rewrite
  • Backwards compatible
  • New look and feel

Update September 2011

  • 2nd Commander added
  • Captain added

2012

  • Additional 2nd Commander added
  • Additional Captain added

2014

  • Increased number of Captain regiment from 2 to 10.
  • Automatic linking removed

Update March 2016

  • Added Access policy
  • Added Required rank

Update August 2019

  • Usage information improved
  • Replaced formation by founded to have some sort of standardization
  • Increased number of Captain regiment from 10 to 20.

See also