“Template:Infobox building”的版本间的差异

来自Stardew Valley Wiki
跳到导航 跳到搜索
(add information header, size above tile marker image)
(allow for description template to populate the description field)
第3行: 第3行:
 
|colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}}
 
|colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}}
 
|-
 
|-
|colspan="2" style="padding-bottom: 15px;"|[[File:{{{image|}}}|center|{{#if:{{{width|}}}|{{{width|}}}|}}]]
+
|colspan="2" style="padding-bottom: {{#ifeq:{{Description|{{PAGENAME}}}}| |0|5px}};"|[[File:{{{image|}}}|center|{{#if:{{{width|}}}|{{{width|}}}|}}]]
 +
|-
 +
|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;"|信息

2018年10月1日 (一) 20:41的版本

有关此模板的详细信息,请参阅英语语言文档页

用法

可以通过在相关页面上输入以下内容来使用此模板。

{{Infobox building}}

结果是...

Infobox building
[[File:|center|]]
信息
建造成本:
建筑材料:
尺寸: [[File:Marker.png center]]
Error: {{#seo:}} must contain at least one non-empty attribute.