Template:Faction feeling description: Difference between revisions

refactor
mNo edit summary
(refactor)
Line 1: Line 1:
<includeonly>
<includeonly><!--
{{#ifexpr:{{{1}}}<=-100|{{Tooltip|{{{1}}} Reputation|{{color| R|Hated}}}}|{{#ifexpr:{{{1}}}<=-50|{{Tooltip|{{{1}}} Reputation|{{color|r|Disliked}}}}|{{#ifexpr:{{{1}}}<=49|{{Tooltip|{{{1}}} Reputation|{{color|C|Neutral}}}}|{{#ifexpr:{{{1}}}<=99|{{Tooltip|{{{1}}} Reputation|{{color|g|Liked}}}}|{{#ifexpr:{{{1}}}>= 100|{{Tooltip|{{{1}}} Reputation|{{color|G|Loved}}}}|?}}}}}}}}}}
-->{{#switch:1
</includeonly><noinclude>
| {{#expr:{{{1|}}} <= -100}} = {{Tooltip|{{{1}}} Reputation|{{color|R|Hated}}}}
[[Category:Templates]]
| {{#expr:{{{1|}}} <= -50}}  = {{Tooltip|{{{1}}} Reputation|{{color|r|Disliked}}}}
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.
| {{#expr:{{{1|}}} <= 49}}  = {{Tooltip|{{{1}}} Reputation|{{color|C|Neutral}}}}
| {{#expr:{{{1|}}} >= 100}}  = {{Tooltip|{{{1}}} Reputation|{{color|G|Loved}}}}
| {{#expr:{{{1|}}} >= 50}}  = {{Tooltip|{{{1}}} Reputation|{{color|g|Liked}}}}
| ??
}}</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.




Usage:
Usage:


<syntaxhighlight lang="xml">
<pre>
{{FactionFeeling|21}}
{{FactionFeeling|21}}
</syntaxhighlight>
</pre>
...which results in: {{FactionFeeling|21}}
...which results in: {{FactionFeeling|21}}


Line 28: Line 33:
|}
|}


</noinclude>
[[Category:Templates]]</noinclude>