Difference between revisions of "Template:Military unit/doc"
From eRepublik Official Wiki
m |
Daniel Dimow (Talk | contribs) m (update) |
||
Line 12: | Line 12: | ||
|logo= | |logo= | ||
|motto= | |motto= | ||
+ | |access policy= | ||
+ | |recruitment rank= | ||
|General= | |General= | ||
Line 32: | Line 34: | ||
</pre> | </pre> | ||
− | == | + | ==Variables== |
*name - The name | *name - The name | ||
Line 38: | Line 40: | ||
*id - The id of in game military unit (last number if military unit profile URL) | *id - The id of in game military unit (last number if military unit profile URL) | ||
*motto - The motto | *motto - The motto | ||
+ | *access policy | ||
+ | *required rank | ||
*general - Type 'hide' or 'show' for automatic showing the section or not | *general - Type 'hide' or 'show' for automatic showing the section or not |
Revision as of 11:22, 27 March 2016
This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the Template page itself, see Template:Military unit.
To view the Template page itself, see Template:Military unit.
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= |access policy= |recruitment rank= |General= |formation= |disbanded= |country= |region= |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