模板:Item infobox:修订间差异
无编辑摘要 |
无编辑摘要 |
||
第56行: | 第56行: | ||
-->{{#if:{{#pos:{{lc:{{{rarity}}}}}|特别}}|[[Category:特别]]}}<!-- | -->{{#if:{{#pos:{{lc:{{{rarity}}}}}|特别}}|[[Category:特别]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|配饰}}|[[Category:配饰]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|护甲}}|[[Category:护甲]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|背包}}|[[Category:背包]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|食物}}|[[Category:食物]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|宝石}}|[[Category:宝石]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|手套}}|[[Category:手套]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|头盔}}|[[Category:头盔]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|近战武器}}|[[Category:近战武器]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|宠物}}|[[Category:宠物]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|卡牌}}|[[Category:卡牌]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|魔药}}|[[Category:魔药]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|远程武器}}|[[Category:远程武器]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|盾牌}}|[[Category:盾牌]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|鞋子}}|[[Category:鞋子]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}| | -->{{#if:{{#pos:{{lc:{{{type}}}}}|魔法卷轴}}|[[Category:魔法卷轴]]}}<!-- | ||
-->{{#if:{{#pos:{{lc:{{{type}}}}}|dark}}|[[Category:Dark]]}}<!-- | -->{{#if:{{#pos:{{lc:{{{type}}}}}|dark}}|[[Category:Dark]]}}<!-- |
2024年3月21日 (四) 11:14的版本
此模板定义表格“Items”。 查看表格.
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
Automatic detection
The following keywords are detected in the bolded fields.
Auto add categories:
- Item
- rarity: Common, Rare, Legendary, Epic, Godly, Unique
- type: Accessory, Armor, Bag, Food, Gemstone, Gloves, Helmet, Melee Weapon, Pet, Playing Card, Potion, Ranged Weapon, Shield, Shoes
- type: Dark, Fire, Holy, Magic, Nature, Vampiric
Auto add categories and added into the tags
field. These detect page links (e.g. blind):
- effect: Blind, Block, Cold, Empower, Heat, Luck, Mana, Poison, Regeneration, Spikes, Vampirism
- effect: Heal, Battle Rage, Fatigue, Invulnerability, Nullify, Reflect, Reincarnate, Resist, Stun
Usage
Available parameters:
{{Item infobox |name= |image= |rarity= |type= |cost= |class= |effect= |accuracy= |damage= |cooldown= |stamina= |sockets= |recipefrom= |recipeimage= |recipecost= |grid= }}
Weapon example:
{{#if:模板||{{#if:|[[Category:卡牌]}}
}}My Sword
Statistics
Rarity | Epic |
---|---|
Type | Melee Weapon |
Cost | 50 |
Class | Ranger |
Effect | |
Damage | 3-6 |
Stamina | 1.1 |
Accuracy | 90% |
Cooldown | 2s |
Sockets | 2 |
{{Item infobox |name=My Sword |image=HeroSword.png |rarity=Epic |type=Melee Weapon |cost=50 |class=Ranger |effect= * {{icon/star}} items gain 5% critical hit chance for each {{icon/luck}} stack. * Effect line 2 * Effect line 3 |accuracy=90% |damage=3-6 |cooldown=2s |stamina=1.1 |sockets=2 |recipefrom=[[Wooden Sword]] + [[Whetstone]] |recipeimage=Hero Sword recipe.png |recipecost=7 (3+4) |grid= -2- 212 212 -2- }}
Non-weapon example:
{{#if:模板||{{#if:|[[Category:卡牌]}}
}}Mana Potion
{{Item infobox |name=Mana Potion |image=Mana Potion item.png |rarity=Rare |type=Potion, Magic |cost=6 |effect='''{{icon/mana}} used or health drops below 50%:''' Consume this and gain 4 {{icon/mana}} and 15 maximum health. |recipefrom=[[Health Potion]] + [[Blueberries]] |recipeimage=Mana Potion recipe.png |recipecost=6 (4+2) |grid= 2 1 1 }}