Difference between revisions of "Template:IMilitary unit"

From eRepublik Official Wiki
Jump to: navigation, search
m
 
(Matching {{Template:Military unit}})
Line 1: Line 1:
 
<includeonly>{{IMilitary unit/{{TemplateLang|IMilitary unit}}|
 
<includeonly>{{IMilitary unit/{{TemplateLang|IMilitary unit}}|
 
name={{{name|}}}|
 
name={{{name|}}}|
 +
id={{{id|}}}|
 +
border={{{border|#C6E4F2}}}|
 +
background={{{background|#F1FAFF}}}|
 
logo={{{logo|}}}|
 
logo={{{logo|}}}|
 +
flag={{{flag|}}}|
 
motto={{{motto|}}}|
 
motto={{{motto|}}}|
  
 
General={{{General|show}}}|
 
General={{{General|show}}}|
 
nickname={{{nickname|}}}|
 
nickname={{{nickname|}}}|
formation={{{formation|}}}|
+
founded={{{founded|}}}|
 
disbanded={{{disbanded|}}}|
 
disbanded={{{disbanded|}}}|
 
country={{{country|}}}|
 
country={{{country|}}}|
 
transcountry={{{transcountry|}}}|
 
transcountry={{{transcountry|}}}|
 
region={{{region|}}}{{{hq|}}}|
 
region={{{region|}}}{{{hq|}}}|
type={{{type|}}}|
+
access policy={{{access policy|}}}|
party={{{party|}}}|
+
required rank={{{required rank|}}}|
 
colors={{{colors|}}}{{{colours|}}}|
 
colors={{{colors|}}}{{{colours|}}}|
 +
type={{{type|}}}|
  
 
Structure={{{Structure|show}}}|
 
Structure={{{Structure|show}}}|
 
soldiers={{{soldiers|}}}|
 
soldiers={{{soldiers|}}}|
controlledby={{{controlledby|}}}{{{current|}}}|
+
controlledby={{{controlledby|}}}|
 +
2ndcommander={{{2ndcommander|}}}|
 +
2ndcommander2={{{2ndcommander2|}}}|
 +
captain={{{captain|}}}|
 +
captain2={{{captain2|}}}|
 +
captain3={{{captain3|}}}|
 +
captain4={{{captain4|}}}|
 +
captain5={{{captain5|}}}|
 +
captain6={{{captain6|}}}|
 +
captain7={{{captain7|}}}|
 +
captain8={{{captain8|}}}|
 +
captain9={{{captain9|}}}|
 +
captain10={{{captain10|}}}|
 
partof={{{partof|}}}{{{branch|}}}|
 
partof={{{partof|}}}{{{branch|}}}|
division1={{{division1|}}}|
+
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}}}]]}}|
division2={{{division2|}}}|
+
}}</includeonly><noinclude>{{Documentation}}[[Category:Main Templates]]</noinclude>
division3={{{division3|}}}|
+
division4={{{division4|}}}|
+
division5={{{division5|}}}|
+
division6={{{division6|}}}|
+
division7={{{division7|}}}|
+
division8={{{division8|}}}|
+
division9={{{division9|}}}|
+
division10={{{division10|}}}|
+
}}</includeonly>
+
<noinclude>{{Documentation}}</noinclude>
+

Revision as of 17:49, 21 April 2020

[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 translated Military Unit pages.


British Army

British Army v2.png
Flag-British Army.png

Be The Best

General Information
Founded 25th January 2010
Disbanded N/A
Country Flag-United Kingdom.jpg Britannia
Region London
Colors Red and Gold
Structure
Part of British Armed Forces

Usage

{{IMilitary_unit
  |name=
  |id= <!-- Use only if unit exists in-game -->
  |logo=
  |flag=
  |motto=


  |General=
  |founded=
  |disbanded=
  |country=
  |transcountry=
  |region=
  |access policy=
  |recruitment rank=
  |colors=
  |type=

  |Structure=
  |soldiers=
  |controlledby=
  |2ndcommander=
  |captain=
  |partof=
  |division1=
  |division2=
  |division10=
}}

Variables

  • name - The name of the unit
  • id - The id of in-game military unit (last number in the military unit's profile URL)
  • logo - The logo of the unit
  • flag - The flag of the unit
  • motto - The motto of the unit
  • nickname - a nickname of the unit
  • access policy
  • required rank
  • general - Type 'show' or 'hide' for automatic showing the section or not
  • type - The type of unit (eg. Private, Official...)
  • founded - The date when the unit started to exit
  • disbanded - The date when the unit ceased to exit
  • country - The country it is based
  • transcountry - The name of the country in the local language
  • region - The region it is based in
  • colors - The colors of the unit
  • military - Type 'show' or 'hide' for automatic showing the section or not
  • soldiers - The number of soldiers
  • controlledby - Leader of the army
  • 2ndcommander - A 2nd commander of the unit
  • 2ndcommander2 - An additional 2nd commander
  • captain - 1st regiment Captain
  • captain2 - 2nd regiment Captain

...

  • captain20 - 20th regiment Captain
  • partof - What the unit belongs to
  • division1 - What belongs to the unit.

...

  • division10 - What belongs to the unit.

Translating template

  • Go to Template:IMilitary unit/English
  • Copy whole code to Template:IMilitary unit/Your lang -page
  • Add following lines right after {{IMilitary unit/Core| row.
  • Translate strigns and save it.
iunknown=Unknown Military Unit|
igeneral=General Information|
inickname=Nickname|
ifounded=Founded|
idisbanded=Disbanded|
icountry=Country|
iregion=Region|
itype=Type|
iaccesspolicy=Access policy|
irequiredrank=Required rank|
icolors=Colors|
istructure=Structure|
isoldiers=Total Soldiers|
ipartof=Part of|
icontrolled=Controlled by|
i2ndcommander=2nd|
icaptain=1st Regiment Captain|
icaptain2=2nd Regiment Captain|
icaptain3=3rd Regiment Captain|
...
icaptain20=20th Regiment Captain|
idivisions=Divisions|