Template:Icon: Difference between revisions

From TNOpediA
Content added Content deleted
mNo edit summary
mNo edit summary
Line 32: Line 32:
| arrowdowngreen = [[File:Arrow Decrease Green.png|link=|{{{2|17px}}}]]
| arrowdowngreen = [[File:Arrow Decrease Green.png|link=|{{{2|17px}}}]]
| arrowdownred = [[File:Arrow Decrease Red.png|link=|{{{2|17px}}}]]
| arrowdownred = [[File:Arrow Decrease Red.png|link=|{{{2|17px}}}]]



<!-- guangdong -->
<!-- guangdong -->
Line 67: Line 66:
| gngccl= [[File:GNG CCL.png|link=|{{{2|17px}}}]]
| gngccl= [[File:GNG CCL.png|link=|{{{2|17px}}}]]
| gnggft= [[File:GNG GFT.png|link=|{{{2|17px}}}]]
| gnggft= [[File:GNG GFT.png|link=|{{{2|17px}}}]]

<!-- united states -->
| rd = [[File:RDcoalition.png|link=|{{{2|17px}}}]]
| rd_d = [[File:Rd d.png|link=|{{{2|17px}}}]]
| rd_r = [[File:Rd r.png|link=|{{{2|17px}}}]]
| npp = [[File:Npp.png|link=|{{{2|17px}}}]]
| npp_c = [[File:Npp c.png|link=|{{{2|17px}}}]]
| npp_fr = [[File:Npp fr.png|link=|{{{2|17px}}}]]
| npp_l = [[File:Npp l.png|link=|{{{2|17px}}}]]
| npp_y = [[File:Npp y.png|link=|{{{2|17px}}}]]

<!-- smuta-->
| smuta = [[File:Smuta.png|link=|{{{2|17px}}}]]
| smutared = [[File:Smuta red.png|link=|{{{2|17px}}}]]
| smutachaos = [[File:Smuta chaos.png|link=|{{{2|17px}}}]]
| smutasupplies = [[File:Smuta supplies.png|link=|{{{2|17px}}}]]


| #default = <span style="color: red; font-size: 11px;">(unrecognized string “{{{1}}}” for [[Template:Icon]])</span>[[Category:Pages with unrecognized icon strings]]
| #default = <span style="color: red; font-size: 11px;">(unrecognized string “{{{1}}}” for [[Template:Icon]])</span>[[Category:Pages with unrecognized icon strings]]

Revision as of 15:02, 19 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.

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 = (unrecognized string “toaster” for Template:Icon)
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 = (unrecognized string “autonomyannexed” for Template:Icon)
autonomycollaboration = (unrecognized string “autonomycollaboration” for Template:Icon)
autonomypuppet = (unrecognized string “autonomypuppet” for Template:Icon)
autonomycolony = (unrecognized string “autonomycolony” for Template:Icon)
autonomydominion = (unrecognized string “autonomydominion” for Template:Icon)
autonomysupervised = (unrecognized string “autonomysupervised” for Template:Icon)
autonomyfreedom = (unrecognized string “autonomyfreedom” for Template:Icon)
autonomybreakaway = (unrecognized string “autonomybreakaway” for Template:Icon)
reichsprotektorat = (unrecognized string “reichsprotektorat” for Template:Icon)
reichskommissariat = (unrecognized string “reichskommissariat” for Template:Icon)
integratedreichskommissariat = (unrecognized string “integratedreichskommissariat” for Template:Icon)
integratedpuppet = (unrecognized string “integratedpuppet” for Template:Icon)
integratedpuppet = (unrecognized string “integratedpuppet” for Template:Icon)
imperialassociate = (unrecognized string “imperialassociate” for Template:Icon)
imperialprotectorate = (unrecognized string “imperialprotectorate” for Template:Icon)
italyantiimperialist = (unrecognized string “italyantiimperialist” for Template:Icon)
italyassociate = (unrecognized string “italyassociate” for Template:Icon)
italygovernate = (unrecognized string “italygovernate” for Template:Icon)
italyinfluence = (unrecognized string “italyinfluence” for Template:Icon)
italyprotectorate = (unrecognized string “italyprotectorate” for Template:Icon)
autonomyclient = (unrecognized string “autonomyclient” for Template:Icon)
autonomyliberated = (unrecognized string “autonomyliberated” for Template:Icon)
autonomymildistrict = (unrecognized string “autonomymildistrict” for Template:Icon)
autonomymilgovernment = (unrecognized string “autonomymilgovernment” for Template:Icon)
autonomywarlord = (unrecognized string “autonomywarlord” for Template:Icon)
autonomytransnistria = (unrecognized string “autonomytransnistria” for Template:Icon)

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.