Template:Military unit/doc

From eRepublik Official Wiki
Jump to: navigation, search
edit

Edit-copy green.png Documentation subpage

This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the Template page itself, see Template:Military unit.
edit

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. -->
  |logo=
  |motto=


  |General=
  |formation=
  |disbanded=
  |country=
  |region=
  |access policy=
  |recruitment rank=
  |colours=

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

Variables

  • name - The name
  • logo - The logo
  • id - The id of in game military unit (last number if military unit profile URL)
  • motto - The motto
  • access policy
  • required rank
  • general - Type 'hide' or 'show' for automatic showing the section or not
  • formation - The date of formation
  • disbanded - The date of dispansion
  • country - The country it is based
  • region - The region it is based in
  • colours - The colours of the unit
  • military - Type 'hide' or 'show' for automatic showing the section or not
  • soldiers - The amount of soldiers
  • controlledby - Leader of the army
  • 2ndcommander - Any 2nd commanders in the unit
  • captain - The elected Captain of the unit
  • partof - What the unit belongs to
  • division1 - What belongs to it.

...

  • division10 - What belongs to it.

Example

{{Military_unit
|name=British Army|
|logo=New_British_Army_Logo.png
|motto=Be The Best|
|flag=Flag_of_the_British_Army.png

|General=show|
|formation=25th January 2010|
|disbanded=|
|country=UK|
|region=London|
|colors=Red and Gold|

|Structure=show|
|soldiers=Classified|
|controlledby=NikSerb|
|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