Template:Icon: Difference between revisions

From TNOpediA
Content added Content deleted
mNo edit summary
mNo edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Replace with code below and split to sub-templates when there are a large number of icons
<!-- Replace with code below and split to sub-templates when there are a large number of icons
<includeonly>{{icon/{{padleft:|1|{{lc:{{{1}}}}}}}|alt{{#if:{{{alt|}}}||NULL}}={{{alt}}}|{{#replace:{{lc:{{{1}}}}}|_|&#32;}}|w{{#if:{{{2|}}}||NULL}}={{{2}}}}}</includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude>
<includeonly>{{icon/{{padleft:|1|{{lc:{{{1}}}}}}}|alt{{#if:{{{alt|}}}||NULL}}={{{alt}}}|{{#replace:{{lc:{{{1}}}}}|_|&#32;}}|w{{#if:{{{2|}}}||NULL}}={{{2}}}}}</includeonly><noinclude>{{Template:Template:Icon/doc}}[[Category:Templates]]</noinclude>
--><includeonly>{{#switch:{{lc:{{{1}}}}}
--><includeonly>{{#switch:{{lc:{{{1}}}}}


<!-- general icons -->
<!-- generic -->
| iconyes = [[File:Trigger yes.png|link=|{{{2|17px}}}]]
| iconno = [[File:Trigger no.png|link=|{{{2|17px}}}]]
| politicalpower = [[File:Political Power icon.png|link=|{{{2|17px}}}]]
| stability = [[File:Stability icon.png|link=|{{{2|17px}}}]]
| manpower = [[File:Manpower icon.png|link=|{{{2|17px}}}]]
| decision = [[File:Decision icon small.png|link=|{{{2|17px}}}]]
| warsupport = [[File:War Support icon.png|link=|{{{2|17px}}}]]
| vp = [[File:Victory Point icon.png|link=|{{{2|17px}}}]]
| approval = [[File:Approval icon.png|link=|{{{2|17px}}}]]
| intel = [[File:Counter intelligence icon.png|link=|{{{2|17px}}}]]
| handshake = [[File:Handshake icon.png|link=|{{{2|17px}}}]]
| toaster = [[File:Icon consumer goods toaster.png|link=|{{{2|17px}}}]]
| science = [[File:Science icon.png|link=|{{{2|17px}}}]]
| fuel = [[File:Fuel icon small.png|link=|{{{2|17px}}}]]
| combat = [[File:Combat icon.png|link=|{{{2|17px}}}]]
| infinity = [[File:Infinity icon.png|link=|{{{2|17px}}}]]
| questionmark = [[File:Question mark icon.png|link=|{{{2|17px}}}]]
| bluebox = [[File:Icon blue box.png|link=|{{{2|17px}}}]]
| tealbox = [[File:Icon teal box.png|link=|{{{2|17px}}}]]
| redbox = [[File:Icon red box.png|link=|{{{2|17px}}}]]
| orangebox = [[File:Icon orange box.png|link=|{{{2|17px}}}]]
| greybox = [[File:Icon grey box.png|link=|{{{2|17px}}}]]
| greenbox = [[File:Icon green box.png|link=|{{{2|17px}}}]]
| purplebox = [[File:Purple box.png|link=|{{{2|17px}}}]]
| indigobox = [[File:Icon dark purple box.png|link=|{{{2|17px}}}]]
| yellowbox = [[File:Icon yellow box.png|link=|{{{2|17px}}}]]


<!-- arrows -->
| arrowup1 = [[File:Arrow improve 1.png|link=|{{{2|17px}}}]]
| arrowup2 = [[File:Arrow improve 2.png|link=|{{{2|17px}}}]]
| arrowup3 = [[File:Arrow improve 3.png|link=|{{{2|17px}}}]]
| arrowneutral = [[File:Arrow neutral.png|link=|{{{2|17px}}}]]
| arrowdown1 = [[File:Arrow worsen 1.png|link=|{{{2|17px}}}]]
| arrowdown2 = [[File:Arrow worsen 2.png|link=|{{{2|17px}}}]]
| arrowdown3 = [[File:Arrow worsen 3.png|link=|{{{2|17px}}}]]
| arrowupgreen = [[File:Arrow Increase Green.png|link=|{{{2|17px}}}]]
| arrowupred = [[File:Arrow Increase Red.png|link=|{{{2|17px}}}]]
| arrowdowngreen = [[File:Arrow Decrease Green.png|link=|{{{2|17px}}}]]
| arrowdownred = [[File:Arrow Decrease Red.png|link=|{{{2|17px}}}]]


<!-- guangdong icons -->
<!-- economy -->
| gdp = [[File:Gdp texticon.png|link=|{{{2|17px}}}]]
| gdpgrowth = [[File:Gdp growth texticon.png|link=|{{{2|17px}}}]]
| poverty = [[File:TNO Economy Poverty Icon.png|link=|{{{2|17px}}}]]
| creditrating = [[File:TNO Economy Credit Rating Icon.png|link=|{{{2|17px}}}]]
| inflation = [[File:Inflation texticon.png|link=|{{{2|17px}}}]]
| power = [[File:Tt power.png|link=|{{{2|17px}}}]]
| produnit = [[File:Tt prod unit.png|link=|{{{2|17px}}}]]
| produnitred = [[File:Tt prod unit r.png|link=|{{{2|17px}}}]]
| produnityellow = [[File:Tt prod unit y.png|link=|{{{2|17px}}}]]
| usdblue = [[File:Dollar sign icon.png|link=|{{{2|17px}}}]]
| usdgreen = [[File:Dollar green sign icon.png|link=|{{{2|17px}}}]]
| usdred = [[File:Dollar red sign icon.png|link=|{{{2|17px}}}]]
| civ = [[File:Tt civ factory.png|link=|{{{2|17px}}}]]
| mil = [[File:Tt mil factory.png|link=|{{{2|17px}}}]]
| workshop = [[File:Tt mil workshop.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}}}]]

<!-- ofn -->
| ofnleader = [[File:Ofn leader icon.webp|link=|{{{2|24px}}}]]
| ofnmember = [[File:OFN Leader.png|link=|{{{2|24px}}}]]
| ofndepend = [[File:OFN dependent ofn member.png|link=|{{{2|24px}}}]]
| ofnpartner = [[File:OFN Observer.png|link=|{{{2|24px}}}]]
| ofnmilitary = [[File:OFN ofn military government.png|link=|{{{2|24px}}}]]
| ofnmandate = [[File:OFN ofn mandate.png|link=|{{{2|24px}}}]]

<!-- pakt -->
| paktleader = [[File:GFX Pakt Leader.png|link=|{{{2|24px}}}]]
| paktmitstreiter = [[File:GFX Pakt Mitstreiter.png|link=|{{{2|24px}}}]]
| paktmartionette = [[File:GFX Pakt Marionettenstaat.png|link=|{{{2|24px}}}]]
| paktordensstaat = [[File:GFX Pakt Ordensstaat.png|link=|{{{2|24px}}}]]
| paktobserver = [[File:GFX Pakt Observer.png|link=|{{{2|24px}}}]]
| paktpartner = [[File:GFX Pakt Bundnispartner.png|link=|{{{2|24px}}}]]
| paktmilitary = [[File:GFX Pakt Military Authority.png|link=|{{{2|24px}}}]]
| paktprotektorat = [[File:GFX Pakt Protektorat.png|link=|{{{2|24px}}}]]
| paktautonomous = [[File:GFX Pakt Autonomous Reichskommissariat.png|link=|{{{2|24px}}}]]
| paktintegrated = [[File:GFX Pakt Integrated Reichskommissariat.png|link=|{{{2|24px}}}]]

<!-- sphere -->
| sphereleader = [[File:GFX Sphere Leader.png|link=|{{{2|24px}}}]]
| sphereman = [[File:GFX Sphere Core Member MAN.png|link=|{{{2|24px}}}]]
| spherechi = [[File:GFX Sphere Core Member CHI.png|link=|{{{2|24px}}}]]
| spherecorporate = [[File:GFX Sphere Corporate Dependency.png|link=|{{{2|24px}}}]]
| sphereprotectorate = [[File:GFX Sphere Imperial Protectorate.png|link=|{{{2|24px}}}]]
| sphereequal = [[File:GFX Sphere CoEqual Partner.png|link=|{{{2|24px}}}]]
| sphereecodepend = [[File:GFX Sphere Economically Dependent.png|link=|{{{2|24px}}}]]
| spherefullydepend = [[File:GFX Sphere Fully Dependent.png|link=|{{{2|24px}}}]]
| spherewarlord = [[File:GFX Sphere Chinese Warlord.png|link=|{{{2|24px}}}]]
| sphereobserver = [[File:GFX Sphere Observer.png|link=|{{{2|24px}}}]]

<!-- triumvirate -->
| triumitaly = [[File:GFX TRI Founder IT.png|link=|{{{2|24px}}}]]
| triumiberia = [[File:GFX TRI Founder IB.png|link=|{{{2|24px}}}]]
| triumturkey = [[File:GFX TRI Founder TR.png|link=|{{{2|24px}}}]]
| triummember = [[File:GFX TRI Member.png|link=|{{{2|24px}}}]]
| triumclient = [[File:GFX TRI Member Client.png|link=|{{{2|24px}}}]]
| triumobserver = [[File:GFX TRI Observer.png|link=|{{{2|24px}}}]]

<!-- guangdong -->
| gng = [[File:Suzuki small icon.png|link=|{{{2|17px}}}]]
| gng = [[File:Suzuki small icon.png|link=|{{{2|17px}}}]]
| china = [[File:GNG chinese nation small icon.png|link=|{{{2|17px}}}]]
| china = [[File:GNG chinese nation small icon.png|link=|{{{2|17px}}}]]
Line 21: Line 144:
| fujitsu = [[File:Fujitsu small icon.png|link=|{{{2|17px}}}]]
| fujitsu = [[File:Fujitsu small icon.png|link=|{{{2|17px}}}]]
| hitachi = [[File:Hitachi small icon.png|link=|{{{2|17px}}}]]
| hitachi = [[File:Hitachi small icon.png|link=|{{{2|17px}}}]]
| nissan = [[File:GNG Nissan.png|link=|{{{2|17px}}}]]
| chinese = [[File:Guangdong Chinese Icon.png|link=|{{{2|17px}}}]]
| zhujin = [[File:Guangdong Zhujin Icon.png|link=|{{{2|17px}}}]]
| japanese = [[File:Guangdong Japanese Icon.png|link=|{{{2|17px}}}]]
| gngija = [[File:IJA Icon.png|link=|{{{2|17px}}}]]
| legco = [[File:LegCo Small Icon.png|link=|{{{2|17px}}}]]
| corruption = [[File:GNG corruption small icon.png|link=|{{{2|17px}}}]]
| gngevils = [[File:GNG Three Evils.png|link=|{{{2|17px}}}]]
| gnginterest = [[File:GNG Interest.png|link=|{{{2|17px}}}]]
| gngquality = [[File:GNG Quality.png|link=|{{{2|17px}}}]]
| gngprofit = [[File:GNG Profitability.png|link=|{{{2|17px}}}]]
| gngdespair = [[File:GNG Despair.png|link=|{{{2|17px}}}]]
| gngrioters = [[File:GNG Rioters.png|link=|{{{2|17px}}}]]
| gngstrength = [[File:GNG Strength.png|link=|{{{2|17px}}}]]
| gngradicalism= [[File:GNG Radicalism.png|link=|{{{2|17px}}}]]
| gngfrustration= [[File:GNG Frustration.png|link=|{{{2|17px}}}]]
| gngccl= [[File:GNG CCL.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]]
}}{{#if:{{{3|}}}|&nbsp;{{{1}}}|}}</includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude>
}}{{#if:{{{3|}}}|&nbsp;{{{1}}}|}}</includeonly><noinclude>{{Template:Template:Icon/doc}}[[Category:Templates]]</noinclude>

Latest revision as of 09:35, 22 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[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.