Difference between revisions of "Template:Military unit/doc"

From eRepublik Official Wiki
Jump to: navigation, search
(update)
(update)
 
Line 10: Line 10:
 
   |id= <!-- Use only if in game military unit (Since [[Rising]] every unit is an in-game unit). -->
 
   |id= <!-- Use only if in game military unit (Since [[Rising]] every unit is an in-game unit). -->
 
   |logo=
 
   |logo=
 +
  |flag=
 
   |motto=
 
   |motto=
  
Line 20: Line 21:
 
   |access policy=
 
   |access policy=
 
   |recruitment rank=
 
   |recruitment rank=
   |colours=
+
   |colors=
 
   |type=
 
   |type=
  
Line 37: Line 38:
 
==Variables==
 
==Variables==
 
*name - The name
 
*name - The name
*logo - The logo
+
*logo - The logo of the unit
*id - The id of in game military unit (last number if military unit profile URL)
+
*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
 
*motto - The motto
 
*access policy  
 
*access policy  
Line 48: Line 50:
 
*country - The country it is based
 
*country - The country it is based
 
*region - The region it is based in
 
*region - The region it is based in
*colours - The colours of the unit
+
*colors - The colors of the unit
  
 
*military - Type 'hide' or 'show' for automatic showing the section or not
 
*military - Type 'hide' or 'show' for automatic showing the section or not

Latest revision as of 17:38, 21 April 2020

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 (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