Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
No edit summary
(removing brackets from the defaultlink -- they're not in-game. now only identifying currency by color, which is bad bad bad)
Line 7: Line 7:
 
Name -->{{#if:{{{name|}}}|<li>'''[[{{{disambigpage|{{{name}}}}}}|<span style="color: #eee">{{{name}}}</span>]]'''}}<!--
 
Name -->{{#if:{{{name|}}}|<li>'''[[{{{disambigpage|{{{name}}}}}}|<span style="color: #eee">{{{name}}}</span>]]'''}}<!--
 
Description -->{{#if:{{{desc|}}}|<li style="color: #ffd517;">{{{desc}}}}}<!--End Tooltip --></ul></div><!--
 
Description -->{{#if:{{{desc|}}}|<li style="color: #ffd517;">{{{desc}}}}}<!--End Tooltip --></ul></div><!--
-->{{DEFAULTLINK:<span class="nobreak">{{#if:{{{icon|}}}|<span class="linkicon">[[File:{{lc:{{{icon}}}.png}}|16px|link=|alt=]]&#32;</span>}}[[{{{disambigpage|{{{name}}}}}}|<span class="currencylink ajaxttlink"><span class="bracket">&#91;</span>{{{name}}}<span class="bracket">&#93;</span></span>]]</span>|{{{data-source|{{FULLPAGENAME}}}}}}}</includeonly></onlyinclude>
+
-->{{DEFAULTLINK:<span class="nobreak">{{#if:{{{icon|}}}|<span class="linkicon">[[File:{{lc:{{{icon}}}.png}}|16px|link=|alt=]]&#32;</span>}}[[{{{disambigpage|{{{name}}}}}}|<span class="currencylink ajaxttlink">{{{name}}}</span>]]</span>|{{{data-source|{{FULLPAGENAME}}}}}}}</includeonly></onlyinclude>
 
{{documentation}}
 
{{documentation}}

Revision as of 03:45, 14 May 2011

Currencytip is an easy way of showing a tooltip for the various currencies of WoW. It exists primarily to format links to currency pages in a consistent manner with items/spells/achievements/etc.

Usage
{{#data:Currencytip|name=Name|icon=icon|desc=Description|max=nnnn|weekly=mmmm}}
Arguments
name
Name as it appears in game
icon
Icon (without .png extension)
icon2
Second icon (without .png extension); for instance for currencies with different Horde/Alliance icons.
quality
the quality of the currency; defaults to common
desc
Yellow description (not all currency has a description)
max
Total maximum currency allowed at any time (not all currency has this). Use the number on the right side of the slash
weekly
Total weekly currency earnable (currency rarely has this). Use the number on the right side of the slash
Example
{{#data:Currencytip
 |name=Mark of the World Tree
 |icon=inv_misc_markoftheworldtree
 |desc=Granted by the Guardians of Hyjal. Can be used to purchase reinforcements for the Invasion of the Firelands.
}}
Result
Inv misc markoftheworldtree
  • Mark of the World Tree
  • Granted by the Guardians of Hyjal. Can be used to purchase reinforcements for the Invasion of the Firelands.

DEFAULTLINK tags are not allowed in this namespace