Template:Template:Icon/doc

From TNOpediA

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[edit source]

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.

Usage[edit source]

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[edit source]

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[edit source]

Generic
iconyes =
iconno =
politicalpower =
stability =
manpower =
decision =
warsupport =
vp =
approval =
intel =
handshake =
toaster =
science =
fuel =
combat =
infinity =
Boxes
bluebox =
tealbox =
redbox =
orangebox =
greybox =
greenbox =
purplebox =
indigobox =
yellowbox =
Arrows
arrowup1 =
arrowup2 =
arrowup3 =
arrowneutral =
arrowdown1 =
arrowdown2 =
arrowdown3 =
arrowupgreen =
arrowupred =
arrowdowngreen =
arrowdownred =
Economy
gdp =
gdpgrowth =
poverty =
creditrating =
inflation =
power =
produnit =
produnitred =
produnityellow =
usdblue =
usdgreen =
usdred =
civ =
mil =
workshop =

Diplomacy[edit source]

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[edit source]

OFN
ofnleader =
ofnmember =
ofndepend =
ofnpartner =
ofnmilitary =
ofnmandate =
Pakt
paktleader =
paktpartner =
paktmitstreiter =
paktmartionette =
paktprotektorat =
paktintegrated =
paktautonomous =
paktordensstaat =
paktobserver =
paktmilitary =
Sphere
sphereleader =
sphereman =
spherechi =
spherecorporate =
sphereprotectorate =
sphereequal =
sphereecodepend =
spherefullydepend =
spherewarlord =
sphereobserver =
Triumvirate
triumitaly =
triumiberia =
triumturkey =
triummember =
triumclient =
triumobserver =

Specific[edit source]

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[edit source]

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.