「Template:Infobox weapon」修訂間的差異
Watchoutrko(對話 | 貢獻) (添加“类型”) |
(change N/A defaults) |
||
(未顯示由 4 位使用者於中間所作的 10 次修訂) | |||
第7行: | 第7行: | ||
|colspan="2" id="infoboxdetail" style="text-align: center;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | |colspan="2" id="infoboxdetail" style="text-align: center;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | ||
|- | |- | ||
− | |colspan="2" id="infoboxsection" style="text-align: center;"|信息 | + | |colspan="2" id="infoboxsection" style="text-align: center;"|信息<!-- |
− | |- | + | -->{{#if:{{{type|}}} | <nowiki /> |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}} 类型 | |
− | + | {{!}}id="infoboxdetail"{{!}}{{#switch:{{lc:{{{type|}}}}} | |
− | + | |sword|剑=剑 | |
− | + | |dagger|匕首=匕首 | |
− | + | |club|锤=锤 | |
− | + | |slingshot|弹弓=弹弓 | |
− | + | |#default={{ucfirst:{{{type|}}}}} }} }}<!-- | |
− | + | -->{{#if:{{{level|}}} | <nowiki /> | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}} 等级 | |
− | + | {{!}}id="infoboxdetail"{{!}}{{{level|}}} |}}<!-- | |
− | + | -->{{#if:{{{source|}}} | <nowiki /> | |
− | + | {{!}}- | |
− | {{#if:{{{stats|}}}|<nowiki/> | + | {{!}}id="infoboxsection"{{!}} 来源 |
+ | {{!}}id="infoboxdetail"{{!}}{{{source|}}} |}}<!-- | ||
+ | -->{{#if:{{{damage|}}} | <nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxsection"{{!}} 伤害 | ||
+ | {{!}}id="infoboxdetail"{{!}}{{{damage|}}} |}}<!-- | ||
+ | -->{{#if:{{{csc|}}} | <nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxsection"{{!}} 暴击率 | ||
+ | {{!}}id="infoboxdetail"{{!}}{{{csc|}}} |}}<!-- | ||
+ | -->{{#if:{{{stats|}}}| <nowiki/> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxsection"{{!}}属性 | + | {{!}}id="infoboxsection"{{!}}属性 |
{{!}}id="infoboxdetail"{{!}}{{{stats|}}}|}} | {{!}}id="infoboxdetail"{{!}}{{{stats|}}}|}} | ||
|- | |- | ||
− | |colspan="2" id="infoboxsection" style="text-align: center;"| | + | |colspan="2" id="infoboxsection" style="text-align: center;"| 探 险家公会 |
|- | |- | ||
− | |id="infoboxsection"|购买价格 | + | |id="infoboxsection"|购买价格 |
− | |id="infoboxdetail"|{{#iferror:{{#expr:{{{gprice|0}}}>0}}|{{#if:{{{gprice|}}}|{{{gprice| | + | |id="infoboxdetail"|{{#iferror:{{#expr:{{{gprice|0}}}>0}}|{{#if:{{{gprice|}}}|{{{gprice| 不可购买}}}| 不可购买}}|{{#if:{{{gprice|}}}|{{price|{{{gprice|}}} }}| 不可购买 }} }} |
|- | |- | ||
− | |id="infoboxsection"|售价 | + | |id="infoboxsection"|售 出 价 格 |
− | |id="infoboxdetail"|{{#iferror:{{#expr:{{{value|0}}}>0}}|{{#if:{{{value|}}}|{{{value| | + | |id="infoboxdetail"|{{#iferror:{{#expr:{{{value|0}}}>0}}|{{#if:{{{value|}}}|{{{value| 不可出售}}}| 不可出售}}|{{#if:{{{value|}}}|{{price|{{{value|}}} }}| 不可出售 }} }} |
|- | |- | ||
− | |}</div>{{#if:{{{debug mode|}}}||[[Category:武器]]}}{{InfoboxSEO | + | |}</div>{{#if:{{{debug mode|}}}||[[Category:武器]]}}{{InfoboxSEO}}</includeonly><noinclude>{{Englishdoc}}</noinclude> |
− | |||
− | }}</includeonly><noinclude>{{ |
於 2023年5月27日 (六) 15:58 的最新修訂
有關此模板的詳細信息,請參閱英語語言文檔頁。
用法
可以通過在相關頁面上輸入以下內容來使用此模板。
{{Infobox weapon}}
結果是...
Infobox weapon | |
[[File:|center]] | |
信息 | |
探險家公會 | |
購買價格 | 不可購買 |
售出價格 | 不可出售 |