模板:Infobox building:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
删除的内容 添加的内容
无编辑摘要 |
无编辑摘要 |
||
| (未显示3个用户的29个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly><div |
<includeonly><div class="infoboxborder"> |
||
<table class="location infoboxtable" style="max-width: 320px;"> |
|||
<tr class="infoboxtitle"> |
|||
|colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}} |
|||
<td colspan="2" class="infoboxheader">{{{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>|}} |
|||
|colspan="2" style="padding-bottom: {{#ifeq:{{Description|{{PAGENAME}}}}| |0|5px}};"|[[File:{{{image|}}}|center|{{#if:{{{width|}}}|{{{width|}}}|}}]] |
|||
<tr> |
|||
|- |
|||
<td colspan="2">[[File:{{{image|{{{eng|Blank icon}}}.png}}}|{{#if:{{{width|}}}|{{{width|}}}|}}|link=]]{{#if:{{{image2|}}}| [[File:{{{image2|}}}.png|{{#if:{{{width|}}}|{{{width|}}}|}}|link=]]|}}</td> |
|||
|colspan="2" id="infoboxdetail" style="text-align: center;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} |
|||
</tr> |
|||
|- |
|||
<tr> |
|||
|colspan="2" id="infoboxsection" style="text-align: center;"|信息 |
|||
<td colspan="2" class="infoboxdetail">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{{name|{{PAGENAME}}}}}}}}}</td> |
|||
|- |
|||
</tr> |
|||
|id="infoboxsection"|建造价格 |
|||
<tr> |
|||
|id="infoboxdetail"|{{{cost|}}} |
|||
<td colspan="2" class="infoboxsection">信息</td> |
|||
|- |
|||
</tr> |
|||
|id="infoboxsection"|所需材料 |
|||
{{#if:{{{base|}}}|<nowiki /> |
|||
|id="infoboxdetail"|{{{materials|}}}<!-- |
|||
<tr> |
|||
-->{{#if:{{{animals|}}}|<nowiki /> |
|||
<td class="infoboxsection">建造基础</td> |
|||
{{!}}- |
|||
<td class="infoboxdetail">{{{base|}}}</td> |
|||
{{!}}id="infoboxsection"{{!}}容纳动物 |
|||
</tr> |
|||
{{!}}id="infoboxdetail"{{!}}{{{animals|}}}|}}<!-- |
|||
}} |
|||
-->{{#if:{{{capacity|}}}|<nowiki /> |
|||
<tr> |
|||
{{!}}- |
|||
<td class="infoboxsection">建造成本</td> |
|||
<td class="infoboxdetail">{{{cost|}}}</td> |
|||
</tr> |
|||
|- |
|||
<tr> |
|||
|id="infoboxsection"|占地面积 |
|||
<td class="infoboxsection">建筑材料</td> |
|||
|id="infoboxdetail" style="text-align: center;"| {{#if:{{{sizehv|}}} |'''{{{sizehv|}}}'''<br />[[File:Marker{{{size|}}}.png|{{{size|}}}|center]] | [[File:Marker{{{size|}}}.png|{{{size|}}}|center]]}} |
|||
<td class="infoboxdetail">{{{materials|}}}</td> |
|||
|- |
|||
</tr> |
|||
|}</div>[[Category:农场建筑]]{{InfoboxSEO}}</includeonly><noinclude>{{Englishdoc}} |
|||
<tr> |
|||
<td class="infoboxsection">建造用时</td> |
|||
{{翻译}} |
|||
<td class="infoboxdetail">{{Duration|{{{build|立即}}}}}</td> |
|||
</tr> |
|||
==描述== |
|||
{{#if:{{{animals|}}}|<nowiki /> |
|||
This template is used to provide an infobox for farm buildings. |
|||
<tr> |
|||
<td class="infoboxsection">动物</td> |
|||
==使用== |
|||
<td class="infoboxdetail">{{{animals|}}}</td> |
|||
This template can be used by entering the following onto a relevant page. '''Do not use this on your user page. It is reserved for content pages.''' |
|||
</tr> |
|||
}}{{#if:{{{capacity|}}}|<nowiki /> |
|||
<pre>{{Infobox building |
|||
<tr> |
|||
|name = |
|||
<td class="infoboxsection">容量</td> |
|||
|image = |
|||
<td class="infoboxdetail">{{{capacity|}}}</td> |
|||
|description = |
|||
</tr> |
|||
|cost = |
|||
}} |
|||
|materials = |
|||
<tr> |
|||
|animals = |
|||
<td class="infoboxsection">尺寸</td> |
|||
|capacity = |
|||
<td class="infoboxdetail" style="text-align: center;">{{#if:{{{sizehv|}}} |'''{{{sizehv|}}}'''<br />}}[[File:Marker{{{size|}}}.png|{{{size|}}}|center|link=]]</td> |
|||
|size = |
|||
</tr> |
|||
|sizehv = |
|||
{{#if:{{{ability|}}}|<nowiki /> |
|||
}}</pre> |
|||
<tr> |
|||
<td class="infoboxsection">功能</td> |
|||
==参数== |
|||
<td class="infoboxdetail">{{{ability|}}}</td> |
|||
<pre>{{Infobox building |
|||
</tr> |
|||
|name = Location name |
|||
}}{{#if:{{{internal|}}}| |
|||
|image = The image name, minus the File: |
|||
<tr> |
|||
|description = The building description, if one exists. Automatically populated by Template:Description if omitted. |
|||
<td colspan="2" class="infoboxsection">高级</td> |
|||
|cost = Cost of building construction (gold) |
|||
</tr> |
|||
|materials = Materials required for building construction |
|||
<tr> |
|||
|animals = A list of the animals able to stay in this building, if applicable |
|||
<td class="infoboxsection">{{~|内部名称}}</td> |
|||
|capacity = The maximum number of animals storable in this building |
|||
<td class="infoboxdetail consolas">{{{internal|}}}</td> |
|||
|size = The size of the building (this requires that you know the name of the image used; some use width x height and some use height x width) |
|||
</tr> |
|||
|sizehv = The size of the building in format horizontal x vertical (optional) |
|||
}} |
|||
}}</pre></noinclude> |
|||
</table></div>{{Mainonly|[[Category:农场建筑]]}}{{InfoboxSEO}}</includeonly><noinclude>{{Documentation}}</noinclude> |
|||
2026年1月25日 (日) 23:31的最新版本
简介
此模板({{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。