无编辑摘要 |
小 (→示例) |
||
第34行: | 第34行: | ||
== 示例 == | == 示例 == | ||
Example: <nowiki>{{State trait|Natural Harbors|w=24px}}</nowiki> becomes | Example: <nowiki>{{State trait|Natural Harbors|w=24px||优良港口}}</nowiki> becomes | ||
{{State trait|Natural Harbors|w=24px}} | {{State trait|Natural Harbors|w=24px||优良港口}} | ||
{| class="wikitable" | {| class="wikitable" | ||
| <nowiki>{{State trait|Good Soils}}</nowiki> | | <nowiki>{{State trait|Good Soils||沃土}}</nowiki> | ||
| {{State trait|Good Soils}} | | {{State trait|Good Soils||沃土}} | ||
|- | |- | ||
| <nowiki>{{State trait|密西西比河 | | <nowiki>{{State trait|Mississipi River|river|密西西比河}}</nowiki> | ||
| {{State trait|密西西比河 | | {{State trait|Mississipi River|river|密西西比河}} | ||
|- | |- | ||
| <nowiki>{{State trait|落基山脉|mountain}}</nowiki> | | <nowiki>{{State trait|落基山脉|mountain}}</nowiki> |
2024年11月7日 (四) 20:26的最新版本
This template dynamically generates icons and text for state traits. The icon automatically links to the page State traits. For the available state trait icons, see Category:State trait icons.
Parameters
顺序 | 描述 | 必要参数 |
---|---|---|
1 | 特质名称 | 必填 |
2 | 特质图标名称 | 选填 |
w | 宽度,默认30px | 选填 |
3 | 备用名称 | 选填 |
Several trait icons share common name elements and can be indicated with shorthand in parameter 2.
Icon name | Shorthand |
---|---|
resources X | X |
Y climate | Y |
dry climate | desert |
poor soils | steppe |
natural harbors | bay/harbor |
resources lumber | forest(s) |
示例
Example: {{State trait|Natural Harbors|w=24px||优良港口}} becomes 优良港口
{{State trait|Good Soils||沃土}} | 沃土 |
{{State trait|Mississipi River|river|密西西比河}} | 密西西比河 |
{{State trait|落基山脉|mountain}} | 落基山脉 |
{{State trait|萨洛尼卡湾|bay}} | 萨洛尼卡湾 |
{{State trait|亚马逊雨林|forest}} | 亚马逊雨林 |