(创建页面,内容为“<includeonly>{| | [[File:{{{file}}}|100px]] | {{quote|{{{desc}}}|In-game description}}{{#if: {{{buildtime|}}} | :; 建造时间 :: {{construction time|{{{buildtime}}…”) |
无编辑摘要 |
||
| (未显示同一用户的9个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly>{| | <includeonly>{| | ||
| [[File:{{{file}}}|100px]] | | [[File:{{{file}}}|100px]] | ||
| | | <i class="fa fa-quote-left fa-pull-left fa-border" aria-hidden="true"></i>{{{desc}}}<i class="fa fa-quote-right fa-border" aria-hidden="true"></i>{{#if: {{{buildtime|}}} | :; 建造时间 | ||
:: {{construction time|{{{buildtime}}}}} |}} | :: {{construction time|{{{buildtime}}}}} |}} | ||
|}</includeonly><noinclude>{{template doc}}[[Category: | |}</includeonly><noinclude>{{template doc}}[[Category: 建筑模板]][[en:{{FULLPAGENAME}}]]</noinclude> | ||
2020年12月23日 (三) 15:05的最新版本
此模板用于为建筑生成一个介绍框。它将显示建筑的图标以及在游戏内的描述。图标宽度是常数,由模板定义。描述将被自动加上引号。
使用此模板来规范化生成建筑的介绍框。
参数 [编辑源代码]
| 参数 | 描述 | 要求 | 默认 |
|---|---|---|---|
| file | 建筑图片的文件路径 | 必要 | |
| desc | 游戏内的建筑描述 | 必要 | |
| buildtime | 建筑的建造和升级时间(使用模板 {{Construction time}}中的值) |
可选 | (空) |
举例 [编辑源代码]
==== 射箭场 ====
{{Building box
| file=Building royal hunting grounds.png
| desc=专门的靶场让普通人也能用弓箭训练,也让有经验的弓箭手能磨练技艺。
| buildtime=quick
}}
将生成:
射箭场[编辑源代码]
专门的靶场让普通人也能用弓箭训练,也让有经验的弓箭手能磨练技艺。
|