Template:Building cost:修订间差异

无编辑摘要
无编辑摘要
 
(未显示同一用户的13个中间版本)
第1行: 第1行:
<includeonly>{{#switch:{{{3}}}
<includeonly>{{#switch:{{{1}}}
| gold = {{icon|gold}}
| gold = {{icon|gold}}
| prestige = {{icon|prestige}}
| prestige = {{icon|prestige}}
| piety = {{icon|piety}}
| piety = {{icon|piety}}
| none
| #default = {{icon|gold}}
| #default = {{icon|gold}}
}} {{#switch:{{{1}}}
}}{{#switch:{{{2}}}
| cheap = {{#expr: 50 + 50 * {{{2|0}}} }}
| cheap = {{#switch:{{{3}}}
| normal = {{#expr: 75 + 75 * {{{2|0}}} }}
   | 1 = 100
| expensive = {{#expr: 100 + 100 * {{{2|0}}} }}
   | 2 = 150
| main = {{#expr: 400 + 150 * ({{{2|0}}}-1) }}
   | 3 = 195
| tribal = {{#expr: 75 + 25 * ({{{2|0}}}-1) }}
   | 4 = 275
| #default = <span style="color: red; font-size: 11px;">(unrecognized string “{{{1}}} ” for [[Template:Building cost]])</span>[[Category:页面有未识别的建筑花费字符串]]
   | 5 = 400
}} {{#switch:{{{3}}}
   | 6 = 580
| gold = 金钱
   | 7 = 825
| prestige = 威望
   | 8 = 1145 
| piety = 虔诚
   }}
| none
| normal = {{#switch:{{{3}}}
| #default = 金钱
   | 1 = 150
}} </includeonly><noinclude>{{template doc}}[[Category:建筑模板]][[en:{{FULLPAGENAME}}]]</noinclude>
   | 2 = 250
   | 3 = 340
   | 4 = 500
   | 5 = 750
   | 6 = 1110
   | 7 = 1600
   | 8 = 2240
   }}
| expensive = {{#switch:{{{3}}}
   | 1 = 200
   | 2 = 350
   | 3 = 485
   | 4 = 725
   | 5 = 1100
   | 6 = 1640
   | 7 = 2375
   | 8 = 3335
   }}
| main = {{#switch:{{{3}}}
   | 1 = 400
   | 2 = 550
   | 3 = 700
   | 4 = 850
   | 5 = 1000
   }}
| tribal = {{#switch:{{{3}}}
   | 1 = 75
   | 2 = 100
   }}
| #default = {{{2}}}
}}{{#switch:{{{1}}}| gold = 金钱 | prestige = 威望 | piety = 虔诚 | #default = 金钱}}</includeonly><noinclude>{{template doc}}[[Category:建筑模板]][[en:{{FULLPAGENAME}}]]</noinclude>

2023年5月26日 (五) 00:50的最新版本

[阅读] [编辑]Template-info.png 模板文档

此模板用于在CK3维基中规范化生成建筑的金钱花费,从而更容易在游戏更新时编辑它们的格式和数值[1]

参数[编辑源代码]

1
第一个参数是花费的资源类型。没有默认值,目前支持:gold,prestige,piety。
2
第二个参数是建筑花费的等级或者具体数值。没有默认值,总是必须输入。花费等级目前支持以下数值:
  • cheap
  • normal
  • expensive
  • main
  • tribal
3
如果第二个参数为建筑花费的等级,则第三个参数是建筑的等级。目前,仅支持1至8的数值。注意,游戏内 main 和 tribal 对应的最高等级只有5级和2级。
如果第二个参数为具体数值,无此参数。

用法[编辑源代码]

语法:
{{building cost|cheap|4}}或者{{building cost|400|prestige}}

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

举例:
{{building cost|gold|cheap|4}}

将生成

275金钱

举例:
{{building cost|prestige|cheap|4}}

将生成

275威望

举例:
{{building cost|prestige|399}}

将生成

399威望

建筑花费列表[编辑源代码]

等级 cheap normal expensive main tribal
1 100金钱 150金钱 200金钱 400金钱 75金钱
2 150金钱 250金钱 350金钱 550金钱 100金钱
3 195金钱 340金钱 485金钱 700金钱 -
4 275金钱 500金钱 725金钱 850金钱 -
5 400金钱 750金钱 1100金钱 1000金钱 -
6 580金钱 1110金钱 1640金钱 - -
7 825金钱 1600金钱 2375金钱 - -
8 1145金钱 2240金钱 3335金钱 - -

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

分类:建筑模板

参考资料[编辑源代码]

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