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}}
|
|
{{Icon|super heavy tank|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
| |
| Fuel | fuel
|
Ideology
| Icon | Concept | Code |
|---|---|---|
| Communism Communist |
communismcommunist
| |
| Democracy Democratic |
democracydemocratic
| |
| Fascism Fascist |
fascismfascist
| |
| Neutrality Non-Aligned Unaligned |
neutralitynon-alignedunaligned
| |
| Anarchism Anarchist |
anarchismanarchist
| |
| Unknown Ideology | unknownid
|
Laws
Buildings
Production
Units
Codes given are examples. More are supported.
| Icon | Concept | Code |
|---|---|---|
| Anti-Air | aa, anti-air
| |
| Anti-Tank | at, anti-tank
| |
| Artillery | arty, artillery
| |
| Rocket Artillery | rart, rocket artillery
|
| Icon | Concept | Code |
|---|---|---|
| Integralist militia | integralist militia
|