Difference between revisions of "Template:Reputation"

From Wowpedia
Jump to: navigation, search
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly><onlyinclude>[[{{#if:{{{2|}}}|{{{2|}}}|{{#ifeq:{{lc:{{{1}}}}}|paragon|Reputation#Paragon|{{{1}}}}}}}|<span class="rep-{{lc:{{{1|}}}}}" title="{{ucfirst:{{{1|}}}}}">{{{3|{{{2|{{{1}}}}}}}}}</span>]]</onlyinclude></includeonly>{{documentation}}
<!--Style can be removed if added to CSS -->
 
<includeonly><onlyinclude>[[{{{2|{{{1}}}}}}|<span
 
{{#ifeq:{{lc:{{{1}}}}}|neutral|{{#if:{{{tooltip|}}}|style="color:yellow;"|class="rep-neutral"}}|class="rep-{{#switch:{{lc:{{{1|}}}}}
 
|hated=hated
 
|hostile=hostile
 
|unfriendly=unfriendly
 
|neutral=neutral
 
|friendly=friendly
 
|honored=honored
 
|revered=revered
 
|exalted=exalted
 
|neutral}}" style="color:{{#switch:{{lc:{{{1}}}}}
 
|hated=#cc2222;
 
|hostile=red
 
|unfriendly=#ee6622;
 
|neutral=yellow
 
|friendly=lime
 
|honored=#00ff88;
 
|revered=#00ffcc;
 
|exalted=cyan;
 
|yellow}}"}}
 
title="{{ucfirst:{{{1|}}}}}">{{{3|{{{2|{{{1}}}}}}}}}</span>]]</onlyinclude></includeonly>{{documentation}}
 

Latest revision as of 21:10, 20 September 2020

Description
Displays the given text as a link with the desired reputation color.
Syntax
{{rep|<reputation>|<item page link>|<display text>}}
{{reputation|<reputation>|<item page link>|<display text>}}
Example
{{reputation|hated|Bloodsail Buccaneers}} : Bloodsail Buccaneers
{{reputation|exalted|Booty Bay|Booty Bay (faction)}} : Booty Bay (faction)
{{reputation|friendly}} : friendly
{{reputation|friendly||A H}} : A H
Possible Values for reputation (first parameter)
hated
hostile
unfriendly
neutral
friendly
honored
revered
exalted