Sin resumen de edición |
Sin resumen de edición |
||
Línea 194: | Línea 194: | ||
End Tooltip --></ul></div><!-- |
End Tooltip --></ul></div><!-- |
||
− | |||
− | START CATEGORIES IN NS:0 ONLY-->{{#ifeq:{{NAMESPACE}}||{{#ifeq:{{{doc|{{{show|home}}}}}}|home|<!-- |
||
− | |||
− | Quality -->{{#if:{{{quality|}}}|[[Category:World of Warcraft {{lc:{{{quality}}}}} items]]}}<!-- |
||
− | Type -->{{#if:{{{type|}}}|[[Category:World of Warcraft {{lc:{{{type}}}}} items]]}}<!-- |
||
− | Gem -->{{#if:{{{gem|}}}|[[Category:World of Warcraft {{lc:{{{gem}}}}} socketable gems]]}}<!-- |
||
− | Glyph -->{{#if:{{{glyph|}}}|[[Category:World of Warcraft {{lc:{{{glyph}}}}} glyphs]]}}<!-- |
||
− | Consumable -->{{#if:{{{charges|}}}|[[Category:World of Warcraft consumable items]]}}<!-- |
||
− | Container -->{{#ifeq:{{{open|-}}}|-||[[Category:World of Warcraft container items]]}}<!-- |
||
− | Readable -->{{#ifeq:{{{read|-}}}|-||[[Category:World of Warcraft book items]]}}<!-- |
||
− | Conjured -->{{#ifeq:{{{conjured|-}}}|-||[[Category:World of Warcraft conjured items]]}}<!-- |
||
− | Container -->{{#ifeq:{{{open|-}}}|-||[[Category:World of Warcraft container items]]}}<!-- |
||
− | Locked -->{{#ifeq:{{{locked|-}}}|-||[[Category:World of Warcraft locked items]]}}<!-- |
||
− | Slot -->{{#if:{{{slot|}}}|{{#ifeq:{{lc:{{{slot}}}}}|off hand|{{#ifeq:{{lc:{{{type|}}}}}|shield||[[Category:World of Warcraft {{lc:{{{slot}}}}} items]]}}|[[Category:World of Warcraft {{lc:{{{slot}}}}} items]]}}}}<!-- |
||
− | Mount -->{{#if:{{{mount|}}}|[[Category:World of Warcraft mount items]]}}<!-- |
||
− | Toy -->{{#if:{{{toy|}}}|[[Category:Toys]]}}<!-- |
||
− | Relic -->{{#if:{{{relic|}}}|[[Category:Artifact relics]]}}<!-- |
||
− | Tag -->{{#if:{{{tag|}}}|[[Category:World of Warcraft {{lc:{{{tag}}}}} items]]}}<!-- |
||
− | Quest -->{{#ifeq:{{lc:{{{bind|}}}}}|quest|[[Category:World of Warcraft quest items]]}}<!-- |
||
− | Starts a quest -->{{#ifeq:{{{qbegin|-}}}|-||[[Category:World of Warcraft quest starting items]]}}<!-- |
||
− | Sockets -->{{#if:{{{meta-sockets|}}}{{{red-sockets|}}}{{{yellow-sockets|}}}{{{blue-sockets|}}}{{{prismatic-sockets|}}}{{{cogwheel-sockets|}}}{{{sha-sockets|}}}|[[Category:World of Warcraft socketed items]]}}<!-- |
||
− | Set -->{{#if:{{{set|}}}|[[Category:World of Warcraft armor set items]]}}<!-- |
||
− | Class -->{{#if:{{{classes|}}}|{{#if:{{#pos:{{{classes}}}|,}}||[[Category:World of Warcraft {{lc:{{{classes}}}}} items]]}}}}<!-- |
||
− | |||
− | Deprecated heroic, raid finder tags -->{{#ifeq:{{{heroic|-}}}{{{raid finder|-}}}|--||[[Category:Queued itemtip update]]}}<!-- |
||
− | Wrong pvp power parameter name -->{{#if:{{{pvp power|}}}|[[Category:Queued itemtip update]]}}<!-- |
||
− | Deprecated spell penetration tag -->{{#if:{{{spellpen|}}}|[[Category:Queued itemtip update]]}}<!-- |
||
− | Deprecated stats removed in WoD -->{{#if:{{{hit|{{{expertise|}}}}}}|[[Category:Queued itemtip update]]}}<!-- |
||
− | |||
− | END CATEGORIES -->}}}}<!-- |
||
Default link -->{{DEFAULTLINK:<span class="nobreak">{{#if:{{{icon|}}}|<span class="linkicon">[[File:{{lc:{{{icon}}}}}.png|16px|alt=|link=| ]] </span>}}[[{{{data-source|{{{name}}}}}}#{{{link-section|{{{data-fragment|}}}}}}|<span class="itemlink ajaxttlink {{#if:{{{data-fragment|}}}|taggedttlink-{{#replace:{{{data-fragment}}}||-}}}} qc-{{lc:{{{quality|common}}}}}" title="{{{name}}} is {{#switch:{{lc:{{{quality}}}}} |
Default link -->{{DEFAULTLINK:<span class="nobreak">{{#if:{{{icon|}}}|<span class="linkicon">[[File:{{lc:{{{icon}}}}}.png|16px|alt=|link=| ]] </span>}}[[{{{data-source|{{{name}}}}}}#{{{link-section|{{{data-fragment|}}}}}}|<span class="itemlink ajaxttlink {{#if:{{{data-fragment|}}}|taggedttlink-{{#replace:{{{data-fragment}}}||-}}}} qc-{{lc:{{{quality|common}}}}}" title="{{{name}}} is {{#switch:{{lc:{{{quality}}}}} |
Revisión del 22:01 17 Mayo 2016
A summary of the changes compared to {{Tooltip}} can be viewed on Template:Itemtip/doc/log.
Boilerplate
Use this template in conjunction with the #data parser function; the minimum required syntax is:
{{#data:Itemtip |name = Item name |icon = lowercase item icon without extension |quality = Item quality ... }}
Additional arguments from below can be placed in place of "..." in the example above.
Template arguments
Name | Description |
---|---|
Required | |
|name= | Item name as it appears in-game. |
|icon= | Item icon; all lower case, omit File: and extension. |
|quality= | Item quality; one of: poor, common, uncommon, rare, epic, legendary, heirloom. |
General | |
|stack= | Number; maximum stack size of items that can be stacked. |
|heroic= | Flag; provide only if this is the Heroic version of an item. |
|conjured= | Flag; provide only if this item is conjured. |
|location= | Zone or instance this item is bound to. |
|holiday= | Holiday (like Brewfest) this item item requires. |
|bind= | Item binding type, one of: bop, boe, bou, bta, quest. |
|unique= | Maximum number of this item the player may have in his bags. |
|unique-eq= | Maximum number of this item the player may have equipped. |
|unique-type= | Uniqueness category e.g "Jeweler's Gems" |
|duration= | Amount of time before the item vanishes from the player's inventory, e.g. "3 days (real time)" |
|qbegin= | Name of the quest this item begins. |
Item type/slot | |
|mount= | Riding skill required to learn this mount. |
|glyph= | Glyph type, one of: prime, major, minor. |
|gem= | Gem type, e.g. "Red", "Cogwheel", "Prismatic" |
|type= | Item type (if not mount, glyph) e.g. "Staff", "Sword", "Leather" |
|slot= | Inventory slot the item can be equipped in, e.g. "Trinket" |
|bag= | Number of slots this bag has. |
|durability= | Maximum durability. |
Weapon stats | |
|speed= | Weapon speed. |
|dmglow= | Low boundary of weapon damage. |
|dmghigh= | High boundary of weapon damage. |
|dmgtype= | Magical damage school (primarily on wands) |
|bonuslow= | Low boundary of bonus damage. |
|bonushigh= | High boundary of bonus damage. |
|bonustype= | Bonus damage type, e.g. "Nature" |
Attributes | |
|armor= | Amount of armor on this item. |
|bonusarmor= | Flag; pass if armor has bonus (green) armor. |
|strength= | Strength bonus. |
|agility= | Agility bonus. |
|stamina= | Stamina bonus. |
|intellect= | Intellect bonus. |
|spirit= | Spirit bonus. |
|randomsuffix= | Flag; include if the item has a random enchant suffix, e.g. "of the Eagle". |
|gemattrib= | Gem attributes, e.g. "+20 Intellect and +20 Haste Rating" or "+21 Intellect and +2% Maximum Mana" |
Resistances | |
|fire= | Fire resistance bonus. |
|nature= | Nature resistance bonus. |
|frost= | Frost resistance bonus. |
|shadow= | Shadow resistance bonus. |
|arcane= | Arcane resistance bonus. |
|resist= | Resistance to all schools bonus. |
Sockets | |
|red-sockets= | Number of red sockets this item has. |
|blue-sockets= | Number of blue sockets this item has. |
|yellow-sockets= | Number of yellow sockets this item has. |
|meta-sockets= | Number of meta sockets this item has. |
|prismatic-sockets= | Number of prismatic sockets this item has. |
|cogwheel-sockets= | Number of cogwheel sockets this item has. |
|sockbonus= | Socket bonus description. |
Requirements | |
|classes= | List of classes this item is limited to, e.g. "Mage, Warlock, Priest". |
|races= | List of races this item is limited to, e.g. "Blood Elf" |
|level= | Level required to use this item. |
|reqilvl= | Item requires an item level |
|locked= | Lockpicking skill required to unlock this item. |
|prof= | Profession required to use this item. |
|profskill= | Profession skill required to use this item. |
|rfaction= | Required faction name, e.g. "Shattered Sun Offensive" |
|rep= | Required reputation level, e.g. "Exalted" |
|rating= | Required arena rating |
|req= | Misc requirements not covered by the above; include "Requires" |
|ilvl= | Item level. |
|noDE= | Flag; provide if the item cannot be disenchanted. |
Effects | |
|pickup= | Misc "On Pickup" effects. |
|equip= | Misc "On Equip" effects. |
|equip2= | Misc "On Equip" effects. |
|attackpower= | Attack power bonus. |
|rangedattackpower= | Ranged power bonus. |
|dodge= | Dodge rating bonus. |
|parry= | Parry rating bonus. |
|haste= | Haste rating bonus. |
|hit= | Hit rating bonus. |
|crit= | Crit rating bonus. |
|resilience= | Resilience rating bonus. |
|expertise= | Expertise rating bonus. |
|mastery= | Mastery rating bonus. |
|spellpower= | Spell power bonus |
|spellpen= | Spell penetration rating bonus. |
|hp5= | Amount of health restored per 5 seconds. |
|xp= | % of XP gained bonus. |
|onhit= | On hit effect. |
|use= | Use effect. |
Misc | |
|cooldown= | Item cooldown, e.g. "15 seconds" |
|cast= | Cast time, e.g. "5 seconds" |
|create= | Item (page) taught by this recipe. |
|mats= | Materials required to craft the item taught by this recipe. |
|charges= | Amount of charges on this item. |
|flavor= | Flavor text. |
|read= | Flag; provide if the item can be read. |
|readlink= | Optional; name of the page contain the text that can be read from this item. |
|open= | Flag; provide if the item can be opened. |
|set= | If the item is part of the set, Wowpedia set page name. |
|sellprice= | Amount of copper vendors are willing to give for this item. |
|itemid= | Item ID. |
Formatting switches | |
|width= | Tooltip width; 18em default. |
|show= | Formatting switch; provide "full" to render full tooltip, "short" to render a short version. |