Template:Icon: Difference between revisions
mNo edit summary |
m (Autonomy Icons) |
||
Line 20: | Line 20: | ||
| combat = [[File:Combat icon.png|link=|{{{2|17px}}}]] |
| combat = [[File:Combat icon.png|link=|{{{2|17px}}}]] |
||
| infinity = [[File:Infinity icon.png|link=|{{{2|17px}}}]] |
| infinity = [[File:Infinity icon.png|link=|{{{2|17px}}}]] |
||
| questionmark = [[File:Question mark icon.png|link=|{{{2|17px}}}]] |
|||
<!-- autonomy --> |
|||
| autonomyannexed = [[File:Autonomy annex icon.png|link=|{{{2|17px}}}]] |
|||
| reichskommissariat = [[File:Autonomy autonomous reichskommissariat.png|link=|{{{2|17px}}}]] |
|||
| autonomybreakaway = [[File:Autonomy breakaway state.png|link=|{{{2|17px}}}]] |
|||
| autonomyclient = [[File:Autonomy client state.png|link=|{{{2|17px}}}]] |
|||
| autonomycollaboration = [[File:Autonomy collaboration government.png|link=|{{{2|17px}}}]] |
|||
| autonomycolony = [[File:Autonomy colony icon.png|link=|{{{2|17px}}}]] |
|||
| autonomydominion = [[File:Autonomy dominion icon.png|link=|{{{2|17px}}}]] |
|||
| autonomyfreedom = [[File:Autonomy freedom icon.png|link=|{{{2|17px}}}]] |
|||
| imperialassociate = [[File:Autonomy imperial associate.png|link=|{{{2|17px}}}]] |
|||
| imperialprotectorate = [[File:Autonomy imperial protectorate.png|link=|{{{2|17px}}}]] |
|||
| integratedpuppet= [[File:Autonomy integrated puppet icon.png|link=|{{{2|17px}}}]] |
|||
| integratedreichskommissariat = [[File:Autonomy integrated reichskommissariat.png|link=|{{{2|17px}}}]] |
|||
| italyantiimperialist= [[File:Autonomy italy antiimperialist.png|link=|{{{2|17px}}}]] |
|||
| italyassociate = [[File:Autonomy italy associate.png|link=|{{{2|17px}}}]] |
|||
| italygovernate= [[File:Autonomy italy governate.png|link=|{{{2|17px}}}]] |
|||
| italyinfluence = [[File:Autonomy italy hefty influence.png|link=|{{{2|17px}}}]] |
|||
| italyprotectorate = [[File:Autonomy italy protectorate.png|link=|{{{2|17px}}}]] |
|||
| autonomyclient = [[File:Autonomy client state.png|link=|{{{2|17px}}}]] |
|||
| autonomyliberated = [[File:Autonomy liberated government.png|link=|{{{2|17px}}}]] |
|||
| autonomymildistrict = [[File:Autonomy military district.png|link=|{{{2|17px}}}]] |
|||
| autonomymilgovernment = [[File:Autonomy military government.png|link=|{{{2|17px}}}]] |
|||
| autonomypuppet = [[File:Autonomy puppet icon.png|link=|{{{2|17px}}}]] |
|||
| reichsprotektorat = [[File:Autonomy reichsprotektorat.png|link=|{{{2|17px}}}]] |
|||
| autonomysupervised = [[File:Autonomy supervised state.png|link=|{{{2|17px}}}]] |
|||
| autonomywarlord = [[File:Autonomy warlord regime.png|link=|{{{2|17px}}}]] |
|||
| autonomytransnistria = [[File:Autonomy transnistria governate.png|link=|{{{2|17px}}}]] |
|||
<!-- arrows --> |
<!-- arrows --> |
Revision as of 09:09, 21 June 2024
This template can be used for embedding icons in the wiki, thus making them more colorful, easy to read and standardized. The available icons link to the concept they represent. If an icon is not listed here, please feel free to add it.
Parameters
- 1
- The first parameter is the identifier for the icon. It has no default value and is always required.
- 2
- The second parameter is the width of the icon. It is optional.
- 3
- The third parameter adds the identifier as text which follows the icon. It is optional. The default is no text.
- If the second parameter is not set, this parameter must be used with
3=
rather than just using pipes.
- If the second parameter is not set, this parameter must be used with
Usage
- Syntax
{{icon|identifier}}
or{{icon|identifier|width|text}}
Insert the relevant identifier in the above syntax. The available identifiers can be found in the table below.
- Example
{{icon|japanese}}
will generate{{icon|japanese|40px}}
will generate{{icon|Japanese|3=1}}
will generate Japanese
List of available icons
Note: Capitalization does NOT affect the identifier's use: japan
, Japan
, and JAPAN
all give the same icon; however, if using the third parameter, the output text matches the identifier's input capitalization.
Common
Generic | |
---|---|
iconyes = | |
iconno = | |
politicalpower = (unrecognized string “politicalpower” for Template:Icon) | |
stability = | |
manpower = | |
decision = | |
warsupport = | |
vp = | |
approval = | |
intel = | |
handshake = | |
toaster = | |
science = | |
fuel = | |
combat = | |
infinity = |
Boxes | |
---|---|
bluebox = (unrecognized string “bluebox ” for Template:Icon) | |
tealbox = (unrecognized string “tealbox ” for Template:Icon) | |
redbox = (unrecognized string “redbox ” for Template:Icon) | |
orangebox = (unrecognized string “orangebox ” for Template:Icon) | |
greybox = (unrecognized string “greybox ” for Template:Icon) | |
greenbox = (unrecognized string “greenbox ” for Template:Icon) | |
purplebox = (unrecognized string “purplebox ” for Template:Icon) | |
indigobox = (unrecognized string “indigobox ” for Template:Icon) | |
yellowbox = (unrecognized string “yellowbox ” for Template:Icon) |
Arrows | |
---|---|
arrowup1 = | |
arrowup2 = | |
arrowup3 = | |
arrowneutral = | |
arrowdown1 = | |
arrowdown2 = | |
arrowdown3 = | |
arrowupgreen = | |
arrowupred = | |
arrowdowngreen = | |
arrowdownred = |
Economy | |
---|---|
gdp = (unrecognized string “gdp ” for Template:Icon) | |
gdpgrowth = (unrecognized string “gdpgrowth ” for Template:Icon) | |
poverty = (unrecognized string “poverty ” for Template:Icon) | |
creditrating = (unrecognized string “creditrating ” for Template:Icon) | |
inflation = (unrecognized string “inflation ” for Template:Icon) | |
power = (unrecognized string “power ” for Template:Icon) | |
produnit = (unrecognized string “produnit ” for Template:Icon) | |
produnitred = (unrecognized string “produnitred ” for Template:Icon) | |
produnityellow = (unrecognized string “produnityellow ” for Template:Icon) | |
usdblue = (unrecognized string “usdblue ” for Template:Icon) | |
usdgreen = (unrecognized string “usdgreen ” for Template:Icon) | |
usdred = (unrecognized string “usdred ” for Template:Icon) | |
civ = (unrecognized string “civ ” for Template:Icon) | |
mil = (unrecognized string “mil ” for Template:Icon) | |
workshop = (unrecognized string “workshop ” for Template:Icon) |
Diplomacy
Autonomy | |
---|---|
autonomyannexed = | |
autonomycollaboration = | |
autonomypuppet = | |
autonomycolony = | |
autonomydominion = | |
autonomysupervised = | |
autonomyfreedom = | |
autonomybreakaway = | |
reichsprotektorat = | |
reichskommissariat = | |
integratedreichskommissariat = | |
integratedpuppet = | |
integratedpuppet = | |
imperialassociate = | |
imperialprotectorate = | |
italyantiimperialist = | |
italyassociate = | |
italygovernate = | |
italyinfluence = | |
italyprotectorate = | |
autonomyclient = | |
autonomyliberated = | |
autonomymildistrict = | |
autonomymilgovernment = | |
autonomywarlord = | |
autonomytransnistria = |
Factions
OFN | |
---|---|
ofnleader = (unrecognized string “ofnleader” for Template:Icon) | |
ofnmember = (unrecognized string “ofnmember” for Template:Icon) | |
ofndepend = (unrecognized string “ofndepend” for Template:Icon) | |
ofnpartner = (unrecognized string “ofnpartner” for Template:Icon) | |
ofnmilitary = (unrecognized string “ofnmilitary” for Template:Icon) | |
ofnmandate = (unrecognized string “ofnmandate” for Template:Icon) |
Pakt | |
---|---|
paktleader = (unrecognized string “paktleader” for Template:Icon) | |
paktpartner = (unrecognized string “paktpartner” for Template:Icon) | |
paktmitstreiter = (unrecognized string “paktmitstreiter” for Template:Icon) | |
paktmartionette = (unrecognized string “paktmartionette” for Template:Icon) | |
paktprotektorat = (unrecognized string “paktprotektorat” for Template:Icon) | |
paktintegrated = (unrecognized string “paktintegrated” for Template:Icon) | |
paktautonomous = (unrecognized string “paktautonomous” for Template:Icon) | |
paktordensstaat = (unrecognized string “paktordensstaat” for Template:Icon) | |
paktobserver = (unrecognized string “paktobserver” for Template:Icon) | |
paktmilitary = (unrecognized string “paktmilitary” for Template:Icon) |
Sphere | |
---|---|
sphereleader = (unrecognized string “sphereleader” for Template:Icon) | |
sphereman = (unrecognized string “sphereman” for Template:Icon) | |
spherechi = (unrecognized string “spherechi” for Template:Icon) | |
spherecorporate = (unrecognized string “spherecorporate” for Template:Icon) | |
sphereprotectorate = (unrecognized string “sphereprotectorate” for Template:Icon) | |
sphereequal = (unrecognized string “sphereequal” for Template:Icon) | |
sphereecodepend = (unrecognized string “sphereecodepend” for Template:Icon) | |
spherefullydepend = (unrecognized string “spherefullydepend” for Template:Icon) | |
spherewarlord = (unrecognized string “spherewarlord” for Template:Icon) | |
sphereobserver = (unrecognized string “sphereobserver” for Template:Icon) |
Triumvirate | |
---|---|
triumitaly = (unrecognized string “triumitaly” for Template:Icon) | |
triumiberia = (unrecognized string “triumiberia” for Template:Icon) | |
triumturkey = (unrecognized string “triumturkey” for Template:Icon) | |
triummember = (unrecognized string “triummember” for Template:Icon) | |
triumclient = (unrecognized string “triumclient” for Template:Icon) | |
triumobserver = (unrecognized string “triumobserver” for Template:Icon) |
Specific
Guangdong | |
---|---|
gng = | |
china = | |
japan = | |
manchuria = | |
gpf = | |
yakuza = | |
triad = | |
kenpeitai = | |
cheungkong = | |
sony = | |
matsushita = | |
fujitsu = | |
yasuda = | |
hitachi = | |
nissan = | |
chinese = | |
japanese = | |
zhujin = | |
gngija = | |
legco = | |
corruption = | |
gngevils = | |
gnginterest = | |
gngquality = | |
gngprofit = | |
gngdespair = | |
gngrioters = | |
gngstrength = | |
gngradicalism = | |
gngfrustration = | |
gngccl = | |
gnggft = |
United States | |
---|---|
rd = | |
rd_d = | |
rd_r = | |
npp = | |
npp_c = | |
npp_fr = | |
npp_l = | |
npp_y = |
Smuta | |
---|---|
smuta = | |
smutared = | |
smutachaos = | |
smutasupplies = |
Adding new Icons
To add new Icons to the template, so they can be used by the {{icon}}
function, follow these steps:
1: Upload the icon to the wiki (remember to follow the Filename Guidelines)
2: Edit the Template:Icon page to add it to the template.
2.1: Add |iconname = [[File:ICON FILE NAME.png|link=|{{{2|17px}}}]]
to the relevant section made in the code, such as 'generic' or 'germany'
2.2: Be aware that the {{{2|17px}}}
specifies the size of the icon, mainly the 17px
, which is used by texticons. Icons can be scaled up so it doesn't matter too much, but to eliminate tedious work later on, please make sure to have consistent default sizes for icons.
3: Save changes and go to Template:Template:Icon/doc (it says Template twice because of a mistake, it doesnt matter though)
4: Add the icon to the List of available icons
so that it appears on the main Icon page, otherwise it is only shown in code. Adding the Icon to the documentation makes it easier to find the icon you want.