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

From eRepublik Official Wiki
Jump to: navigation, search
m
(update)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
{{Complex}}
 
{{Complex}}
  
This is a template for pages regarding Military Units
+
This is a template for pages regarding Military Units.
  
 
==Usage==
 
==Usage==
 
 
<pre>
 
<pre>
 
{{Military_unit
 
{{Military_unit
 
   |name=
 
   |name=
   |id= <!-- Use only if in game military unit. -->
+
   |id= <!-- Use only if in game military unit (Since [[Rising]] every unit is an in-game unit). -->
 
   |logo=
 
   |logo=
 +
  |flag=
 
   |motto=
 
   |motto=
  
  
 
   |General=
 
   |General=
   |formation=
+
   |founded=
 
   |disbanded=
 
   |disbanded=
 
   |country=
 
   |country=
Line 21: Line 21:
 
   |access policy=
 
   |access policy=
 
   |recruitment rank=
 
   |recruitment rank=
   |colours=
+
   |colors=
 +
  |type=
  
 
   |Structure=
 
   |Structure=
Line 36: Line 37:
  
 
==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 45: Line 46:
  
 
*general - Type 'hide' or 'show' for automatic showing the section or not
 
*general - Type 'hide' or 'show' for automatic showing the section or not
*formation - The date of formation
+
*founded - The date when the unit started to exit
*disbanded - The date of dispansion
+
*disbanded - The date when the unit ceased to exit
 
*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
*soldiers - The amount of soldiers
+
*soldiers - The number of soldiers
 
*controlledby - Leader of the army
 
*controlledby - Leader of the army
*2ndcommander - Any 2nd commanders in the unit
+
*2ndcommander - A 2nd commander in the unit
*captain - The elected Captain of 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
 
*partof - What the unit belongs to
*division1 - What belongs to it.
+
*division1 - What belongs to the unit.
 
...
 
...
*division10 - What belongs to it.
+
*division10 - What belongs to the unit.
  
 
==Example==
 
==Example==
 
<pre>{{Military_unit
 
<pre>{{Military_unit
|name=British Army|
+
|name=British Army
|logo=New_British_Army_Logo.png
+
|logo=British Army v2.png
|motto=Be The Best|
+
|motto=Be The Best
|flag=Flag_of_the_British_Army.png
+
|flag=Flag-British_Army.png
 +
|id=599 <!-- Use only if in game military unit. -->
  
|General=show|
+
|General=show
|formation=25th January 2010|
+
|founded=25th January 2010
|disbanded=|
+
|disbanded=N/A
|country=UK|
+
|country=United Kingdom
|region=London|
+
|region=London
|colors=Red and Gold|
+
|colors=Red and Gold
  
|Structure=show|
+
|Structure=show
|soldiers=Classified|
+
|soldiers=
|controlledby=NikSerb|
+
|controlledby=
|partof=British Armed Forces|
+
|partof=British Armed Forces
|division1=|
+
|division1=
 
}}</pre>
 
}}</pre>
 
Example result can be seen here: [[British Army]]
 
Example result can be seen here: [[British Army]]
  
 
==Update April 2010==
 
==Update April 2010==
 
 
*Complete rewrite
 
*Complete rewrite
 
*Backwards compatible
 
*Backwards compatible
Line 92: Line 97:
 
*2nd Commander added
 
*2nd Commander added
 
*Captain 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==
 +
* {{Tl|Historical Military Unit}}

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