Wowpedia
Bumblepo (Discusión | contribs.)
m (1 revision)
Sin resumen de edición
 
Línea 3: Línea 3:
 
|imlink={{#if:{{{icon|}}}|[[Image:{{{icon}}}.png|16px]] }}{{loot|common|{{{disambigpage|{{{name}}}}}}|{{#if:{{{arg|}}}|{{{arg}}}|{{{name}}}}}}}
 
|imlink={{#if:{{{icon|}}}|[[Image:{{{icon}}}.png|16px]] }}{{loot|common|{{{disambigpage|{{{name}}}}}}|{{#if:{{{arg|}}}|{{{arg}}}|{{{name}}}}}}}
 
|arg={{{{{{arg|name}}}|--}}}
 
|arg={{{{{{arg|name}}}|--}}}
|#default=<div style="font-size: {{#ifeq:{{#ifeq:{{{mode|}}}|home|{{{disambigpage|{{{name}}}}}}|{{#replace:{{#replace:{{FULLPAGENAME}}|&#39;|'}}|&amp;|&}}}}|{{#ifeq:{{{mode|}}}|away|<|{{{disambigpage|{{{name}}}}}}}}|1em; float: {{{float|right}}}|0.85em; float: {{{float|left}}}}}; width: {{{width|18em}}};" class="itemtooltip"><!--
+
|#default=<div style="font-size: {{#ifeq:{{#ifeq:{{{mode|}}}|home|{{{disambigpage|{{{name}}}}}}|{{#replace:{{#replace:{{FULLPAGENAME}}|&#39;|'}}|&amp;|&}}}}|{{#ifeq:{{{mode|}}}|away|<|{{{disambigpage|{{{name}}}}}}}}|1em; float: {{{float|right}}}|0.85em; float: {{{float|left}}}}}; width: {{{width|18em}}};" class="wtooltip itemtooltip"><!--
 
Icon -->{{#if:{{{icon|}}}|<div style="position: relative; float: right; margin: 0; font-size: 1em;">[[File:{{{icon}}}.png|32px]]</div>}}<ul><!--
 
Icon -->{{#if:{{{icon|}}}|<div style="position: relative; float: right; margin: 0; font-size: 1em;">[[File:{{{icon}}}.png|32px]]</div>}}<ul><!--
   
Línea 10: Línea 10:
 
Sellable -->{{#if:{{{sell|}}}|<li class="flavor">[[Image:WC3gold.gif]] {{{sell}}}}}<!--
 
Sellable -->{{#if:{{{sell|}}}|<li class="flavor">[[Image:WC3gold.gif]] {{{sell}}}}}<!--
 
Conjured Flag -->{{#if:{{{conjured|}}}|<li>[[Conjured Item]]|}}<!--
 
Conjured Flag -->{{#if:{{{conjured|}}}|<li>[[Conjured Item]]|}}<!--
Item Duration -->{{#if:{{{duration|}}}|<li>[[Duration (Item)|Duration: {{{duration}}}]]}}<!--
+
Item Duration -->{{#if:{{{duration|}}}|<li>[[Duración (Item)|Duración: {{{duration}}}]]}}<!--
 
Item is an Artifact item -->{{#if:{{{artifact|}}}|<li><span class="qc-legendary">Artifact</span>}}<!--
 
Item is an Artifact item -->{{#if:{{{artifact|}}}|<li><span class="qc-legendary">Artifact</span>}}<!--
 
Item is a Legendary item -->{{#if:{{{legendary|}}}|<li>Legendary}}<!--
 
Item is a Legendary item -->{{#if:{{{legendary|}}}|<li>Legendary}}<!--
Línea 16: Línea 16:
 
Item is Unique -->{{#if:{{{unique|}}}|<li><span class="qc-epic">Unique</span>}}<!--
 
Item is Unique -->{{#if:{{{unique|}}}|<li><span class="qc-epic">Unique</span>}}<!--
 
Item Description -->{{#if:{{{desc|}}}|<li>{{{desc}}}}}<!--
 
Item Description -->{{#if:{{{desc|}}}|<li>{{{desc}}}}}<!--
Item Charges -->{{#if:{{{charges|}}}|<li>{{{charges}}} [[Charges]]}}<!--
+
Item Charges -->{{#if:{{{charges|}}}|<li>{{{charges}}} [[Cargas]]}}<!--
 
Item History Text -->{{#if:{{{history|}}}|<li class="flavor">History</li><li><span class="qc-artifact">{{{history}}}</span></li>}}<!--
 
Item History Text -->{{#if:{{{history|}}}|<li class="flavor">History</li><li><span class="qc-artifact">{{{history}}}</span></li>}}<!--
   

Revisión actual - 23:36 23 feb 2014

The template creates a WC3 styled tooltip for items; you can supply any number of the named parameters to display specific text in the tooltip.

Required Minimal Syntax

Begin all item-page tooltips with the following three lines:

{{tooltip-wc3
|mode={{{mode|}}}
|arg={{{arg|}}}

The template parameters displayed here are required to enable item pages interact with other consumers of tooltip data, and do not change from page to page.

Named parameters

|icon=
icon to display; omit Image: and file extension (.png); passed to {{icon}}.
|stack=
stack size for stackable items; passed to {{icon}}.
|name=
item name, as it appears in game.
|disambigpage=
name of Wowpedia page for this item, if different from item name (used mainly for disambiguated items).
|unique=
unique items
|artifact=
artifact items
|duration=
duration this item persists for (time-limited items).
|charges=
maximum number of times this item can be used, numeric.
|history =
item's history text
|desc=
item's description text
|cooldown=
cooldown on the use effect of this item.
|cast=
cast time of the use effect of this item.
|sell=
price for which this item is sold, use numeric values