模板:Item List
出自【暗黑百科】DiabloWiki_凯恩之角
(修订版本间的差异)
(3个中途的修订版本没有显示) | |||
第1行: | 第1行: | ||
<includeonly>{{#ifeq:{{{3|}}} | top |</includeonly> | <includeonly>{{#ifeq:{{{3|}}} | top |</includeonly> | ||
- | {{{!}} class="dftable dfborder | + | {{{!}} class="dftable dfborder " cellpadding="4" style="text-align: center; width: 100%;" |
! 名称 | ! 名称 | ||
! style="{{#if:{{{item_damage_min|}}} | | display: none; }}" {{!}} 秒伤 | ! style="{{#if:{{{item_damage_min|}}} | | display: none; }}" {{!}} 秒伤 | ||
第6行: | 第6行: | ||
! style="{{#if:{{{item_damage_min|}}} | | display: none; }}" {{!}} 伤害 | ! style="{{#if:{{{item_damage_min|}}} | | display: none; }}" {{!}} 伤害 | ||
! style="{{#if:{{{item_damage_min_min|}}} | | display: none; }}" {{!}} 伤害 | ! style="{{#if:{{{item_damage_min_min|}}} | | display: none; }}" {{!}} 伤害 | ||
- | ! style="{{#if:{{{item_damage_min|}}} | | display: none; }}" {{!}} | + | ! style="{{#if:{{{item_damage_min|}}} | | display: none; }}" {{!}} 攻速 |
- | ! style="{{#if:{{{item_damage_min_min|}}} | | display: none; }}" {{!}} | + | ! style="{{#if:{{{item_damage_min_min|}}} | | display: none; }}" {{!}} 攻速 |
! style="{{#if:{{{item_armor_min|}}} | | display: none; }}" {{!}} 护甲 | ! style="{{#if:{{{item_armor_min|}}} | | display: none; }}" {{!}} 护甲 | ||
! style="{{#if:{{{item_damage_min|}}} | | {{#if:{{{item_damage_min_min|}}} | | display: none; }} }}" {{!}} 镶嵌孔 | ! style="{{#if:{{{item_damage_min|}}} | | {{#if:{{{item_damage_min_min|}}} | | display: none; }} }}" {{!}} 镶嵌孔 | ||
第15行: | 第15行: | ||
! 物品等级 | ! 物品等级 | ||
! 来源 <includeonly>}}</includeonly> | ! 来源 <includeonly>}}</includeonly> | ||
- | |- style="text-align: | + | |- style="text-align: center;"<!-- |
-- Name and Coloring --- | -- Name and Coloring --- | ||
第23行: | 第23行: | ||
--- DPS --- | --- DPS --- | ||
--> | --> | ||
- | | style="{{#if:{{{item_damage_min|}}} | | {{#if:{{{item_damage_min_min|}}} | | display: none;}} }}" | | + | | style="{{#if:{{{item_damage_min|}}} | | {{#if:{{{item_damage_min_min|}}} | | display: none;}} }}" |{{{item_damage_dps}}} |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
| style="{{#if:{{{item_damage_min|}}} | | display: none; }}" |<!-- | | style="{{#if:{{{item_damage_min|}}} | | display: none; }}" |<!-- | ||
-->{{#if:{{{item_damage_min|}}} |<!-- | -->{{#if:{{{item_damage_min|}}} |<!-- |
在2012年1月14日 (六) 13:17的最新修订版本
名称 | 描述 | 需求等级 | 物品等级 | 来源 |
---|---|---|---|---|
[[{{{item_name_en}}}|{{{item_name_ch}}} {{{item_name_en}}}]] | ? | ? | ? | ? |
This template displays items in a list format and uses the Data namespace to get the information needed. It should not be used directly but instead used through the Item template.
目录 |
Limitations
The template can only list items of the same item type. Weapons and armor can thus not be displayed in the same list.
Different item types require different parameters be specified in the data namespace in order for the template to work.
- Weapons must have a minimun damage and durability specified.
- Armor must have armor and durability specified.
- If no durability is specified, the template assumes it's an item that can't be equipped.
Usage
Simple
{{Item||list}}
Full
{{Item|X|list|top}}
Notes
- X is the item name
- list causes the item to use this template
- top must be used for the top item in a list in order for the headers to be displayed.
- |} should be used after the last item to close the underlying table.