Template:Faction Diplomacy: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<noinclude><!--</noinclude>
<noinclude><!--</noinclude>
|-
|-
| style="vertical-align: center; text-align: center; background: transparent;" | {{{1}}}
| style="vertical-align: center; text-align: center; background: #1e1649;" | {{{1}}}
| style="vertical-align: center; padding: 0px 0px 0px 4px; background: transparent;" |  
| style="vertical-align: center; padding: 0px 0px 0px 4px; background: #1e1649;" |  
{| style="width: 244px; height: 30px; margin: 0px 2px 4px 2px; padding: 1px;" cellspacing="1" cellpadding="0"
{| style="width: 244px; height: 30px; margin: 4px 2px 4px 2px; padding: 1px;" cellspacing="1" cellpadding="0"
|-
|-
| colspan="20" style="text-align: center;" | {{#ifexpr: {{{2}}} >= 0.8 | <span style="color: #009900;">{{{3|Allied}}}</span>}}{{#ifexpr: ({{{2}}} >= 0.4) and ({{{2}}} < 0.8) | <span style="color: #33cc33;">{{{3|Friendly}}}</span>}}{{#ifexpr: ({{{2}}} > -0.4) and ({{{2}}} < 0.4) | <span style="color: #888888;">{{{3|Neutral}}}</span>}}{{#ifexpr: ({{{2}}} <= -0.4) and ({{{2}}} > -0.7) | <span style="color: #ff6600;">{{{3|Unfriendly}}}</span>}}{{#ifexpr: ({{{2}}} <= -0.7) and ({{{2}}} > -0.9) | <span style="color: #cc0000;">{{{3|Hostile}}}</span>}}{{#ifexpr: {{{2}}} <= -0.9 | <span style="color: #cc0000; font-weight: bold;">{{{3|At War}}}</span>}}
| colspan="20" style="text-align: center;" | {{#ifexpr: {{{2}}} >= 0.8 | <span style="color: #009900;">{{{3|Allied}}}</span>}}{{#ifexpr: ({{{2}}} >= 0.4) and ({{{2}}} < 0.8) | <span style="color: #33cc33;">{{{3|Friendly}}}</span>}}{{#ifexpr: ({{{2}}} > -0.4) and ({{{2}}} < 0.4) | <span style="color: #888888;">{{{3|Neutral}}}</span>}}{{#ifexpr: ({{{2}}} <= -0.4) and ({{{2}}} > -0.7) | <span style="color: #ff6600;">{{{3|Unfriendly}}}</span>}}{{#ifexpr: ({{{2}}} <= -0.7) and ({{{2}}} > -0.9) | <span style="color: #cc0000;">{{{3|Hostile}}}</span>}}{{#ifexpr: {{{2}}} <= -0.9 | <span style="color: #cc0000; font-weight: bold;">{{{3|At War}}}</span>}}
|- style="height: 16px;"
|- style="height: 16px;"
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.9) | border-color: rgba(255, 255, 255, 0.2); background: #cc0000; | border-color: rgba(255, 255, 255, 0.2); }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.9) | border-color: #ffffff; background: #cc0000; | border-color: #4e4e4e; }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.8) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} <= -0.9) | background: #cc0000; }}" | {{#ifexpr: ({{{2}}} < -0.8 and {{{2}}} > -0.9) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.8)*1000}}%; background-color: rgba(255, 255, 255, 0.2); margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.8) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} <= -0.9) | background: #cc0000; }}" | {{#ifexpr: ({{{2}}} < -0.8 and {{{2}}} > -0.9) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.8)*1000}}%; background-color: #4e4e4e; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.7) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} <= -0.8) | background: #dd2b2b; }}" | {{#ifexpr: ({{{2}}} < -0.7 and {{{2}}} > -0.8) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.7)*1000}}%; background-color: #dd2b2b; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.7) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} <= -0.8) | background: #dd2b2b; }}" | {{#ifexpr: ({{{2}}} < -0.7 and {{{2}}} > -0.8) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.7)*1000}}%; background-color: #dd2b2b; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.6) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} <= -0.7) | background: #dd5757; }}" | {{#ifexpr: ({{{2}}} < -0.6 and {{{2}}} > -0.7) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.6)*1000}}%; background-color: #dd5757; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.6) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} <= -0.7) | background: #dd5757; }}" | {{#ifexpr: ({{{2}}} < -0.6 and {{{2}}} > -0.7) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.6)*1000}}%; background-color: #dd5757; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.5) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} <= -0.6) | background: #ee8282; }}" | {{#ifexpr: ({{{2}}} < -0.5 and {{{2}}} > -0.6) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.5)*1000}}%; background-color: #ee8282; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.5) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} <= -0.6) | background: #ee8282; }}" | {{#ifexpr: ({{{2}}} < -0.5 and {{{2}}} > -0.6) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.5)*1000}}%; background-color: #ee8282; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.4) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} <= -0.5) | background: #ffadad; }}" | {{#ifexpr: ({{{2}}} < -0.4 and {{{2}}} > -0.5) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.4)*1000}}%; background-color: #ffadad; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.4) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} <= -0.5) | background: #ffadad; }}" | {{#ifexpr: ({{{2}}} < -0.4 and {{{2}}} > -0.5) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.4)*1000}}%; background-color: #ffadad; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.3) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} <= -0.4) | background: #ffd9d9; }}" | {{#ifexpr: ({{{2}}} < -0.3 and {{{2}}} > -0.4) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.3)*1000}}%; background-color: #ffd9d9; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.3) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} <= -0.4) | background: #ffd9d9; }}" | {{#ifexpr: ({{{2}}} < -0.3 and {{{2}}} > -0.4) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.3)*1000}}%; background-color: #ffd9d9; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.2) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} <= -0.3) | background: rgba(255, 255, 255, 0.2); }}" | {{#ifexpr: ({{{2}}} < -0.2 and {{{2}}} > -0.3) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.2)*1000}}%; background-color: rgba(255, 255, 255, 0.2); margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.2) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} <= -0.3) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} < -0.2 and {{{2}}} > -0.3) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.2)*1000}}%; background-color: #ffffff; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.1) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} <= -0.2) | background: rgba(255, 255, 255, 0.2); }}" | {{#ifexpr: ({{{2}}} < -0.1 and {{{2}}} > -0.2) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.1)*1000}}%; background-color: rgba(255, 255, 255, 0.2); margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.1) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} <= -0.2) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} < -0.1 and {{{2}}} > -0.2) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.1)*1000}}%; background-color: #ffffff; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < 0) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} <= -0.1) | background: rgba(255, 255, 255, 0.2); }}" | {{#ifexpr: ({{{2}}} < 0 and {{{2}}} > -0.1) | <div style="height: 14px; width: {{#expr: (-{{{2}}})*1000}}%; background-color: rgba(255, 255, 255, 0.2); margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < 0) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} <= -0.1) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} < 0 and {{{2}}} > -0.1) | <div style="height: 14px; width: {{#expr: (-{{{2}}})*1000}}%; background-color: #ffffff; margin-left: auto;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} >= 0.1) | background: rgba(255, 255, 255, 0.2); }}" | {{#ifexpr: ({{{2}}} > 0 and {{{2}}} < 0.1) | <div style="height: 14px; width: {{#expr: ({{{2}}})*1000}}%; background-color: rgba(255, 255, 255, 0.2);"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} >= 0.1) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} > 0 and {{{2}}} < 0.1) | <div style="height: 14px; width: {{#expr: ({{{2}}})*1000}}%; background-color: #ffffff;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.1) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} >= 0.2) | background: rgba(255, 255, 255, 0.2); }}" | {{#ifexpr: ({{{2}}} > 0.1 and {{{2}}} < 0.2) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.1)*1000}}%; background-color: rgba(255, 255, 255, 0.2);"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.1) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} >= 0.2) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} > 0.1 and {{{2}}} < 0.2) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.1)*1000}}%; background-color: #ffffff;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.2) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} >= 0.3) | background: rgba(255, 255, 255, 0.2); }}" | {{#ifexpr: ({{{2}}} > 0.2 and {{{2}}} < 0.3) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.2)*1000}}%; background-color: rgba(255, 255, 255, 0.2);"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.2) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} >= 0.3) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} > 0.2 and {{{2}}} < 0.3) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.2)*1000}}%; background-color: #ffffff;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.3) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} >= 0.4) | background: #d9ffd9; }}" | {{#ifexpr: ({{{2}}} > 0.3 and {{{2}}} < 0.4) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.3)*1000}}%; background-color: #d9ffd9;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.3) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} >= 0.4) | background: #d9ffd9; }}" | {{#ifexpr: ({{{2}}} > 0.3 and {{{2}}} < 0.4) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.3)*1000}}%; background-color: #d9ffd9;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.4) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} >= 0.5) | background: #adffad; }}" | {{#ifexpr: ({{{2}}} > 0.4 and {{{2}}} < 0.5) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.4)*1000}}%; background-color: #adffad;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.4) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} >= 0.5) | background: #adffad; }}" | {{#ifexpr: ({{{2}}} > 0.4 and {{{2}}} < 0.5) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.4)*1000}}%; background-color: #adffad;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.5) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} >= 0.6) | background: #82ee82; }}" | {{#ifexpr: ({{{2}}} > 0.5 and {{{2}}} < 0.6) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.5)*1000}}%; background-color: #82ee82;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.5) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} >= 0.6) | background: #82ee82; }}" | {{#ifexpr: ({{{2}}} > 0.5 and {{{2}}} < 0.6) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.5)*1000}}%; background-color: #82ee82;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.6) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} >= 0.7) | background: #57dd57; }}" | {{#ifexpr: ({{{2}}} > 0.6 and {{{2}}} < 0.7) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.6)*1000}}%; background-color: #57dd57;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.6) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} >= 0.7) | background: #57dd57; }}" | {{#ifexpr: ({{{2}}} > 0.6 and {{{2}}} < 0.7) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.6)*1000}}%; background-color: #57dd57;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.7) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} >= 0.8) | background: #2bdd2b; }}" | {{#ifexpr: ({{{2}}} > 0.7 and {{{2}}} < 0.8) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.7)*1000}}%; background-color: #2bdd2b;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.7) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} >= 0.8) | background: #2bdd2b; }}" | {{#ifexpr: ({{{2}}} > 0.7 and {{{2}}} < 0.8) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.7)*1000}}%; background-color: #2bdd2b;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.8) | border-color: rgba(255, 255, 255, 0.2); | border-color: rgba(255, 255, 255, 0.2); }}{{#ifexpr: ({{{2}}} >= 0.9) | background: #00cc00; }}" | {{#ifexpr: ({{{2}}} > 0.8 and {{{2}}} < 0.9) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.8)*1000}}%; background-color: #00cc00;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.8) | border-color: #ffffff; | border-color: #4e4e4e; }}{{#ifexpr: ({{{2}}} >= 0.9) | background: #00cc00; }}" | {{#ifexpr: ({{{2}}} > 0.8 and {{{2}}} < 0.9) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.8)*1000}}%; background-color: #00cc00;"></div> }}
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.9) | border-color: rgba(255, 255, 255, 0.2); background: #00cc00; | border-color: rgba(255, 255, 255, 0.2); }}" |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.9) | border-color: #ffffff; background: #00cc00; | border-color: #4e4e4e; }}" |
|}<noinclude>-->
|}<noinclude>-->



Revision as of 20:55, 20 October 2023


Usage

{{Faction Diplomacy/begin}}
{{FD | <faction name/link>| <empathy between -1 and +1>}}
{{FD | <faction name/link>| <empathy between -1 and +1>}}
...
{{Faction Diplomacy/end}}

Note: The empathy numbers follow the same convention as those within Freelancer INI files.

Example

{{Faction Diplomacy/begin}}
{{FD | [[Others]]| +0.9}}
{{FD | [[Red Hessians]]| +0.85}}
{{FD | [[Landwirtrechtbewegung]]| +0.7}}
{{FD | [[Outcasts]]| 0.05}}
{{FD | [[Hogosha]]| -0.5}}
{{FD | [[Corsairs]]| -0.85}}
{{FD | [[Others]]| -0.9}}
{{Faction Diplomacy/end}}

Result would look like:


Faction Relationship
Others
Allied
Red Hessians
Allied
Landwirtrechtbewegung
Friendly
Outcasts
Neutral
Hogosha
Unfriendly
Corsairs
Hostile
Others
At War


Faction Diplomacy/begin and its Variables: Format and Examples

  • If the first field is unused, it will default to "Faction"
  • If the second field is unused, it will default to "Relationship"
  • If either field is used but left empty, it will be blank
  • If both fields are used and left empty, the header will be skipped.

Default Headers

{{Faction Diplomacy/begin}}
{{FD | ... | 0.7}}
{{FD | ... | -0.7}}
{{Faction Diplomacy/end}}
Faction Relationship
...
Friendly
...
Hostile

Custom Headers

{{Faction Diplomacy/begin|first|second}}
{{FD | ... | 0.7}}
{{FD | ... | -0.7}}
{{Faction Diplomacy/end}}
first second
...
Friendly
...
Hostile

No Headers

{{Faction Diplomacy/begin||}}
{{FD | ... | 0.7}}
{{FD | ... | -0.7}}
{{Faction Diplomacy/end}}
...
Friendly
...
Hostile