“Template:Infobox building”的版本间的差异
跳到导航
跳到搜索
Margotbean(讨论 | 贡献) (add information header, size above tile marker image) |
|||
第1行: | 第1行: | ||
<includeonly><div id="infoboxborder"> | <includeonly><div id="infoboxborder"> | ||
{| class="location" id="infoboxtable" | {| class="location" id="infoboxtable" | ||
− | |colspan=2 id="infoboxheader"|{{{name|}}} | + | |colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}} |
|- | |- | ||
− | |colspan=2 |[[File:{{{image|}}}|center|{{#if:{{{width|}}}|{{{width|}}}|}}]] | + | |colspan="2" style="padding-bottom: 15px;"|[[File:{{{image|}}}|center|{{#if:{{{width|}}}|{{{width|}}}|}}]] |
+ | |- | ||
+ | |colspan="2" id="infoboxsection" style="text-align: center;"|信息 | ||
|- | |- | ||
|id="infoboxsection"|建造成本: | |id="infoboxsection"|建造成本: | ||
第9行: | 第11行: | ||
|- | |- | ||
|id="infoboxsection"|建筑材料: | |id="infoboxsection"|建筑材料: | ||
− | |id="infoboxdetail"|{{{materials|}}} | + | |id="infoboxdetail"|{{{materials|}}}<!-- |
− | {{#if:{{{animals|}}}| | + | -->{{#if:{{{animals|}}}|<nowiki /> |
{{!}}- | {{!}}- | ||
{{!}}id="infoboxsection"{{!}}动物: | {{!}}id="infoboxsection"{{!}}动物: | ||
− | {{!}}id="infoboxdetail"{{!}}{{{animals|}}}|}} | + | {{!}}id="infoboxdetail"{{!}}{{{animals|}}}|}}<!-- |
− | {{#if:{{{capacity|}}}| | + | -->{{#if:{{{capacity|}}}|<nowiki /> |
{{!}}- | {{!}}- | ||
{{!}}id="infoboxsection"{{!}}容量: | {{!}}id="infoboxsection"{{!}}容量: | ||
第20行: | 第22行: | ||
|- | |- | ||
|id="infoboxsection"|尺寸: | |id="infoboxsection"|尺寸: | ||
− | |id="infoboxdetail"|[[File:Marker{{{size|}}}.png|{{{size|}}}|center]] | + | |id="infoboxdetail" style="text-align: center;"| {{#if:{{{sizehv|}}} |'''{{{sizehv|}}}'''<br />[[File:Marker{{{size|}}}.png|{{{size|}}}|center]] | [[File:Marker{{{size|}}}.png|{{{size|}}}|center]]}} |
|- | |- | ||
− | |||
|}{{#seo: | |}{{#seo: | ||
|keywords=Stardew Valley Wiki,Stardew Valley,Buildings,{{PAGENAME}},{{{name|}}},hours,location | |keywords=Stardew Valley Wiki,Stardew Valley,Buildings,{{PAGENAME}},{{{name|}}},hours,location |
2018年8月13日 (一) 10:19的版本
有关此模板的详细信息,请参阅英语语言文档页。
用法
可以通过在相关页面上输入以下内容来使用此模板。
{{Infobox building}}
结果是...
Infobox building | ||
[[File:|center|]] | ||
信息 | ||
建造成本: | ||
建筑材料: | ||
尺寸: | [[File:Marker.png | center]] |
Error: {{#seo:}} must contain at least one non-empty attribute.