小 (Katty von Keksburg移动页面Template:Icon/doc至Template:图标/doc) |
无编辑摘要 |
||
第215行: | 第215行: | ||
! Code | ! Code | ||
|- | |- | ||
| style="text-align: center;" | {{Icon|communism}} | | style="text-align: center;" | {{Icon|communism|1}} | ||
| Communism<br/> Communist | | Communism<br/> Communist | ||
| <code>communism</code><br/> <code>communist</code> | | <code>communism</code><br/> <code>communist</code> | ||
|- | |- | ||
| style="text-align: center;" | {{Icon|democracy}} | | style="text-align: center;" | {{Icon|democracy|1}} | ||
| Democracy<br/> Democratic | | Democracy<br/> Democratic | ||
| <code>democracy</code><br/> <code>democratic</code> | | <code>democracy</code><br/> <code>democratic</code> | ||
|- | |- | ||
| style="text-align: center;" | {{Icon|fascism}} | | style="text-align: center;" | {{Icon|fascism|1}} | ||
| Fascism<br/> Fascist | | Fascism<br/> Fascist | ||
| <code>fascism</code><br/> <code>fascist</code> | | <code>fascism</code><br/> <code>fascist</code> | ||
|- | |- | ||
| style="text-align: center;" | {{Icon|neutrality}} | | style="text-align: center;" | {{Icon|neutrality|1}} | ||
| Neutrality<br/> Non-Aligned<br/> Unaligned | | Neutrality<br/> Non-Aligned<br/> Unaligned | ||
| <code>neutrality</code><br/> <code>non-aligned</code><br/> <code>unaligned</code> | | <code>neutrality</code><br/> <code>non-aligned</code><br/> <code>unaligned</code> | ||
|- | |- | ||
| style="text-align: center;" | {{Icon|anarchism}} | | style="text-align: center;" | {{Icon|anarchism|1}} | ||
| Anarchism<br/> Anarchist | | Anarchism<br/> Anarchist | ||
| <code>anarchism</code><br/> <code>anarchist</code> | | <code>anarchism</code><br/> <code>anarchist</code> | ||
|- | |- | ||
| style="text-align: center;" | {{Icon|unknownid}} | | style="text-align: center;" | {{Icon|unknownid|1}} | ||
| Unknown Ideology | | Unknown Ideology | ||
| <code>unknownid</code> | | <code>unknownid</code> |
2022年12月14日 (三) 11:00的版本
Overview
Should be the go-to for inline text-sized icons on this wiki.
Parameters
{{Icon|icon name|text|width=22px}}
Parameter | Info | Required | Notes | Examples |
---|---|---|---|---|
1 | icon name | Required | The concept you want an icon for | infantry , heavy tank
|
2 | text | Optional | Text linked to be displayed alongside the icon. Leave it blank if you don't want any text. Write 1 if you want the default text that goes with the icon |
1 , Paradox
|
width | size | Optional | The size of the image, as in MediaWiki image syntax. Defaults to 22px , except for unit icons, which default to x22px (22px height) instead. |
30px
|
Usage Examples
Code | Result |
---|---|
{{Icon|infantry}}
|
|
{{Icon|lighttank|1}}
|
Light tank |
{{Icon|super heavy tank|Bananas}}
|
Bananas |
Index
The following icons are understood by the template. Feel free to add more in the source!
Common
Resources
Icon | Concept | Code |
---|---|---|
Aluminum | aluminum
| |
Chromium | chromium
| |
Oil | oil
| |
Rubber | rubber
| |
Steel | steel
| |
Tungsten | tungsten
|
Ideology
Icon | Concept | Code |
---|---|---|
共产主义 | Communism Communist |
communism communist
|
民主主义 | Democracy Democratic |
democracy democratic
|
法西斯主义 | Fascism Fascist |
fascism fascist
|
中立主义 | Neutrality Non-Aligned Unaligned |
neutrality non-aligned unaligned
|
无政府主义 | Anarchism Anarchist |
anarchism anarchist
|
Unknown Ideology | Unknown Ideology | unknownid
|
Laws
Icon | Concept | Code |
---|---|---|
Closed Economy | closed economy
| |
Limited Exports | limited exports
| |
Export Focus | export focus
| |
Free Trade | free trade
|
Buildings
Units
Codes given are examples. More are supported.
Icon | Concept | Code |
---|---|---|
Infantry | inf , infantry
| |
Marines | marines
| |
Paratroopers | paratroopers
| |
Mountaineers | mountaineers
|
Icon | Concept | Code |
---|---|---|
Cavalry | cav , cavalry
| |
Motorized | mot , motorized
| |
Mechanized | mech , mechanized
|