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 searchm (→Example: my fail, left from preview testing) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
{| 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: {{{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.7) | <span style="color: #ff6600;">Unfriendly</span>}}{{#ifexpr: ({{{2}}} <= -0.7) and ({{{2}}} > -0.9) | <span style="color: #cc0000;">Hostile</span>}}{{#ifexpr: {{{2}}} <= -0.9 | <span style="color: #cc0000; font-weight: bold;">At War</span>}} | + | | colspan="20" style="text-align: center; font: smaller Arial;" | {{#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}}} < | + | | style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.9) | border-color: #8ebee5; background: #cc0000; | border-color: #232746; }}" | |
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.8) | border-color: #8ebee5; | border-color: #232746; }}{{#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: #cc0000; margin-left: auto;"></div> }} | | style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.8) | border-color: #8ebee5; | border-color: #232746; }}{{#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: #cc0000; margin-left: auto;"></div> }} | ||
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.7) | border-color: #8ebee5; | border-color: #232746; }}{{#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: #8ebee5; | border-color: #232746; }}{{#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> }} | ||
Line 26: | Line 26: | ||
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.7) | border-color: #8ebee5; | border-color: #232746; }}{{#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: #8ebee5; | border-color: #232746; }}{{#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: #8ebee5; | border-color: #232746; }}{{#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: #8ebee5; | border-color: #232746; }}{{#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}}} > | + | | style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.9) | border-color: #8ebee5; background: #00cc00; | border-color: #232746; }}" | |
|}<noinclude>--> | |}<noinclude>--> | ||
==Usage== | ==Usage== | ||
− | <pre>{{Faction Diplomacy begin}} | + | <pre>{{Faction Diplomacy/begin}} |
{{FD | <faction name/link>| <empathy between -1 and +1>}} | {{FD | <faction name/link>| <empathy between -1 and +1>}} | ||
{{FD | <faction name/link>| <empathy between -1 and +1>}} | {{FD | <faction name/link>| <empathy between -1 and +1>}} | ||
... | ... | ||
− | {{Faction Diplomacy end}}</pre> | + | {{Faction Diplomacy/end}}</pre> |
'''Note:''' The empathy numbers follow the same convention as those within Freelancer INI files. | '''Note:''' The empathy numbers follow the same convention as those within Freelancer INI files. | ||
==Example== | ==Example== | ||
− | {{Faction Diplomacy begin}} | + | <pre>{{Faction Diplomacy/begin}} |
+ | {{FD | [[Others]]| +0.9}} | ||
{{FD | [[Red Hessians]]| +0.85}} | {{FD | [[Red Hessians]]| +0.85}} | ||
{{FD | [[Landwirtrechtbewegung]]| +0.7}} | {{FD | [[Landwirtrechtbewegung]]| +0.7}} | ||
Line 45: | Line 46: | ||
{{FD | [[Hogosha]]| -0.5}} | {{FD | [[Hogosha]]| -0.5}} | ||
{{FD | [[Corsairs]]| -0.85}} | {{FD | [[Corsairs]]| -0.85}} | ||
− | {{Faction Diplomacy end}} | + | {{FD | [[Others]]| -0.9}} |
+ | {{Faction Diplomacy/end}}</pre> | ||
− | == | + | Result would look like: |
− | * " | + | |
− | * | + | {{Faction Diplomacy/begin}} |
− | * | + | {{FD | [[Others]]| +0.9}} |
− | <pre>{{Faction Diplomacy begin| | + | {{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}} | ||
+ | |||
+ | == 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 === | ||
+ | <pre>{{Faction Diplomacy/begin}} | ||
+ | {{FD | ... | 0.7}} | ||
+ | {{FD | ... | -0.7}} | ||
+ | {{Faction Diplomacy/end}}</pre> | ||
+ | {{Faction Diplomacy/begin}} | ||
+ | {{FD | ... | 0.7}} | ||
+ | {{FD | ... | -0.7}} | ||
+ | {{Faction Diplomacy/end}} | ||
+ | === Custom Headers === | ||
+ | <pre>{{Faction Diplomacy/begin|first|second}} | ||
+ | {{FD | ... | 0.7}} | ||
+ | {{FD | ... | -0.7}} | ||
+ | {{Faction Diplomacy/end}}</pre> | ||
+ | {{Faction Diplomacy/begin|first|second}} | ||
+ | {{FD | ... | 0.7}} | ||
+ | {{FD | ... | -0.7}} | ||
+ | {{Faction Diplomacy/end}} | ||
+ | === No Headers === | ||
+ | <pre>{{Faction Diplomacy/begin||}} | ||
{{FD | ... | 0.7}} | {{FD | ... | 0.7}} | ||
{{FD | ... | -0.7}} | {{FD | ... | -0.7}} | ||
− | {{Faction Diplomacy end}}</pre> | + | {{Faction Diplomacy/end}}</pre> |
− | {{Faction Diplomacy begin| | + | {{Faction Diplomacy/begin||}} |
{{FD | ... | 0.7}} | {{FD | ... | 0.7}} | ||
{{FD | ... | -0.7}} | {{FD | ... | -0.7}} | ||
− | {{Faction Diplomacy end}} | + | {{Faction Diplomacy/end}} |
[[Category: Templates]]</noinclude> | [[Category: Templates]]</noinclude> |
Latest revision as of 02:01, 6 February 2012
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 |
| ||||||||||||||||||||||||||||||||||||||||
Red Hessians |
| ||||||||||||||||||||||||||||||||||||||||
Landwirtrechtbewegung |
| ||||||||||||||||||||||||||||||||||||||||
Outcasts |
| ||||||||||||||||||||||||||||||||||||||||
Hogosha |
| ||||||||||||||||||||||||||||||||||||||||
Corsairs |
| ||||||||||||||||||||||||||||||||||||||||
Others |
|
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 | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
... |
| ||||||||||||||||||||||||||||||||||||||||
... |
|
Custom Headers
{{Faction Diplomacy/begin|first|second}} {{FD | ... | 0.7}} {{FD | ... | -0.7}} {{Faction Diplomacy/end}}
first | second | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
... |
| ||||||||||||||||||||||||||||||||||||||||
... |
|
No Headers
{{Faction Diplomacy/begin||}} {{FD | ... | 0.7}} {{FD | ... | -0.7}} {{Faction Diplomacy/end}}
... |
| ||||||||||||||||||||||||||||||||||||||||
... |
|