Difference between revisions of "Template:IMilitary unit/Core"
From eRepublik Official Wiki
(test + category added) |
(Matching {{Template:Military unit}}) |
||
Line 2: | Line 2: | ||
<div style="float:right; clear:right; opacity:1; width:250px; border:2px solid #C6E4F2; -moz-border-radius:|5px; background-color:#F1FAFF; margin:0px 0px 10px 10px; padding:10px 0px 5px 0px; text-align:left;"> | <div style="float:right; clear:right; opacity:1; width:250px; border:2px solid #C6E4F2; -moz-border-radius:|5px; background-color:#F1FAFF; margin:0px 0px 10px 10px; padding:10px 0px 5px 0px; text-align:left;"> | ||
<div align="center"> | <div align="center"> | ||
− | <span class="plainlinks" style="padding:5px; font-family:sans-serif; font-size:150%; font-weight:bold; text-align:center; color:#3C8FA7">{{#if: {{{name|}}}|{{{name|}}}|{{{ | + | <span class="plainlinks" style="padding:5px; font-family:sans-serif; font-size:150%; font-weight:bold; text-align:center; color:#3C8FA7">{{#ifeq:{{{id|}}}||{{#if: {{{name|}}}|{{{name|}}}|Unknown military unit}}|[https://www.erepublik.com/en/military/military-unit/{{{id|}}} {{#if: {{{name|}}}|{{{name|}}}|Unknown military unit}}]}}</span> |
+ | |||
<div style="width:228px; border:1px solid #C6E4F2; background-color:#FFF; padding: 10px 5px 10px 5px;" align="center"> | <div style="width:228px; border:1px solid #C6E4F2; background-color:#FFF; padding: 10px 5px 10px 5px;" align="center"> | ||
− | {{#if:{{{logo|}}}|[[File:{{{logo|}}}|218px]]|[[File: | + | {{#if:{{{logo|}}}|[[File:{{{logo|Default coat of arms.png}}}|218px|{{#ifeq:{{{id|}}}|||link=https://www.erepublik.com/en/military/military-unit/{{{id|}}}}}]]|[[File:Default coat of arms.png|218px|{{#ifeq:{{{id|}}}|||link=https://www.erepublik.com/en/military/military-unit/{{{id|}}}}}]]}} |
+ | <br > | ||
+ | {{#if:{{{flag|}}}|[[File:{{{flag|}}}|218px|border]]|}} | ||
</div> | </div> | ||
{{#if: {{{motto|}}}| | {{#if: {{{motto|}}}| | ||
Line 17: | Line 20: | ||
{{HeaderV2|{{{igeneral|General Information}}}}} | {{HeaderV2|{{{igeneral|General Information}}}}} | ||
{{RowV2|{{{inickname|Nickname}}}|{{{nickname|}}} }} | {{RowV2|{{{inickname|Nickname}}}|{{{nickname|}}} }} | ||
− | {{RowV2|{{{ | + | {{RowV2|{{{ifounded|Founded}}}|{{{founded|}}}}} |
{{RowV2|{{{idisbanded|Disbanded}}}|{{{disbanded|}}}}} | {{RowV2|{{{idisbanded|Disbanded}}}|{{{disbanded|}}}}} | ||
{{RowV2|{{{icountry|Country}}}|{{{country|}}}|{{SmFlag|{{{country}}}}} {{L|{{{country}}}|{{#if: {{{transcountry}}}|{{{transcountry}}}|{{{country}}}}}}} }} | {{RowV2|{{{icountry|Country}}}|{{{country|}}}|{{SmFlag|{{{country}}}}} {{L|{{{country}}}|{{#if: {{{transcountry}}}|{{{transcountry}}}|{{{country}}}}}}} }} | ||
{{LinkRowV2|{{{iregion|Region}}}|{{{region|}}}}} | {{LinkRowV2|{{{iregion|Region}}}|{{{region|}}}}} | ||
− | |||
− | |||
{{RowV2|{{{icolors|Colors}}}|{{{colors|}}}}} | {{RowV2|{{{icolors|Colors}}}|{{{colors|}}}}} | ||
+ | {{RowV2|{{{iaccesspolicy|Access policy}}}|{{{accesspolicy|}}}}} | ||
+ | {{RowV2|{{{irequiredrank|Required rank}}}|{{{required rank|}}}}} | ||
+ | {{RowV2|{{{itype|Type}}}|{{{type|Open}}}}} | ||
|} | |} | ||
|- | |- | ||
Line 30: | Line 34: | ||
{{HeaderV2|{{{istructure|Structure}}}}} | {{HeaderV2|{{{istructure|Structure}}}}} | ||
{{RowV2|{{{isoldiers|Total Soldiers}}}|{{{soldiers|}}}}} | {{RowV2|{{{isoldiers|Total Soldiers}}}|{{{soldiers|}}}}} | ||
− | {{ | + | {{RowV2|{{{icontrolled|Commanded by}}}|{{{controlledby|}}}}} |
− | {{ | + | {{#if: {{{2ndcommander2|}}} | {{RowV2|{{{i2ndcommander|2nd}}}|{{{2ndcommander|}}}}} |
+ | {{RowV2|{{{i2ndcommander|2nd}}}|{{{2ndcommander2|}}}}} | {{RowV2|{{{i2ndcommander|2nd}}}|{{{2ndcommander|}}}}}}} | ||
+ | {{RowV2|{{{icaptain|1st Regiment Captain}}}|{{{captain|}}}}} | ||
+ | {{RowV2|{{{icaptain2|2nd Regiment Captain}}}|{{{captain2|}}}}} | ||
+ | {{RowV2|{{{icaptain3|3rd Regiment Captain}}}|{{{captain3|}}}}} | ||
+ | {{RowV2|{{{icaptain4|4th Regiment Captain}}}|{{{captain4|}}}}} | ||
+ | {{RowV2|{{{icaptain5|5th Regiment Captain}}}|{{{captain5|}}}}} | ||
+ | {{RowV2|{{{icaptain6|6th Regiment Captain}}}|{{{captain6|}}}}} | ||
+ | {{RowV2|{{{icaptain7|7th Regiment Captain}}}|{{{captain7|}}}}} | ||
+ | {{RowV2|{{{icaptain8|8th Regiment Captain}}}|{{{captain8|}}}}} | ||
+ | {{RowV2|{{{icaptain9|9th Regiment Captain}}}|{{{captain9|}}}}} | ||
+ | {{RowV2|{{{icaptain10|10th Regiment Captain}}}|{{{captain10|}}}}} | ||
+ | {{RowV2|{{{icaptain11|11th Regiment Captain}}}|{{{captain11|}}}}} | ||
+ | {{RowV2|{{{icaptain12|12th Regiment Captain}}}|{{{captain12|}}}}} | ||
+ | {{RowV2|{{{icaptain13|13th Regiment Captain}}}|{{{captain13|}}}}} | ||
+ | {{RowV2|{{{icaptain14|14th Regiment Captain}}}|{{{captain14|}}}}} | ||
+ | {{RowV2|{{{icaptain15|15th Regiment Captain}}}|{{{captain15|}}}}} | ||
+ | {{RowV2|{{{icaptain16|16th Regiment Captain}}}|{{{captain16|}}}}} | ||
+ | {{RowV2|{{{icaptain17|17th Regiment Captain}}}|{{{captain17|}}}}} | ||
+ | {{RowV2|{{{icaptain18|18th Regiment Captain}}}|{{{captain18|}}}}} | ||
+ | {{RowV2|{{{icaptain19|19th Regiment Captain}}}|{{{captain19|}}}}} | ||
+ | {{RowV2|{{{icaptain20|20th Regiment Captain}}}|{{{captain20|}}}}} | ||
+ | {{RowV2|{{{ipartof|Part of}}}|{{{partof|}}} }} | ||
{{Military_unit/List|{{{list|}}}|{{{idivisions|Divisions}}}|{{{divisions|}}}}} | {{Military_unit/List|{{{list|}}}|{{{idivisions|Divisions}}}|{{{divisions|}}}}} | ||
|} | |} |
Revision as of 18:11, 21 April 2020
The code of this template is really complex, please use your sandbox before editing this template