Difference between revisions of "Template:Military unit"
From eRepublik Official Wiki
Line 59: | Line 59: | ||
|captain14={{{captain14|}}} | |captain14={{{captain14|}}} | ||
|captain15={{{captain15|}}} | |captain15={{{captain15|}}} | ||
+ | |captain16={{{captain16|}}} | ||
+ | |captain17={{{captain17|}}} | ||
+ | |captain18={{{captain18|}}} | ||
+ | |captain19={{{captain19|}}} | ||
+ | |captain20={{{captain20|}}} | ||
+ | |captain21={{{captain21|}}} | ||
+ | |captain22={{{captain22|}}} | ||
+ | |captain23={{{captain23|}}} | ||
+ | |captain24={{{captain24|}}} | ||
+ | |captain25={{{captain25|}}} | ||
+ | |captain26={{{captain26|}}} | ||
+ | |captain27={{{captain27|}}} | ||
+ | |captain28={{{captain28|}}} | ||
+ | |captain29={{{captain29|}}} | ||
+ | |captain30={{{captain30|}}} | ||
+ | |captain31={{{captain31|}}} | ||
+ | |captain32={{{captain32|}}} | ||
+ | |captain33={{{captain33|}}} | ||
+ | |captain34={{{captain34|}}} | ||
+ | |captain35={{{captain35|}}} | ||
+ | |captain36={{{captain36|}}} | ||
+ | |captain37={{{captain37|}}} | ||
+ | |captain38={{{captain38|}}} | ||
+ | |captain39={{{captain39|}}} | ||
+ | |captain40={{{captain40|}}} | ||
+ | |captain41={{{captain41|}}} | ||
+ | |captain42={{{captain42|}}} | ||
+ | |captain43={{{captain43|}}} | ||
+ | |captain44={{{captain44|}}} | ||
+ | |captain45={{{captain45|}}} | ||
|partof={{{partof|}}}{{{branch|}}} | |partof={{{partof|}}}{{{branch|}}} | ||
|divisions={{#if: {{{division1|}}}|[[{{{division1|}}}]]}}{{#if: {{{division2|}}}|<br>[[{{{division2}}}]]}}{{#if: {{{division3|}}}|<br>[[{{{division3}}}]]}}{{#if: {{{division4|}}}|<br>[[{{{division4}}}]]}}{{#if: {{{division5|}}}|<br>[[{{{division5}}}]]}}{{#if: {{{division6|}}}|<br>[[{{{division6}}}]]}}{{#if: {{{division7|}}}|<br>[[{{{division7}}}]]}}{{#if: {{{division8|}}}|<br>[[{{{division8}}}]]}}{{#if: {{{division9|}}}|<br>[[{{{division9}}}]]}}{{#if: {{{division10|}}}|<br>[[{{{division10}}}]]}} | |divisions={{#if: {{{division1|}}}|[[{{{division1|}}}]]}}{{#if: {{{division2|}}}|<br>[[{{{division2}}}]]}}{{#if: {{{division3|}}}|<br>[[{{{division3}}}]]}}{{#if: {{{division4|}}}|<br>[[{{{division4}}}]]}}{{#if: {{{division5|}}}|<br>[[{{{division5}}}]]}}{{#if: {{{division6|}}}|<br>[[{{{division6}}}]]}}{{#if: {{{division7|}}}|<br>[[{{{division7}}}]]}}{{#if: {{{division8|}}}|<br>[[{{{division8}}}]]}}{{#if: {{{division9|}}}|<br>[[{{{division9}}}]]}}{{#if: {{{division10|}}}|<br>[[{{{division10}}}]]}} |
Latest revision as of 19:54, 25 May 2022
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.
Contents
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.