模板:Infobox weapon:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
m无编辑摘要 |
模板整理;伤害、暴击率优先使用游戏原始数据;新增暴击伤害倍率 |
||
| 第17行: | 第17行: | ||
|Value={{#iferror:{{#expr:{{{value|}}}}}||{{{value|}}}}} | |Value={{#iferror:{{#expr:{{{value|}}}}}||{{{value|}}}}} | ||
|Value2={{#iferror:{{#expr:{{{value|}}}}}|{{{value|}}}|}} | |Value2={{#iferror:{{#expr:{{{value|}}}}}|{{{value|}}}|}} | ||
}}<div id="infoboxborder"> | }}{{#vardefine:item_id|{{ID|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}}<div id="infoboxborder"> | ||
<table id="infoboxtable" class="infobox{{#vardefineecho:infobox_count|{{#expr:{{#var:infobox_count|0}}+1}}}}"><!-- | |||
主标题行 | |||
{{#if: {{English|{{{name|{{PAGENAME}}}}}}}| | --><tr> | ||
<td colspan="2" id="infoboxheader"{{#if: {{English|{{{name|{{PAGENAME}}}}}}}| class="infoboxheaderzh"|}}>{{{name|{{PAGENAME}}}}}</td> | |||
</tr><!-- | |||
英文标题行 | |||
-->{{#if: {{English|{{{name|{{PAGENAME}}}}}}}| | |||
<tr> | <tr> | ||
<td colspan="2" id="infoboxheader" class="infoboxheaderen">{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}</td> | |||
</tr> | </tr> | ||
| | |}}<!-- | ||
}} | 图片行 | ||
--><tr> | |||
<td colspan="2" style="padding-bottom: 5px;"> | |||
{{#if:{{{image}}}|[[File:{{{image|}}}|center]]|}} | |||
</td> | |||
</tr><!-- | |||
描述行 | |||
-->{{#if:{{{type|}}} | < | --><tr> | ||
<td colspan="2" id="infoboxdetail" style="text-align: center;">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}</td> | |||
</tr><!-- | |||
信息标题行 | |||
--><tr> | |||
<td colspan="2" id="infoboxsection" style="text-align: center;">信息</td> | |||
</tr><!-- | |||
类型行 | |||
-->{{#if:{{{type|}}}| | |||
<tr> | |||
<td id="infoboxsection">类型</td> | |||
<td id="infoboxdetail">{{#switch:{{lc:{{{type|}}}}} | |||
|sword|剑=剑 | |sword|剑=剑 | ||
|dagger|匕首=匕首 | |dagger|匕首=匕首 | ||
|club|锤=锤 | |club|锤=锤 | ||
|slingshot|弹弓=弹弓 | |slingshot|弹弓=弹弓 | ||
|#default={{ucfirst:{{{type|}}}}} }} }}<!-- | |#default={{ucfirst:{{{type|}}}}} | ||
-->{{#if:{{{level|}}} | < | }}</td> | ||
</tr> | |||
|}}<!-- | |||
等级行 | |||
-->{{#if:{{{source|}}} | < | -->{{#if:{{{level|}}}| | ||
<tr> | |||
<td id="infoboxsection">等级</td> | |||
<td id="infoboxdetail">{{{level|}}}</td> | |||
-->{{# | </tr> | ||
{{ | |}}<!-- | ||
{{ | 来源行 | ||
-->{{#if:{{{source|}}}| | |||
-->{{# | <tr> | ||
{{ | <td id="infoboxsection">来源</td> | ||
{{ | <td id="infoboxdetail">{{{source|}}}</td> | ||
</tr> | |||
-->{{#if:{{ | |}}<!-- | ||
{{ | 伤害行 | ||
{{ | -->{{#vardefine:weapon_damage|{{#invoke:Weapons|getDamageRange|0}}}}{{#vardefine:weapon_damage|{{#var:weapon_damage|{{{damage|}}}}}}}<!-- | ||
-->{{#if:{{#var:weapon_damage}}| | |||
<tr> | |||
<td id="infoboxsection">伤害</td> | |||
<td id="infoboxdetail">{{#var:weapon_damage}}</td> | |||
</tr> | |||
|}}<!-- | |||
暴击率行 | |||
-->{{#vardefine:weapon_critprob|{{#invoke:Weapons|getCritChance|0}}}}{{#vardefine:weapon_critprob|{{#var:weapon_critprob|{{{csc|}}}}}}}<!-- | |||
-->{{#if:{{#var:weapon_critprob}}| | |||
<tr> | |||
<td id="infoboxsection">[[暴击率]]</td> | |||
<td id="infoboxdetail">{{#var:weapon_critprob}}</td> | |||
</tr> | |||
|}}<!-- | |||
爆伤倍率 | |||
-->{{#vardefine:weapon_critmult|{{#invoke:Weapons|getCritMultiplier|0}}}}<!-- | |||
-->{{#if:{{#var:weapon_critmult}}| | |||
<tr> | |||
<td id="infoboxsection">[[暴击力量#暴击倍率|暴击伤害]]</td> | |||
<td id="infoboxdetail">× {{#var:weapon_critmult}}</td> | |||
</tr> | |||
|}}<!-- | |||
属性行 | |||
-->{{#if:{{{stats|}}}| | |||
<tr> | |||
<td id="infoboxsection">属性</td> | |||
<td id="infoboxdetail">{{{stats|}}}</td> | |||
</tr> | |||
|}}<!-- | |||
探险家公会标题行 | |||
--><tr> | |||
<td colspan="2" id="infoboxsection" style="text-align: center;">探险家公会</td> | |||
</tr><!-- | |||
购买价格行 | |||
--><tr> | |||
<td id="infoboxsection">购买价格</td> | |||
<td id="infoboxdetail">{{#vardefine:weapon_price|{{#invoke:Shops|weaponPrice|{{#var:item_id}}}}}} | |||
{{#iferror:{{#expr:{{{gprice|0}}}>0}}| | |||
{{#if:{{{gprice|}}}|{{{gprice|{{#var:weapon_price}}}}}|{{#var:weapon_price}}}} | |||
| | |||
{{#if:{{{gprice|}}}|{{price|{{{gprice|}}}}}|{{#var:weapon_price}}}} | |||
}}</td> | |||
</tr><!-- | |||
售出价格行 | |||
--><tr> | |||
<td id="infoboxsection">售出价格</td> | |||
<td id="infoboxdetail">{{#iferror:{{#expr:{{{value|0}}}>0}}| | |||
{{#if:{{{value|}}}|{{{value|不可出售}}}|不可出售}} | |||
| | | | ||
}} | {{#if:{{{value|}}}|{{price|{{{value|}}}}}|不可出售}} | ||
|- | }}</td> | ||
|}</div>{{#if:{{{debug mode|}}}||[[Category:武器]]}}{{InfoboxSEO}}{{InfoboxCategory}}</includeonly><noinclude>{{Englishdoc}}{{Clear}} | </tr><!-- | ||
高级信息 | |||
-->{{#if: {{#var:item_id}}| | |||
<tr> | |||
<td colspan="2" id="infoboxsection" style="text-align: center; padding-left: 0; padding-right: 0;">高级</td> | |||
</tr> | |||
<tr> | |||
<td id="infoboxsection">物品编号</td> | |||
<td id="infoboxdetail">{{#var:item_id}}</td> | |||
</tr> | |||
|}} | |||
</table> | |||
</div>{{#if:{{{debug mode|}}}||[[Category:武器]]}}{{InfoboxSEO}}{{InfoboxCategory}}</includeonly><noinclude>{{Englishdoc}}{{Clear}} | |||
==示例== | ==示例== | ||
{{Infobox weapon | {{Infobox weapon | ||