Difference between revisions of "Template:Planet Calculate Influence"
From Australis Ultima 30k
m |
|||
(44 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
{{#arraydefine:campall|{{#sub:{{#dpl: | {{#arraydefine:campall|{{#sub:{{#dpl: | ||
|category =Campaign | |category =Campaign | ||
− | |category ={{ | + | |category ={{PAGENAME}} |
|notcategory=draw | |notcategory=draw | ||
|notnamespace=Template | |notnamespace=Template | ||
Line 19: | Line 19: | ||
{{#arraydefine:battleall|{{#sub:{{#dpl: | {{#arraydefine:battleall|{{#sub:{{#dpl: | ||
|category =Battle | |category =Battle | ||
− | |category ={{ | + | |category ={{PAGENAME}} |
|notcategory=draw | |notcategory=draw | ||
|notnamespace=Template | |notnamespace=Template | ||
Line 30: | Line 30: | ||
{{#arraydefine:skirmishall|{{#sub:{{#dpl: | {{#arraydefine:skirmishall|{{#sub:{{#dpl: | ||
|category =Skirmish | |category =Skirmish | ||
− | |category ={{ | + | |category ={{PAGENAME}} |
|notcategory=draw | |notcategory=draw | ||
|notnamespace=Template | |notnamespace=Template | ||
Line 36: | Line 36: | ||
|escapelinks=true | |escapelinks=true | ||
|format=,$}}|1}}|$}} | |format=,$}}|1}}|$}} | ||
+ | <!----------------------------------------------> | ||
+ | <!--Check DPLS for no data --> | ||
+ | <!----------------------------------------------> | ||
+ | {{#ifeq:{{#sub:{{#arrayindex:campall|0}}|2|9}}|Extension|{{#arraydefine:campall|}}|}} | ||
+ | {{#ifeq:{{#sub:{{#arrayindex:battleall|0}}|2|9}}|Extension|{{#arraydefine:battleall|}}|}} | ||
+ | {{#ifeq:{{#sub:{{#arrayindex:skirmishall|0}}|2|9}}|Extension|{{#arraydefine:skirmishall|}}|}} | ||
<!----------------------------------------------> | <!----------------------------------------------> | ||
<!--Duplicate arrays from above DPLS --> | <!--Duplicate arrays from above DPLS --> | ||
Line 163: | Line 169: | ||
{{ #vardefine: if | {{ #expr: {{ #var: if }} + 1 }} }} | {{ #vardefine: if | {{ #expr: {{ #var: if }} + 1 }} }} | ||
}} | }} | ||
− | |||
<!--------------------------------------> | <!--------------------------------------> | ||
<!--Display Controlling Factions Image--> | <!--Display Controlling Factions Image--> | ||
<!--------------------------------------> | <!--------------------------------------> | ||
+ | |- | ||
+ | |colspan="2" style="text-align: center;"| | ||
{{#ifexpr:{{#explode:{{#var:highfaction}}|@|1}}>{{#expr:{{#explode:{{#var:2ndhighfaction}}|@|1}}+{{#ifeq:{{#var:planetype}}|Major|{{Template:Control Influence Major}}|{{Template:Control Influence Minor}}}}}} | {{#ifexpr:{{#explode:{{#var:highfaction}}|@|1}}>{{#expr:{{#explode:{{#var:2ndhighfaction}}|@|1}}+{{#ifeq:{{#var:planetype}}|Major|{{Template:Control Influence Major}}|{{Template:Control Influence Minor}}}}}} | ||
|{{#switch:{{#explode:{{#var:highfaction}}|@|0}} | |{{#switch:{{#explode:{{#var:highfaction}}|@|0}} | ||
Line 173: | Line 180: | ||
| loyalist =[[Image:Loyalist.png]] | | loyalist =[[Image:Loyalist.png]] | ||
| Loyalist =[[Image:Loyalist.png]] | | Loyalist =[[Image:Loyalist.png]] | ||
+ | | orks =[[Image:Ork.png]] | ||
+ | | Orks =[[Image:Ork.png]] | ||
| ork =[[Image:Ork.png]] | | ork =[[Image:Ork.png]] | ||
| Ork =[[Image:Ork.png]] | | Ork =[[Image:Ork.png]] | ||
|[[Image:Undecided.png]] | |[[Image:Undecided.png]] | ||
+ | }}|[[Image:Undecided.png]] | ||
}} | }} | ||
− | | | + | |} |
− | } | + | |
− | + | ||
<noinclude> | <noinclude> | ||
[[Category:Influence]] | [[Category:Influence]] | ||
</noinclude> | </noinclude> |
Latest revision as of 17:10, 3 March 2015
Influence Summary | |
---|---|
Faction | Influence
|