Template:Building construction time/doc:修订间差异

(创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW T…”)
 
 
(未显示2个用户的9个中间版本)
第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 standardise construction time for buildings in the CK3 wiki, thus making it easier to edit their formatting and values in the event of game updates. All times are displayed in terms of years.
此模板用于在CK3维基中规范化生成建筑的建造时间,从而更容易在游戏更新时编辑它们的格式和数值<ref>基础数值与每级的增长数值见{{Cite file|Crusader Kings III\game\common\script_values\00_building_values.txt}}中的Construction Time部分</ref>。所有时间以年作为单位显示。
== Parameters ==
== 参数 ==
;1
;1
:The first and only parameter is the identifier for the construction time. It has no default value, and is always required. Only the year value is displayed. The following values are currently supported:
: 唯一的参数是建造时间标识(identifier)。没有默认值,总是必须输入。仅显示年数。目前支持以下数值:
{| class="wikitable"
{| class="wikitable"
! Identifier
! identifier
! Time (days)
! 时间(天)
! Time (years)
! 时间(年)
|-
|-
| very quick
| very_quick_construction_time
| 365
| 365
| 1
| 1
|-
|-
| quick
| quick_construction_time
| 730 
| 730 
| 2
| 2
|-
|-
| standard
| standard_construction_time
| 1095
| 1095
| 3
| 3
|-
|-
| slow
| slow_construction_time
| 1825
| 1825
| 5
| 5
|-
|-
| very slow
| very_slow_construction_time
| 2190
| 2190
| 6
| 6
|}
|}


== Usage ==
== 用法 ==
;Syntax:
; 语法:
:<code><nowiki>{{construction time|identifier}}</nowiki></code>
:<code><nowiki>{{construction time|identifier}}</nowiki></code>


Insert the relevant identifier in the above syntax.
替换上面的语法中的相应修正参数。


;Example:
; 举例:
:<code><nowiki>{{construction time|standard}}</nowiki></code> will generate {{construction time|standard}}.
:<code><nowiki>{{construction time|slow_construction_time}}</nowiki></code> 


== See also ==
将生成
* [[Template:Building advantage]]
 
* [[Template:Building cost]]
{{construction time|slow_construction_time}}
* [[Template:Building levies]]
 
* [[Template:Building speed]]
== 其他建筑模板 ==
* [[Template:Building tax]]
 
[[: 分类: 建筑模板]]
 
== 参考资料 ==
<references/>

2023年5月26日 (五) 01:25的最新版本

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

此模板用于在CK3维基中规范化生成建筑的建造时间,从而更容易在游戏更新时编辑它们的格式和数值[1]。所有时间以年作为单位显示。

参数 [编辑源代码]

1
唯一的参数是建造时间标识(identifier)。没有默认值,总是必须输入。仅显示年数。目前支持以下数值:
identifier 时间(天) 时间(年)
very_quick_construction_time 365 1
quick_construction_time 730 2
standard_construction_time 1095 3
slow_construction_time 1825 5
very_slow_construction_time 2190 6

用法[编辑源代码]

语法:
{{construction time|identifier}}

替换上面的语法中的相应修正参数。

举例:
{{construction time|slow_construction_time}}

将生成

5 年

其他建筑模板[编辑源代码]

分类:建筑模板

参考资料[编辑源代码]

  1. 基础数值与每级的增长数值见Crusader Kings III\game\common\script_values\00_building_values.txt中的Construction Time部分