Difference between revisions of "Template:Reputation"

From Wowpedia
Jump to: navigation, search
m
m (If link is not found, use reputation for link)
Line 1: Line 1:
 
<!--Style can be removed if added to CSS -->
 
<!--Style can be removed if added to CSS -->
<includeonly><onlyinclude>[[{{{2|{{{1}}}}}}|<span
+
<includeonly><onlyinclude>[[{{#if:{{{2|}}}|{{{2|}}}|{{{1}}}}}|<span
 
{{#ifeq:{{lc:{{{1}}}}}|neutral|{{#if:{{{tooltip|}}}|style="color:yellow;"|class="rep-neutral"}}|class="rep-{{#switch:{{lc:{{{1|}}}}}
 
{{#ifeq:{{lc:{{{1}}}}}|neutral|{{#if:{{{tooltip|}}}|style="color:yellow;"|class="rep-neutral"}}|class="rep-{{#switch:{{lc:{{{1|}}}}}
 
|hated=hated
 
|hated=hated

Revision as of 17:35, 20 July 2009

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