Difference between revisions of "Template:Factionstandings/line"

From Space Engineers Wiki
Jump to: navigation, search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--{{#vardefine:factionname|{{#explode:{{#titleparts: {{FULLPAGENAME}} | 1 }}|:|1}}}}
+
<includeonly>{{#vardefine:factionname|{{#explode:{{#titleparts: {{FULLPAGENAME}} | 1 }}|:|1}}}}{{#vardefine:tstance|{{get standing|{{{1|}}}|Faction:{{#var:factionname}}}}}}{{#vardefine:mstance|{{get standing|Faction:{{#var:factionname}}|{{{1|}}} }}}}{{#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}} ||
{{#vardefine:tstance|{{#show:{{{1|}}}/Embassy|?stance}}}}
+
<div style="width:700px;height:25px;background:#b2d5e8;">
{{#vardefine:mstance|{{#show:Faction:{{#var:factionname}}/Embassy|?stance}}}}
+
<div style="width:400px;position:absolute;"> [[{{{1|}}}|{{#explode:{{{1|}}}|:|1}}]] </div><div style="padding-left:3px;position:absolute;width:97px;height:25px;left:400px;background:{{#switch: {{#var:tstance}} | -2 =  #F00000 | -1 =  #ff9900 | 0 = #bbbbbb | 1 = #008bff | 2 = #00cc43}};"> {{#switch: {{#var:tstance}} | -2 = War | -1 = Hostile | 0 = Neutral | 1 = Friendly | 2 = Allied }}</div><div style="padding-left:3px;position:absolute;width:97px;height:25px;left:500px;background:{{#switch: {{#var:mstance}} | -2 =  #FF0000 | -1 =  #ff9900 | 0 = #bbbbbb | 1 = #008bff | 2 = #00cc43}};"> {{#switch: {{#var:mstance}} | -2 = War | -1 = Hostile | 0 = Neutral | 1 = Friendly | 2 = Allied }} </div><div style="padding-left:3px;position:absolute;width:97px;height:25px;left:600px;background:{{#switch: {{#var:stance}} | -2 =  #FF0000 | -1 =  #ff9900 | 0 = #bbbbbb | 1 = #008bff | 2 = #00cc43}};"> {{#switch: {{#var:stance}} | -2 = War | -1 = Hostile | 0 = Neutral | 1 = Friendly | 2 = Allied }} </div></div>}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
{{#if: {{#var:tstance}} | | {{#vardefine:tstance|0}}}}
 
{{#if: {{#var:mstance}} | | {{#vardefine:mstance|0}}}}-->
 
{{#ifeq: {{#explode:{{{1|}}}|:|1}}| {{#var:factionname}} ||
 
<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;"> {{#var:tstance}} </div><div style="position:absolute;width:100px;left:400px;"> {{#var:mstance}} </div><div style="position:absolute;width:100px;left:500px;"> Result </div>
 
</div>
 
 
 
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
 

Latest revision as of 01:05, 29 May 2014