8,290
edits
mNo edit summary |
m (center tooltips to help prevent them overflowing infobox and getting cut off) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:1 | <includeonly>{{#if: {{{2|}}} | ||
| {{#expr:{{{1|}}} <= -100}} = {{Tooltip|{{{1}}} Reputation|{{color|R| | | {{#switch:1 | ||
| {{#expr:{{{1|}}} <= -50}} = {{Tooltip|{{{1}}} Reputation|{{color|r| | | {{#expr:{{{1|}}} <= -100}} = {{Tooltip|{{{1}}} Reputation|{{color|R|Hate}}|centered}} | ||
| {{#expr:{{{1|}}} <= 49}} = {{Tooltip|{{{1}}} Reputation|{{color| | | {{#expr:{{{1|}}} <= -50}} = {{Tooltip|{{{1}}} Reputation|{{color|r|Dislike}}|centered}} | ||
| {{#expr:{{{1|}}} >= 100}} = {{Tooltip|{{{1}}} Reputation|{{color|G| | | {{#expr:{{{1|}}} <= 49}} = {{Tooltip|{{{1}}} Reputation|{{color|Y|Neutral}}|centered}} | ||
| {{#expr:{{{1|}}} >= 50}} = {{Tooltip|{{{1}}} Reputation|{{color|g| | | {{#expr:{{{1|}}} >= 100}} = {{Tooltip|{{{1}}} Reputation|{{color|G|Love}}|centered}} | ||
| {{#expr:{{{1|}}} >= 50}} = {{Tooltip|{{{1}}} Reputation|{{color|g|Like}}|centered}} | |||
| ?? | | ?? | ||
}} | |||
|{{#switch:1 | |||
| {{#expr:{{{1|}}} <= -100}} = {{Tooltip|{{{1}}} Reputation|{{color|R|Hated}}|centered}} | |||
| {{#expr:{{{1|}}} <= -50}} = {{Tooltip|{{{1}}} Reputation|{{color|r|Disliked}}|centered}} | |||
| {{#expr:{{{1|}}} <= 49}} = {{Tooltip|{{{1}}} Reputation|{{color|Y|Neutral}}|centered}} | |||
| {{#expr:{{{1|}}} >= 100}} = {{Tooltip|{{{1}}} Reputation|{{color|G|Loved}}|centered}} | |||
| {{#expr:{{{1|}}} >= 50}} = {{Tooltip|{{{1}}} Reputation|{{color|g|Liked}}|centered}} | |||
| ?? | |||
}} | |||
}}</includeonly><noinclude><!-- | }}</includeonly><noinclude><!-- | ||
-->Takes a non-player creature's reputation value with a faction and displays the creature's relationship with that faction, with a tooltip displaying the value. | -->Takes a non-player creature's reputation value with a faction as a parameter and displays the creature's relationship with that faction, with a tooltip displaying the value. | ||
Line 25: | Line 35: | ||
| 99 − 50 || {{color | g | Liked }} | | 99 − 50 || {{color | g | Liked }} | ||
|- | |- | ||
| 49 − -49 || {{color | | | 49 − -49 || {{color | Y | Neutral }} | ||
|- | |- | ||
| -50 − -99 || {{color | r | Disliked }} | | -50 − -99 || {{color | r | Disliked }} | ||
Line 32: | Line 42: | ||
|} | |} | ||
You can set a second parameter to change the tense, for use in faction pages: | |||
<pre> | |||
{{Faction feeling description|80|faction}} | |||
</pre> | |||
...which results in: {{Faction feeling description|80|faction}} | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |