Template:Building box/doc:修订间差异

(创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW T…”)
 
 
(未显示2个用户的6个中间版本)
第1行: 第1行:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]]
   <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This template can be used to add an introductory infobox for a building. It shows the icon of the building alongside its in-game description. The icon's width is constant, defined by the template. The description is automatically quoted.
此模板用于为建筑生成一个介绍框。它将显示建筑的图标以及在游戏内的描述。图标宽度是常数,由模板定义。描述将被自动加上引号。


Use this template to standardise the display of buildings in their respective pages.
使用此模板来规范化生成建筑的介绍框。


== Parameters ==
== 参数 ==
{| class="wikitable"
{| class="wikitable"
! Parameter
! 参数
! Description
! 描述
! Required
! 要求
! Default
! 默认
|-
|-
| file || Use this file path for the building image. || Required || 
| file || 建筑图片的文件路径 || 必要 || 
|-
|-
| desc || The in-game description of the building. || Required ||
| desc || 游戏内的建筑描述 || 必要 ||
|-
|-
| buildtime || The construction time of the building and its upgrades (uses values for [[Template:Construction time]]) || Optional || (empty)
| buildtime || 建筑的建造和升级时间(使用模板{{t|Construction time}}中的值)|| 可选 || (空)
|}
|}


== Example ==
== 举例 ==


<pre>==== Archery Grounds ====
<pre>==== 射箭场 ====
{{Building box
{{Building box
| file=Building royal hunting grounds.png
| file=Building royal hunting grounds.png
| desc=Dedicated archery ranges allow the common folk to train with bows, and experienced archers to hone their skills.
| desc= 专门的靶场让普通人也能用弓箭训练,也让有经验的弓箭手能磨练技艺。
| buildtime=quick
| buildtime=quick
}}</pre>
}}</pre>


==== Archery Grounds ====
将生成:
 
==== 射箭场 ====
{{Building box
{{Building box
| file=Building royal hunting grounds.png
| file=Building royal hunting grounds.png
| desc=Dedicated archery ranges allow the common folk to train with bows, and experienced archers to hone their skills.
| desc= 专门的靶场让普通人也能用弓箭训练,也让有经验的弓箭手能磨练技艺。
| buildtime=quick
| buildtime=quick
}}
}}


== See also ==
== 另见 ==
* [[Template:Quote]]
* [[Template:Quote]]
* [[Template:Construction time]]
* [[Template:Construction time]]
* [[:分类:建筑模板]]

2023年5月22日 (一) 22:48的最新版本

这是 Template:Building box模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

此模板用于为建筑生成一个介绍框。它将显示建筑的图标以及在游戏内的描述。图标宽度是常数,由模板定义。描述将被自动加上引号。

使用此模板来规范化生成建筑的介绍框。

参数 [编辑源代码]

参数 描述 要求 默认
file 建筑图片的文件路径 必要
desc 游戏内的建筑描述 必要
buildtime 建筑的建造和升级时间(使用模板 {{Construction time}}中的值) 可选  (空)

举例 [编辑源代码]

==== 射箭场 ====
{{Building box
| file=Building royal hunting grounds.png
| desc=专门的靶场让普通人也能用弓箭训练,也让有经验的弓箭手能磨练技艺。
| buildtime=quick
}}

将生成:

射箭场[编辑源代码]

Building royal hunting grounds.png 专门的靶场让普通人也能用弓箭训练,也让有经验的弓箭手能磨练技艺。
建造时间
2 年

另见[编辑源代码]