Difference between revisions of "Template:Military unit"

From eRepublik Official Wiki
Jump to: navigation, search
m
m (template standardization correction)
(6 intermediate revisions by 3 users not shown)
Line 10: Line 10:
 
|flag={{{flag|}}}
 
|flag={{{flag|}}}
 
|motto={{{motto|}}}
 
|motto={{{motto|}}}
|Regiment={{{regiment|}}}
 
 
}}
 
}}
  
Line 23: Line 22:
 
|border={{{border|#C6E4F2}}}
 
|border={{{border|#C6E4F2}}}
 
|background={{{background|#F1FAFF}}}
 
|background={{{background|#F1FAFF}}}
|formation={{{formation|}}}
+
|founded={{{founded|}}}
 
|disbanded={{{disbanded|}}}
 
|disbanded={{{disbanded|}}}
 
|country={{{country|}}}
 
|country={{{country|}}}
 
|region={{{region|}}}{{{hq|}}}
 
|region={{{region|}}}{{{hq|}}}
 +
|access policy={{{access policy|}}}
 +
|required rank={{{required rank|}}}
 
|colors={{{colors|}}}
 
|colors={{{colors|}}}
 
|type={{{type|}}}
 
|type={{{type|}}}
|Regiment={{{regiment|}}}
 
 
}}
 
}}
 
|}
 
|}
Line 46: Line 46:
 
|captain={{{captain|}}}
 
|captain={{{captain|}}}
 
|captain2={{{captain2|}}}
 
|captain2={{{captain2|}}}
 +
|captain3={{{captain3|}}}
 +
|captain4={{{captain4|}}}
 +
|captain5={{{captain5|}}}
 +
|captain6={{{captain6|}}}
 +
|captain7={{{captain7|}}}
 +
|captain8={{{captain8|}}}
 +
|captain9={{{captain9|}}}
 +
|captain10={{{captain10|}}}
 
|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}}}]]}}
 
}}
 
}}
 
|}
 
|}
 
 
|}
 
|}
 
 
</div>
 
</div>
 
{{#ifeq: {{BASEPAGENAME}}|{{SUBPAGENAME}}|
 
{{#ifeq: {{BASEPAGENAME}}|{{SUBPAGENAME}}|
Line 65: Line 71:
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
{{Documentation}}
+
{{Documentation}}[[Category:Main Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 11:01, 25 August 2019


[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