模板:Item List

出自【暗黑百科】DiabloWiki_凯恩之角

(修订版本间的差异)
跳转到: 导航, 搜索
(以内容“<includeonly>{{#ifeq:{{{3|}}} | top |</includeonly> {{{!}} class="dftable dfborder sortable" cellpadding="4" style="width: 100%;" ! Name ! style="{{#if:{{{item_damage_m...”创建新页面)
第1行: 第1行:
<includeonly>{{#ifeq:{{{3|}}} | top |</includeonly>
<includeonly>{{#ifeq:{{{3|}}} | top |</includeonly>
{{{!}} class="dftable dfborder sortable" cellpadding="4" style="width: 100%;"
{{{!}} class="dftable dfborder sortable" cellpadding="4" style="width: 100%;"
-
! Name
+
! 名称
! style="{{#if:{{{item_damage_min|}}}      | | display: none; }}" {{!}} DPS
! style="{{#if:{{{item_damage_min|}}}      | | display: none; }}" {{!}} DPS
! style="{{#if:{{{item_damage_min_min|}}}  | | display: none; }}" {{!}} DPS
! style="{{#if:{{{item_damage_min_min|}}}  | | display: none; }}" {{!}} DPS
第11行: 第11行:
! style="{{#if:{{{item_damage_min|}}}      | | {{#if:{{{item_damage_min_min|}}} | | display: none; }} }}" {{!}} Sockets
! style="{{#if:{{{item_damage_min|}}}      | | {{#if:{{{item_damage_min_min|}}} | | display: none; }} }}" {{!}} Sockets
! style="{{#if:{{{item_armor_min|}}}        | | display: none; }}" {{!}} Sockets
! style="{{#if:{{{item_armor_min|}}}        | | display: none; }}" {{!}} Sockets
-
! style="{{#ifexpr:{{{item_durability|}}}>0 | display: none; }}" {{!}} Description
+
! style="{{#ifexpr:{{{item_durability|}}}>0 | display: none; }}" {{!}} 描述
-
! Required Level
+
! 需求等级
-
! Item Level
+
! I物品等级
! Source <includeonly>}}</includeonly>
! Source <includeonly>}}</includeonly>
|- style="text-align: right;"<!--
|- style="text-align: right;"<!--

在2012年1月14日 (六) 09:44所做的修订版本

名称 DPS DPS Damage Damage Attacks Per Second Attacks Per Second Armor Sockets Sockets 描述 需求等级 I物品等级 Source
[[{{{item_name_en}}}|{{{item_name_en}}}]] {{#vardefine:plusDamageMin|0 }}{{#vardefine:plusDamageMax|0 }}{{#vardefine:dpsMin|表达式错误:无法识别的标点“{” }}{{#vardefine:dpsMax|表达式错误:无法识别的标点“{” }}{{#var:dpsMin}} - {{#var:dpsMax}} ? ? ? ? ? ? ?  ?  ?  ?

Documentation
[purge ]

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.
个人工具
分享到: 更多
名字空间
变换
动作
网站地图
暗黑破坏神 III
暗黑破坏神 II
暗黑破坏神
工具箱
编辑箱
关于暗黑百科