YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Faction Diplomacy"

From Discovery Wiki
Jump to navigationJump to search
(Changed named parameters to unnamed. Documentation not yet updated.)
Line 1: Line 1:
 
<noinclude><!--</noinclude>
 
<noinclude><!--</noinclude>
 
|-
 
|-
| style="vertical-align: center; text-align: center; background: #f6f6f6;" | {{{faction}}}
+
| style="vertical-align: center; text-align: center; background: #f6f6f6;" | {{{1}}}
 
| style="vertical-align: center; padding: 0px 0px 0px 4px; background: #ffffff;" |  
 
| style="vertical-align: center; padding: 0px 0px 0px 4px; background: #ffffff;" |  
 
{| style="width: 244px; height: 30px; margin: 0px 2px 4px 2px; padding: 1px;" cellspacing="1" cellpadding="0"
 
{| style="width: 244px; height: 30px; margin: 0px 2px 4px 2px; padding: 1px;" cellspacing="1" cellpadding="0"
 
|-
 
|-
| colspan="20" style="text-align: center; font: smaller Arial;" | {{#ifexpr: {{{empathy}}} >= 0.8 | <span style="color: #009900;">Allied</span>}}{{#ifexpr: ({{{empathy}}} >= 0.4) and ({{{empathy}}} < 0.8) | <span style="color: #33cc33;">Friendly</span>}}{{#ifexpr: ({{{empathy}}} > -0.4) and ({{{empathy}}} < 0.4) | <span style="color: #888888;">Neutral</span>}}{{#ifexpr: ({{{empathy}}} <= -0.4) and ({{{empathy}}} > -0.8) | <span style="color: #ff6600;">Unfriendly</span>}}{{#ifexpr: {{{empathy}}} <= -0.8 | <span style="color: #990000;">Hostile</span>}}
+
| colspan="20" style="text-align: center; font: smaller Arial;" | {{#ifexpr: {{{2}}} >= 0.8 | <span style="color: #009900;">Allied</span>}}{{#ifexpr: ({{{2}}} >= 0.4) and ({{{2}}} < 0.8) | <span style="color: #33cc33;">Friendly</span>}}{{#ifexpr: ({{{2}}} > -0.4) and ({{{2}}} < 0.4) | <span style="color: #888888;">Neutral</span>}}{{#ifexpr: ({{{2}}} <= -0.4) and ({{{2}}} > -0.8) | <span style="color: #ff6600;">Unfriendly</span>}}{{#ifexpr: {{{2}}} <= -0.8 | <span style="color: #990000;">Hostile</span>}}
 
|- style="height: 16px; background: #f8f8f8;"
 
|- style="height: 16px; background: #f8f8f8;"
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} <= -0.9) | border-color: #8ebee5; background: #cc0000; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} <= -0.9) | border-color: #8ebee5; background: #cc0000; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} < -0.8) | border-color: #8ebee5; background: #cc0000; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.8) | border-color: #8ebee5; background: #cc0000; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} < -0.7) | border-color: #8ebee5; background: #dd2b2b; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.7) | border-color: #8ebee5; background: #dd2b2b; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} < -0.6) | border-color: #8ebee5; background: #dd5757; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.6) | border-color: #8ebee5; background: #dd5757; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} < -0.5) | border-color: #8ebee5; background: #ee8282; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.5) | border-color: #8ebee5; background: #ee8282; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} < -0.4) | border-color: #8ebee5; background: #ffadad; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.4) | border-color: #8ebee5; background: #ffadad; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} < -0.3) | border-color: #8ebee5; background: #ffd9d9; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.3) | border-color: #8ebee5; background: #ffd9d9; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} < -0.2) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.2) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} < -0.1) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.1) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} < 0) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < 0) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} > 0) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} > 0.1) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.1) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} > 0.2) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.2) | border-color: #8ebee5; background: #ffffff; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} > 0.3) | border-color: #8ebee5; background: #d9ffd9; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.3) | border-color: #8ebee5; background: #d9ffd9; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} > 0.4) | border-color: #8ebee5; background: #adffad; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.4) | border-color: #8ebee5; background: #adffad; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} > 0.5) | border-color: #8ebee5; background: #82ee82; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.5) | border-color: #8ebee5; background: #82ee82; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} > 0.6) | border-color: #8ebee5; background: #57dd57; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.6) | border-color: #8ebee5; background: #57dd57; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} > 0.7) | border-color: #8ebee5; background: #2bdd2b; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.7) | border-color: #8ebee5; background: #2bdd2b; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} > 0.8) | border-color: #8ebee5; background: #00cc00; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.8) | border-color: #8ebee5; background: #00cc00; | border-color: #f8f8f8; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{empathy}}} >= 0.9) | border-color: #8ebee5; background: #00cc00; | border-color: #f8f8f8; }}" |
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} >= 0.9) | border-color: #8ebee5; background: #00cc00; | border-color: #f8f8f8; }}" |
 
|}<noinclude>-->
 
|}<noinclude>-->
  

Revision as of 23:12, 17 February 2009


Usage

{{Faction Diplomacy begin}}
{{Faction Diplomacy
| faction = [[Red Hessians]]
| empathy = +0.9
}}
{{Faction Diplomacy
| faction = [[Landwirtrechtbewegung]]
| empathy = +0.7
}}
{{Faction Diplomacy
| faction = [[Outcasts]]
| empathy = -0.1
}}
{{Faction Diplomacy
| faction = [[Hogosha]]
| empathy = -0.5
}}
{{Faction Diplomacy
| faction = [[Corsairs]]
| empathy = -0.9
}}
{{Faction Diplomacy end}}

Example

Faction Relationship
{{{1}}}
Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".
{{{1}}}
Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".
{{{1}}}
Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".
{{{1}}}
Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".
{{{1}}}
Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".