模板:PZ Item Infobox:修订间差异
外观
BluElephant(留言 | 贡献) 无编辑摘要 标签:已被回退 |
BluElephant(留言 | 贡献) 撤销BluElephant(讨论)的修订版本8801 标签:撤销 |
||
| 第1行: | 第1行: | ||
<noinclude> | <noinclude> | ||
这是僵尸毁灭工程的核心物品信息框模板。 | |||
{{#cargo_declare:_table=PZ_Items | |||
== 数据库建表图纸 == | |||
{{#cargo_declare: | |||
_table = PZ_Items | |||
|Item_ID = String | |Item_ID = String | ||
|Name_CN = String | |Name_CN = String | ||
| 第10行: | 第13行: | ||
|Type = String | |Type = String | ||
|DisplayCategory = String | |DisplayCategory = String | ||
|MaxDamage = Float | |||
|MinDamage = Float | |||
|CriticalChance = Float | |||
|ConditionMax = Integer | |||
|ConditionLowerChanceOneIn = Integer | |||
|ExpectedUses = Integer | |||
|EnduranceMod = Float | |||
|DoorDamage = Integer | |||
|TreeDamage = Integer | |||
|AttachmentType = String | |AttachmentType = String | ||
|ProvidedSlots = String | |||
|BodyLocation = String | |||
}} | }} | ||
</noinclude><includeonly>{{#cargo_store:_table=PZ_Items | </noinclude><includeonly>{{#cargo_store: | ||
_table = PZ_Items | |||
|Item_ID = {{{Item_ID|}}} | |Item_ID = {{{Item_ID|}}} | ||
|Name_CN = {{{Name_CN|}}} | |Name_CN = {{{Name_CN|}}} | ||
| 第21行: | 第36行: | ||
|Type = {{{Type|{{{ItemType|}}}}}} | |Type = {{{Type|{{{ItemType|}}}}}} | ||
|DisplayCategory = {{{DisplayCategory|}}} | |DisplayCategory = {{{DisplayCategory|}}} | ||
|MaxDamage = {{{MaxDamage|}}} | |||
|MinDamage = {{{MinDamage|}}} | |||
|CriticalChance = {{{CriticalChance|}}} | |||
|ConditionMax = {{{ConditionMax|}}} | |||
|ConditionLowerChanceOneIn = {{{ConditionLowerChanceOneIn|}}} | |||
|ExpectedUses = {{#if:{{{ConditionMax|}}} | {{#expr: {{{ConditionMax|0}}} * {{{ConditionLowerChanceOneIn|1}}} }} }} | |||
|EnduranceMod = {{#if:{{{EnduranceMod|}}} | {{{EnduranceMod}}} | {{#if:{{#ifeq:{{lc:{{{Wiki_Tier1|}}}}}|melee weapons|1}}{{#ifeq:{{lc:{{{Wiki_Tier2|}}}}}|melee weapons|1}}|1}} }} | |||
|DoorDamage = {{{DoorDamage|}}} | |||
|TreeDamage = {{{TreeDamage|}}} | |||
|AttachmentType = {{{AttachmentType|}}} | |AttachmentType = {{{AttachmentType|}}} | ||
}}{| class="infobox" style="width: 320px; float: right; clear: right; margin: 0 0 1em 1em; border-collapse: collapse; border: 1px solid rgba(128, 128, 128, 0.4);" | |ProvidedSlots = {{{ProvidedSlots|}}} | ||
|BodyLocation = {{{BodyLocation|}}} | |||
}} | |||
{| class="infobox" style="width: 320px; float: right; clear: right; margin: 0 0 1em 1em; border-collapse: collapse; border: 1px solid rgba(128, 128, 128, 0.4);" | |||
|- | |- | ||
! colspan="2" style="text-align: center; vertical-align: middle; font-size: 130%; padding: 12px; border-bottom: 2px solid rgba(128, 128, 128, 0.4);" | {{#if:{{{Name_CN|}}}|{{{Name_CN}}}|{{{Item_ID|}}}}} | ! colspan="2" style="text-align: center; vertical-align: middle; font-size: 130%; padding: 12px; border-bottom: 2px solid rgba(128, 128, 128, 0.4);" | {{#if:{{{Name_CN|}}}|{{{Name_CN}}}|{{{Item_ID|}}}}} | ||
| 第29行: | 第56行: | ||
|- style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);" | |- style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);" | ||
| style="padding: 8px 10px; text-align: center; vertical-align: middle;" | '''重量''' | | style="padding: 8px 10px; text-align: center; vertical-align: middle;" | '''重量''' | ||
| style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;" | {{{Weight|未知}}}{{#if:{{{AttachmentType|}}}| | | style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;" | {{{Weight|未知}}} | ||
{{#if:{{{BodyLocation|}}}{{{AttachmentType|}}}{{{ProvidedSlots|}}}| | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<th colspan="2" style="text-align: center; vertical-align: middle; font-weight: bold; background-color: rgba(128, 128, 128, 0.1); padding: 6px;">穿戴与快捷栏机制</th> | |||
</tr> | |||
}}{{#if:{{{BodyLocation|}}}| | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''穿戴部位'''</td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">{{{BodyLocation|}}}</td> | |||
</tr> | |||
}}{{#if:{{{AttachmentType|}}}| | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | <tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | ||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''可以挂在'''</td> | <td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''可以挂在'''</td> | ||
| 第41行: | 第78行: | ||
}}</td> | }}</td> | ||
</tr> | </tr> | ||
}}{{# | }}{{#if:{{{ProvidedSlots|}}}| | ||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''提供快捷栏'''</td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{ProvidedSlots}}}|BedrollBottomALICE|背包底部}}|BedrollBottomBig|背包底部}}|BedrollBottom|背包底部}}|SmallBeltLeft|皮带左边}}|SmallBeltRight|皮带右边}}|WebbingLeft|左侧织带}}|WebbingRight|右侧织带}}|HolsterLeft|左侧枪套}}|HolsterRight|右侧枪套}}|HolsterShoulder|肩挂枪套}}|HolsterAnkle|脚踝枪套}}|;|、}}</td> | |||
</tr> | |||
}}{{#if:{{{MaxDamage|}}}| | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<th colspan="2" style="text-align: center; vertical-align: middle; font-weight: bold; background-color: rgba(128, 128, 128, 0.1); padding: 6px;">战斗参数</th> | |||
</tr> | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''伤害'''</td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">{{{MinDamage|未知}}} - {{{MaxDamage|}}}</td> | |||
</tr> | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''暴击几率'''</td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">{{{CriticalChance|0}}}%</td> | |||
</tr> | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
}}<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | <td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''暴击倍率'''</td> | ||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">{{{CritDmgMultiplier|1.0}}}x</td> | |||
</tr> | |||
}}{{#if:{{{DoorDamage|}}}| | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''对门伤害'''</td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">{{{DoorDamage|}}}</td> | |||
</tr> | |||
}}{{#if:{{{TreeDamage|}}}| | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''对树伤害'''</td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">{{{TreeDamage|}}}</td> | |||
</tr> | |||
}}{{#if:{{#ifeq:{{lc:{{{Wiki_Tier1|}}}}}|melee weapons|1}}{{#ifeq:{{lc:{{{Wiki_Tier2|}}}}}|melee weapons|1}}| | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''耐力消耗倍率'''</td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">{{#if:{{{EnduranceMod|}}}|{{{EnduranceMod}}}|1}}x</td> | |||
</tr> | |||
}}{{#if:{{{ConditionMax|}}}| | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<th colspan="2" style="text-align: center; vertical-align: middle; font-weight: bold; background-color: rgba(128, 128, 128, 0.1); padding: 6px;">耐久参数</th> | |||
</tr> | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''最大耐久'''</td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">{{{ConditionMax|}}}</td> | |||
</tr> | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''降低耐久几率'''</td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;">1/{{{ConditionLowerChanceOneIn|1}}}</td> | |||
</tr> | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.4);"> | |||
<td style="padding: 8px 10px; text-align: center; vertical-align: middle;">'''期望使用次数'''<br><small style="color:gray;">(0级维护)</small></td> | |||
<td style="padding: 8px 10px; border-left: 1px solid rgba(128, 128, 128, 0.2); text-align: center; vertical-align: middle;"><span style="color:#e74c3c; font-weight:bold;">{{#expr: {{{ConditionMax|0}}} * {{{ConditionLowerChanceOneIn|1}}} }}</span></td> | |||
</tr> | |||
}} | |||
<tr style="border-bottom: 1px solid rgba(128, 128, 128, 0.2);"> | |||
<th colspan="2" style="text-align: center; vertical-align: middle; font-weight: bold; background-color: rgba(128, 128, 128, 0.1); padding: 6px;">物品分类</th> | <th colspan="2" style="text-align: center; vertical-align: middle; font-weight: bold; background-color: rgba(128, 128, 128, 0.1); padding: 6px;">物品分类</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="2" style="text-align: center; vertical-align: middle; padding: 12px 8px; font-weight: bold;">[[:Category:{{#switch:{{lc:{{{Wiki_Tier1|}}}}}|weapons=武器 | <td colspan="2" style="text-align: center; vertical-align: middle; padding: 12px 8px; font-weight: bold;">[[:Category:{{#switch:{{lc:{{{Wiki_Tier1|}}}}}|weapons=武器|#default={{{Wiki_Tier1|}}}}}|{{#switch:{{lc:{{{Wiki_Tier1|}}}}}|weapons=武器|#default={{{Wiki_Tier1|}}}}}]]{{#if:{{{Wiki_Tier2|}}}| - [[:Category:{{#switch:{{lc:{{{Wiki_Tier2|}}}}}|melee weapons=近战武器|firearms=枪械|explosives=炸药|#default={{{Wiki_Tier2|}}}}}|{{#switch:{{lc:{{{Wiki_Tier2|}}}}}|melee weapons=近战武器|firearms=枪械|explosives=炸药|#default={{{Wiki_Tier2|}}}}}]]}}{{#if:{{{Wiki_Tier3|}}}| - [[:Category:{{#switch:{{lc:{{{Wiki_Tier3|}}}}}|long blunts=长棍|short blunts=短棍|axes=斧头|short blades=短刀|long blades=长刀|spears=长矛|ammo=弹药|weapon parts=武器部件|#default={{{Wiki_Tier3|}}}}}|{{#switch:{{lc:{{{Wiki_Tier3|}}}}}|long blunts=长棍|short blunts=短棍|axes=斧头|short blades=短刀|long blades=长刀|spears=长矛|ammo=弹药|weapon parts=武器部件|#default={{{Wiki_Tier3|}}}}}]]}}</td> | ||
</tr> | </tr> | ||
|} | |} | ||
{{#if:{{{Wiki_Tier1|}}}|[[Category:{{#switch:{{lc:{{{Wiki_Tier1|}}}}}|weapons=武器 | {{#if:{{{Wiki_Tier1|}}}|[[Category:{{#switch:{{lc:{{{Wiki_Tier1|}}}}}|weapons=武器|#default={{{Wiki_Tier1|}}}}}| ]]}}{{#if:{{{Wiki_Tier2|}}}|[[Category:{{#switch:{{lc:{{{Wiki_Tier2|}}}}}|melee weapons=近战武器|firearms=枪械|explosives=炸药|#default={{{Wiki_Tier2|}}}}}| ]]}}{{#if:{{{Wiki_Tier3|}}}|[[Category:{{#switch:{{lc:{{{Wiki_Tier3|}}}}}|long blunts=长棍|short blunts=短棍|axes=斧头|short blades=短刀|long blades=长刀|spears=长矛|ammo=弹药|weapon parts=武器部件|#default={{{Wiki_Tier3|}}}}}| ]]}} | ||
{{#if:{{{Name_CN|}}}|{{DISPLAYTITLE:{{{Name_CN}}}}}}} | {{#if:{{{Name_CN|}}}|{{DISPLAYTITLE:{{{Name_CN}}}}}}} | ||
</includeonly> | </includeonly> | ||