模板:Infobox weapon:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
删除的内容 添加的内容
m 文本替换 - 替换“{{{name|}}}|id={{{id|}}}}}}}}”为“{{{name|{{{eng|{{PAGENAME}}}}}}}}|id={{{id|}}}}}}}}” |
SummerFleur(留言 | 贡献) 模板重构+优化表述 |
||
| 第2行: | 第2行: | ||
<table class="infoboxtable"> |
<table class="infoboxtable"> |
||
<tr class="infoboxtitle"> |
<tr class="infoboxtitle"> |
||
<td colspan="2" class="infoboxheader" data-category="{{{cat|{{Category|name|{{{name|{{{eng|{{PAGENAME}}}}}}}}|id={{{id|}}}}}}}}" style="--category-color: {{{cat2|{{Category|color|{{{name|{{{eng|{{PAGENAME}}}}}}}}|id={{{id|}}}}}}}}">{{{name|{{PAGENAME}}}}}</td> |
<td colspan="2" class="infoboxheader" data-category="{{{cat|{{Category|name|{{{name|{{{eng|{{PAGENAME}}}}}}}}|id={{{id|}}}}}}}}" style="--category-color: {{{cat2|{{Category|color|{{{name|{{{eng|{{PAGENAME}}}}}}}}|id={{{id|}}}}}}}}">{{{name|{{PAGENAME}}}}}</td> |
||
</tr>{{#if:{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}|<tr class="infoboxtitle"><td colspan="2" class="infoboxheader">{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}</td></tr>|}} |
</tr>{{#if:{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}|<tr class="infoboxtitle"><td colspan="2" class="infoboxheader">{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}</td></tr>|}} |
||
图片行 |
|||
--><tr> |
|||
<td colspan="2"> |
|||
{{#if:{{{image}}}|[[File:{{{image|}}}|center]]|}} |
|||
</td> |
|||
</tr><!-- |
|||
描述行 |
|||
--><tr> |
|||
<td colspan="2" class="infoboxdetail">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}</td> |
|||
</tr><!-- |
|||
信息标题行 |
|||
--><tr> |
|||
<td colspan="2" class="infoboxsection">信息</td> |
|||
</tr><!-- |
|||
类型行 |
|||
-->{{#if:{{{type|}}}| |
|||
<tr> |
<tr> |
||
<td colspan="2">{{#if:{{{image}}}|[[File:{{{image|}}}|center]]|[[File:{{{eng|Blank icon}}}.png|link=]]}}</td> |
|||
<td class="infoboxsection">类型</td> |
|||
<td class="infoboxdetail">{{#switch:{{lc:{{{type|}}}}} |
|||
|sword|剑=剑 |
|||
|dagger|匕首=匕首 |
|||
|club|锤=锤 |
|||
|slingshot|弹弓=弹弓 |
|||
|#default={{ucfirst:{{{type|}}}}} |
|||
}}</td> |
|||
</tr> |
</tr> |
||
|}}<!-- |
|||
等级行 |
|||
-->{{#if:{{{level|}}}| |
|||
<tr> |
<tr> |
||
<td colspan="2" class="infoboxdetail">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{{name|{{PAGENAME}}}}}}}}}</td> |
|||
<td class="infoboxsection">等级</td> |
|||
<td class="infoboxdetail">{{{level|}}}</td> |
|||
</tr> |
</tr> |
||
|}}<!-- |
|||
来源行 |
|||
-->{{#if:{{{source|}}}| |
|||
<tr> |
<tr> |
||
<td class="infoboxsection"> |
<td colspan="2" class="infoboxsection">信息</td> |
||
<td class="infoboxdetail">{{{source|}}}</td> |
|||
</tr> |
</tr> |
||
{{#if:{{{type|}}}| |
|||
|}}<!-- |
|||
<tr> |
|||
设置物品ID |
|||
<td class="infoboxsection">类型</td> |
|||
-->{{#vardefine:item_id|{{{id|{{ID|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}}}}}<!-- |
|||
<td class="infoboxdetail">{{{type|}}}</td> |
|||
伤害行 |
|||
</tr> |
|||
-->{{#vardefine:weapon_damage|{{#invoke:Weapons|getDamageRange|{{#var:item_id}}}}}}{{#vardefine:weapon_damage|{{#var:weapon_damage|{{{damage|}}}}}}}<!-- |
|||
}}{{#if:{{{level|}}}| |
|||
<tr> |
|||
<td class="infoboxsection">等级</td> |
|||
<td class="infoboxdetail">{{{level|}}}</td> |
|||
</tr> |
|||
}}{{#if:{{{source|}}}| |
|||
<tr> |
|||
<td class="infoboxsection">来源</td> |
|||
<td class="infoboxdetail">{{{source|}}}</td> |
|||
</tr> |
|||
}}{{#if:{{{damage|}}}| |
|||
<tr> |
|||
<td class="infoboxsection">伤害</td> |
|||
<td class="infoboxdetail">{{{damage|}}}</td> |
|||
</tr> |
|||
}}{{#if:{{{csc|}}}| |
|||
<tr> |
|||
<td class="infoboxsection">暴击率</td> |
|||
<td class="infoboxdetail">{{{csc|}}}</td> |
|||
</tr> |
|||
}}{{#if:{{{csm|}}}| |
|||
<tr> |
|||
<td class="infoboxsection">暴击伤害</td> |
|||
<td class="infoboxdetail">× {{{csm|}}}</td> |
|||
</tr> |
|||
}}{{#if:{{{stats|}}}| |
|||
<tr> |
|||
<td class="infoboxsection">属性</td> |
|||
<td class="infoboxdetail">{{{stats|}}}</td> |
|||
</tr> |
|||
}} |
|||
<tr> |
<tr> |
||
<td class="infoboxsection"> |
<td colspan="2" class="infoboxsection">探险家公会</td> |
||
<td class="infoboxdetail">{{#var:weapon_damage}}</td> |
|||
</tr> |
</tr> |
||
|}}<!-- |
|||
暴击率行 |
|||
-->{{#vardefine:weapon_critprob|{{#invoke:Weapons|getCritChance|{{#var:item_id}}}}}}{{#vardefine:weapon_critprob|{{#var:weapon_critprob|{{{csc|}}}}}}}<!-- |
|||
-->{{#if:{{#var:weapon_critprob}}| |
|||
<tr> |
<tr> |
||
<td class="infoboxsection"> |
<td class="infoboxsection">购买价格</td> |
||
<td class="infoboxdetail">{{# |
<td class="infoboxdetail">{{#switch:{{{price|}}}|-1|不出售=不出售|#default={{{price|}}}}} |
||
</td> |
|||
</tr> |
</tr> |
||
|}}<!-- |
|||
爆伤倍率 |
|||
-->{{#vardefine:weapon_critmult|{{#invoke:Weapons|getCritMultiplier|{{#var:item_id}}}}}}<!-- |
|||
-->{{#if:{{#var:weapon_critmult}}| |
|||
<tr> |
<tr> |
||
<td class="infoboxsection"> |
<td class="infoboxsection">售出价格</td> |
||
<td class="infoboxdetail"> |
<td class="infoboxdetail">{{Price|{{{sellprice|}}}}}</td> |
||
</tr> |
</tr> |
||
{{Infobox utils|id|name={{{name|}}}|eng={{{eng|}}}|id={{{id|}}}}} |
|||
|}}<!-- |
|||
属性行 |
|||
-->{{#if:{{{stats|}}}| |
|||
<tr> |
|||
<td class="infoboxsection">属性</td> |
|||
<td class="infoboxdetail">{{{stats|}}}</td> |
|||
</tr> |
|||
|}}<!-- |
|||
探险家公会标题行 |
|||
--><tr> |
|||
<td colspan="2" class="infoboxsection">探险家公会</td> |
|||
</tr><!-- |
|||
购买价格行 |
|||
--><tr> |
|||
<td class="infoboxsection">购买价格</td> |
|||
<td class="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 class="infoboxsection">售出价格</td> |
|||
<td class="infoboxdetail">{{#iferror:{{#expr:{{{value|0}}}>0}}| |
|||
{{#if:{{{value|}}}|{{{value|不可出售}}}|不可出售}} |
|||
| |
|||
{{#if:{{{value|}}}|{{price|{{{value|}}}}}|不可出售}} |
|||
}}</td> |
|||
</tr><!-- |
|||
高级信息 |
|||
-->{{Infobox utils|id|name={{{name|}}}|eng={{{eng|}}}|id={{{id|}}}}} |
|||
</table> |
</table> |
||
</div>{{Mainonly|[[Category:武器]]}}{{InfoboxSEO}}</includeonly><noinclude>{{Documentation}}{{Clear}} |
</div>{{Mainonly|[[Category:武器]]}}{{InfoboxSEO}}</includeonly><noinclude>{{Documentation}}{{Clear}} |
||