Difference between revisions of "Template:Military unit/doc"
From eRepublik Official Wiki
m |
|||
Line 7: | Line 7: | ||
<pre> | <pre> | ||
− | {{Military_unit | + | {{Military_unit |
− | name= | + | |name= |
− | id= | + | |id= <!-- Use only if in game military unit. --> |
− | logo= | + | |logo= |
− | motto= | + | |motto= |
− | General= | + | |General= |
− | formation= | + | |formation= |
− | disbanded= | + | |disbanded= |
− | country= | + | |country= |
− | region= | + | |region= |
− | colours= | + | |colours= |
− | Structure= | + | |Structure= |
− | soldiers= | + | |soldiers= |
− | controlledby= | + | |controlledby= |
− | 2ndcommander= | + | |2ndcommander= |
− | captain= | + | |captain= |
− | partof= | + | |partof= |
− | division1= | + | |division1= |
− | division2= | + | |division2= |
− | division10= | + | |division10= |
}} | }} | ||
</pre> | </pre> |
Revision as of 01:56, 25 May 2014
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= |General= |formation= |disbanded= |country= |region= |colours= |Structure= |soldiers= |controlledby= |2ndcommander= |captain= |partof= |division1= |division2= |division10= }}
Varaibles
- name - The name
- logo - The logo
- id - The id of in game military unit (last number if military unit profile URL)
- motto - The motto
- 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