模板:Infobox building:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
添加 internal 参数 |
SummerFleur(留言 | 贡献) 模板重构 |
||
| 第1行: | 第1行: | ||
<includeonly><div | <includeonly><div class="infoboxborder"> | ||
<table class="location infoboxtable"> | |||
<tr> | |||
<td colspan="2" class="infoboxheader infoboxheader-zh">{{{name|{{PAGENAME}}}}}</td> | |||
</tr> | |||
{{#if: {{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}| | {{#if: {{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}| | ||
<tr> | <tr> | ||
<td colspan="2" class="infoboxheader infoboxheader-en">{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}</td> | |||
</tr> | |||
|}} | |||
<tr> | |||
<td colspan="2" class="infoboxdetail" >[[File:{{{image|}}}{{#if:{{{image2|}}}||{{!}}center}}|{{#if:{{{width|}}}|{{{width|}}}|}}]]{{#if:{{{image2|}}}| [[File:{{{image2|}}}{{!}}{{#if:{{{width|}}}|{{{width|}}}|}}]]|}}</td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" class="infoboxdetail">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{{name|{{PAGENAME}}}}}}}}}</td> | |||
</tr> | </tr> | ||
<tr> | |||
<td colspan="2" class="infoboxsection">信息<!-- | |||
-->{{#if:{{{base|}}}|<nowiki /> | -->{{#if:{{{base|}}}|<nowiki /> | ||
<tr> | |||
<td class="infoboxsection">建造基础</td> | |||
<td class="infoboxdetail">{{{base|}}}</td> | |||
</tr> | |||
|}} | |||
</tr> | |||
<tr> | |||
<td class="infoboxsection">建造成本</td> | |||
<td class="infoboxdetail">{{{cost|}}}</td> | |||
</tr> | |||
<tr> | |||
<td class="infoboxsection">建筑材料</td> | |||
<td class="infoboxdetail">{{{materials|}}}<!-- | |||
-->{{#if:{{{animals|}}}|<nowiki /> | -->{{#if:{{{animals|}}}|<nowiki /> | ||
<tr> | |||
<td class="infoboxsection">动物</td> | |||
<td class="infoboxdetail">{{{animals|}}}</td> | |||
</tr> | |||
|}}<!-- | |||
-->{{#if:{{{capacity|}}}|<nowiki /> | -->{{#if:{{{capacity|}}}|<nowiki /> | ||
<tr> | |||
<td class="infoboxsection">容量</td> | |||
<td class="infoboxdetail">{{{capacity|}}}</td> | |||
</tr> | |||
|}} | |||
</tr> | |||
<tr> | |||
<td class="infoboxsection">尺寸</td> | |||
<td class="infoboxdetail"> {{#if:{{{sizehv|}}} |'''{{{sizehv|}}}'''<br />[[File:Marker{{{size|}}}.png|{{{size|}}}|center]] | [[File:Marker{{{size|}}}.png|{{{size|}}}|center]]}}<!-- | |||
-->{{#if:{{{ability|}}}|<nowiki /> | -->{{#if:{{{ability|}}}|<nowiki /> | ||
<tr> | |||
<td class="infoboxsection">功能</td> | |||
<td class="infoboxdetail">{{{ability|}}}</td> | |||
</tr> | |||
|}} | |||
</tr> | |||
{{#if: {{{internal|}}}| | {{#if: {{{internal|}}}| | ||
<tr> | |||
<td colspan="2" class="infoboxsection">高级</td> | |||
</tr> | |||
<tr> | |||
<td class="infoboxsection">{{M|内部名称}}</td> | |||
<td class="infoboxdetail consolas">{{{internal|}}}</td> | |||
</tr> | |||
| | |}} | ||
}} | </table></div>[[Category:农场建筑]]{{InfoboxSEO}}</includeonly><noinclude>{{Infobox building | ||
|name = 祝尼魔屋 | |name = 祝尼魔屋 | ||
|image = Junimo Hut.png | |image = Junimo Hut.png | ||
| 第58行: | 第71行: | ||
|size = 3x2 | |size = 3x2 | ||
|sizehv = 3x2 | |sizehv = 3x2 | ||
}}{{ | }}{{Documentation}}</noinclude> | ||
2025年6月28日 (六) 08:33的版本
简介
此模板({{Infobox building}})是用于展示游戏中各种建筑的信息框,其基本用法为:
{{Infobox special item
|name = 中文名称
|eng = 英文名称
|image2 = 额外图片名称
|width = 图片的宽度
|base = 建造基础(例如大鸡舍要在鸡舍的基础上升级)
|cost = 建造需花费的金币
|materials = 建造需花费的材料
|build = 建造用时,留空代表立即完成
|animals = 可容纳的动物种类(若适用)
|capacity = 可容纳的动物数量(若适用)
|size = 建筑尺寸,此参数用于匹配对应图片名
|sizehv = 建筑尺寸,此参数用于以文本形式展示
|ability = 建筑功能(若有,没有则留空)
|internal = 建筑在代码内的 ID(若有,没有则留空)
}}
另见
普通
{{Infobox animal}}{{Infobox animal prod}}{{Infobox artifact}}{{Infobox artisan}}{{Infobox building}}{{Infobox cooking}}{{Infobox craft}}{{Infobox festival}}{{Infobox fish}}{{Infobox flower}}{{Infobox forage}}{{Infobox fruit}}{{Infobox item}}{{Infobox location}}{{Infobox monster}}{{Infobox resource}}{{Infobox seed}}{{Infobox tree}}{{Infobox vegetable}}{{Infobox villager}}{{Infobox weapon}}
特殊
{{Infobox utils}}{{InfoboxSEO}}{{Tabs}}
[ 查看 | 编辑 | 历史 | 刷新 ]上述文档的内容来自模板:Infobox building/doc。

