(建立内容为“<includeonly>健康:{{icon|control}}{{{{#ifexpr:{{{1|0}}}>0 |green|red}}|{{#ifexpr:{{{1|0}}}>0|+|−}}{{#expr:abs{{{1|0}}}}}%}}</includeonly><noinclude>{{templa…”的新页面) |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
<includeonly>健康:{{icon|control}}{{{{#ifexpr:{{{1|0}}}>0 |green|red}}|{{#ifexpr:{{{1|0}}}>0|+|−}}{{#expr:abs{{{1|0}}}}} | <includeonly>健康:{{icon|control}}{{{{#ifexpr:{{{1|0}}}>0 |green|red}}|{{#ifexpr:{{{1|0}}}>0|+|−}}{{#expr:abs{{{1|0}}}}}}}</includeonly><noinclude>{{template doc}}[[Category:建筑模板]]</noinclude> | ||
2023年6月8日 (四) 22:28的版本
[模板https://www.parawikis.com/wiki/Template:Template_doc_page_transcluded?action=raw读取失败:HTTP 0] 此模板用于在CK3维基中规范化生成建筑提供健康修正,从而更容易在游戏更新时编辑它们的格式和数值。
参数
- 1
- 参数是健康修正值,以百分比显示。默认为0。
用法
- 语法:
{{Building health|0.3}}
替换上面的语法中的相应修正参数。
- 举例:
{{Building health|0.3}}
将生成
健康:
+0.3
- 举例:
{{Building health|-0.3}}
将生成
健康:
−0.3