Difference between revisions of "Template:Factionstandings/line"

From Space Engineers Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{#vardefine:factionname|{{#explode:{{#titleparts: {{FULLPAGENAME}} | 1 }}|:|1}}}}{{#vardefine:tstance|{{#show:{{{1|}}}/Embassy|?stance}}}}{{#vardefine:mstance|{{#show:Faction:{{#var:factionname}}/Embassy|?stance}}}}{{#if: {{#var:tstance}} | | {{#vardefine:tstance|0}}}}{{#if: {{#var:mstance}} | | {{#vardefine:mstance|0}}}}
+
<includeonly>{{#vardefine:factionname|{{#explode:{{#titleparts: {{FULLPAGENAME}} | 1 }}|:|1}}}}{{#vardefine:tstance|{{#show:{{{1|}}}/Embassy|?stance}}}}{{#vardefine:mstance|{{#show:Faction:{{#var:factionname}}/Embassy|?stance}}}}{{#if: {{#var:tstance}} | | {{#vardefine:tstance|0}}}}{{#if: {{#var:mstance}} | | {{#vardefine:mstance|0}}}}{{#vardefine:stance|0}}{{#ifexpr: {{#var:tstance}} > {{#var:mstance}} | {{#vardefine:stance|{{#var:mstance}}}} | {{#vardefine:stance|{{#var:tstance}}}} }}
 
{{#ifeq: {{#explode:{{{1|}}}|:|1}}| {{#var:factionname}} ||
 
{{#ifeq: {{#explode:{{{1|}}}|:|1}}| {{#var:factionname}} ||
 
<div style="width:600px;height:25px;background:#b2d5e8;">
 
<div style="width:600px;height:25px;background:#b2d5e8;">
<div style="width:300px;position:absolute;"> {{#explode:{{{1|}}}|:|1}} </div><div style="position:absolute;width:100px;left:300px;"> {{#switch: {{#var:tstance}} | -2 = War | -1 = Hostile | 0 = Neutral | 1 = Friendly | 2 = Allied }}</div><div style="position:absolute;width:100px;left:400px;"> {{#switch: {{#var:tstance}} | -2 = War | -1 = Hostile | 0 = Neutral | 1 = Friendly | 2 = Allied }} </div><div style="position:absolute;width:100px;left:500px;"> Result </div>
+
<div style="width:300px;position:absolute;"> {{#explode:{{{1|}}}|:|1}} </div><div style="position:absolute;width:100px;left:300px;"> {{#switch: {{#var:tstance}} | -2 = War | -1 = Hostile | 0 = Neutral | 1 = Friendly | 2 = Allied }}</div><div style="position:absolute;width:100px;left:400px;"> {{#switch: {{#var:mstance}} | -2 = War | -1 = Hostile | 0 = Neutral | 1 = Friendly | 2 = Allied }} </div><div style="position:absolute;width:100px;left:500px;"> {{#switch: {{#var:tstance}} | -2 = War | -1 = Hostile | 0 = Neutral | 1 = Friendly | 2 = Allied }} </div>
 
</div>
 
</div>
  
 
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
 
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Revision as of 07:26, 28 March 2014