小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
<includeonly>{{color|{{{color|#008000}}}|{{#switch:{{{1}}}|small=2%|medium=5%|large=10%|very_large|very large=20%|{{{1}}}}}}}的{{#if:{{{where|}}}| {{{where}}}}} {{{type|}}} | <includeonly>{{color|{{{color|#008000}}}|{{#switch:{{{1}}}|small=2%|medium=5%|large=10%|very_large|very large=20%|{{{1}}}}}}} 的{{#if:{{{where|}}}| {{{where}}}}} {{{type|}}}人群将变为 [[File:Political loyalist.png|24px|link=Loyalist (pop)]]效忠派</includeonly><noinclude>{{Template doc}}[[Category:Templates]]</noinclude> |
2025年9月20日 (六) 15:04的版本
- See also:
{{Radical}}
使用方法
第一个参数设定效忠派生成的比例。既可以直接输入数字(如4%)也可以使用small, medium, large, very large
来表示2%, 5%, 10%, 20%
另有两个修正参数可以添加至前缀文本和后缀文本,以描述哪类人群变得更忠诚。type
是一项前缀文本,主要用于阶层或职业。例如:
{{loyalist|medium|type={{icon|Aristocrats|3=1}}贵族}}
输出为:5% 的 贵族人群将变为
效忠派
where
是一项后缀文本,主要用于利益集团、地区或国家。例如:
{{loyalist|large|where={{icon|Armed Forces|3=1}}军队}}
输出为:10% 的军队 人群将变为
效忠派
最后,color
参数可以用来替代本模板中预设的百分比数字的模板颜色({{color}}
)。该参数主要用于百科棕色提示框中,以更好地匹配游戏中的颜色。例如,可以将颜色参数设定为color=green
:
{{loyalist|small|color=green}}
输出为:2% 的 人群将变为 