Template:Icon: Difference between revisions
From Terra Invicta Official Wiki
Llamageddon (talk | contribs) m Commented out nations game hasn't defined flags for |
Llamageddon (talk | contribs) Template has the same syntax but now invokes Module:Icon instead of using switch list. |
||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Icon|Icon|{{{1}}}|{{{2}}}|{{{3}}}}}</includeonly><noinclude> | |||
A template for inserting resource icons. | |||
== Usage == | |||
To get the water icon for example: | |||
<pre>{{icon|water|bgcolor=transparent|size=20px}}</pre> | |||
Words for icons are shown in the following table. Parameters "bgcolor" and "size" are optional. | |||
=== Resources === | |||
{| class="wikitable" | |||
|- | |||
! name(s) !! icon | |||
|- | |||
| money || style="background-color: DarkSlateGray" align="center" | {{icon|money}} | |||
|- | |||
| influence || style="background-color: DarkSlateGray" align="center" | {{icon|influence}} | |||
|- | |||
| ops || style="background-color: DarkSlateGray" align="center" | {{icon|ops}} | |||
|- | |||
| boost || style="background-color: DarkSlateGray" align="center" | {{icon|boost}} | |||
|- | |||
| mc / mission control || style="background-color: DarkSlateGray" align="center" | {{icon|mc}} | |||
|- | |||
| research || style="background-color: DarkSlateGray" align="center" | {{icon|research}} | |||
|- | |||
| cp / control point / control points || style="background-color: DarkSlateGray" align="center" | {{icon|cp}} | |||
|- | |||
| water || style="background-color: DarkSlateGray" align="center" | {{icon|water}} | |||
|- | |||
| volatiles || style="background-color: DarkSlateGray" align="center" | {{icon|volatiles}} | |||
|- | |||
| metal / metals / base metals || style="background-color: DarkSlateGray" align="center" | {{icon|metal}} | |||
|- | |||
| nobles / noble metals || style="background-color: DarkSlateGray" align="center" | {{icon|nobles}} | |||
|- | |||
| fissile / fissiles || style="background-color: DarkSlateGray" align="center" | {{icon|fissiles}} | |||
|- | |||
| exotics || style="background-color: DarkSlateGray" align="center" | {{icon|exotics}} | |||
|- | |||
| antimatter / antimatters || style="background-color: DarkSlateGray" align="center" | {{icon|antimatter}} | |||
|} | |||
=== Factions === | |||
{| class="wikitable" | |||
! name(s) !! icon | |||
|- | |||
|resistance / resist | |||
|{{icon|resist}} | |||
|- | |||
|servants / submit | |||
|{{icon|submit}} | |||
|- | |||
|initiative / exploit | |||
|{{icon|exploit}} | |||
|- | |||
|project exodus / exodus / escape | |||
|{{icon|escape}} | |||
|- | |||
|academy / cooperate | |||
|{{icon|cooperate}} | |||
|- | |||
|humanity first / HF / destroy | |||
|{{icon|destroy}} | |||
|- | |||
|protectorate / appease | |||
|{{icon|appease}} | |||
|- | |||
|alien / aliens | |||
|{{icon|alien}} | |||
|- | |||
|} | |||
=== Faction Leaders === | |||
{| class="wikitable" | |||
! name(s) !! icon | |||
|- | |||
|resistance leader / resist leader | |||
|{{icon|resist leader}} | |||
|- | |||
|servants leader / submit leader | |||
|{{icon|submit leader}} | |||
|- | |||
|initiative leader / exploit leader | |||
|{{icon|exploit leader}} | |||
|- | |||
|project exodus leader / exodus leader / escape leader | |||
|{{ | |||
|- | |- | ||
| | | Slovakia / SLO || {{icon|SLO}} | ||
|- | |- | ||
| | | Slovenia / SLV || {{icon|SLV}} | ||
|- | |- | ||
| | | Somalia / SOM || {{icon|SOM}} | ||
|- | |- | ||
| | | Somaliland / SOL || {{icon|SOL}} | ||
|- | |- | ||
| | | South Africa / ZAF || {{icon|ZAF}} | ||
|- | |- | ||
| | | (Southern Africa Federation) / ZAFU || {{icon|ZAFU}} | ||
|- | |- | ||
| | | South Korea / KOR || {{icon|KOR}} | ||
|- | |- | ||
| | | (Republic of Korea) / KORU || {{icon|KORU}} | ||
|- | |- | ||
| | | South Sudan / SSD || {{icon|SSD}} | ||
|- | |- | ||
| | | South Yemen / YMS || {{icon|YMS}} | ||
|- | |- | ||
| | | Spain / ESP || {{icon|ESP}} | ||
|- | |- | ||
| | | Sri Lanka / LKA || {{icon|LKA}} | ||
|- | |- | ||
| | | Sudan / SDN || {{icon|SDN}} | ||
|- | |- | ||
| | | Sul Brazil / SUB || {{icon|SUB}} | ||
|- | |- | ||
| | | Sumatra / SUM || {{icon|SUM}} | ||
|- | |- | ||
| | | Suriname / SUR || {{icon|SUR}} | ||
|- | |- | ||
| | | Sweden / SCA || {{icon|SCA}} | ||
|- | |- | ||
| | | (Nordic Federation) / SCAU || {{icon|SCAU}} | ||
|- | |- | ||
| | | Switzerland / SWI || {{icon|SWI}} | ||
|- | |- | ||
| | | Syria / SYR || {{icon|SYR}} | ||
|- | |- | ||
| | | São Paulo / SAO || {{icon|SAO}} | ||
|- | |- | ||
| | | São Tomé and Príncipe / STP || {{icon|STP}} | ||
|- | |- | ||
| | | Taiwan / TWN || {{icon|TWN}} | ||
|- | |- | ||
| | | (Republic of China) / TWNU || {{icon|TWNU}} | ||
|- | |- | ||
| | | Tajikistan / TJK || {{icon|TJK}} | ||
|- | |- | ||
| | | Tanzania / TZA || {{icon|TZA}} | ||
|- | |- | ||
| | | (East African Federation) / TZAU || {{icon|TZAU}} | ||
|- | |- | ||
| | | Tatarstan / TAR || {{icon|TAR}} | ||
|- | |- | ||
| | | Te Waipounamu / TEW || {{icon|TEW}} | ||
|- | |- | ||
| | | Thailand / THA || {{icon|THA}} | ||
|- | |- | ||
| | | (Southeast Asian Alliance) / THAU || {{icon|THAU}} | ||
|- | |- | ||
| | | The Gambia / GAM || {{icon|GAM}} | ||
|- | |- | ||
| | | Tibet / TBT || {{icon|TBT}} | ||
|- | |- | ||
| | | Tigray / TIG || {{icon|TIG}} | ||
|- | |- | ||
| | | Timor-Leste / TLS || {{icon|TLS}} | ||
|- | |- | ||
| | | Togo / TGO || {{icon|TGO}} | ||
|- | |- | ||
| | | Transylvania / TRA || {{icon|TRA}} | ||
|- | |- | ||
| | | Tunisia / TUN || {{icon|TUN}} | ||
|- | |- | ||
| | | Turkmenistan / TKM || {{icon|TKM}} | ||
|- | |- | ||
| | | Türkiye / TUR || {{icon|TUR}} | ||
|- | |- | ||
| | | (Turkestan) / TURU || {{icon|TURU}} | ||
|- | |- | ||
| | | Uganda / UGA || {{icon|UGA}} | ||
|- | |- | ||
| | | Ukraine / UKR || {{icon|UKR}} | ||
|- | |- | ||
| | | United Arab Emirates / UAE || {{icon|UAE}} | ||
|- | |- | ||
| | | United Nations / PRA || {{icon|PRA}} | ||
|- | |- | ||
| | | United Northeast Brazil / UNB || {{icon|UNB}} | ||
|- | |- | ||
| | | United States of America / USA || {{icon|USA}} | ||
|- | |- | ||
| | | (United States of North America) / USAU || {{icon|USAU}} | ||
|- | |- | ||
| | <!-- Defined in localization but not nation template | ||
| Upper Guinea / UPG || {{icon|UPG}} | |||
--> | |||
|- | |- | ||
| | | Ural Republic / URL || {{icon|URL}} | ||
|- | |- | ||
| | | Uruguay / URY || {{icon|URY}} | ||
|- | |- | ||
| | | Uzbekistan / UZB || {{icon|UZB}} | ||
|- | |- | ||
| | | Venezuela / VEN || {{icon|VEN}} | ||
|- | |- | ||
| | | Vietnam / VNM || {{icon|VNM}} | ||
|- | |- | ||
| | | Wales / WAL || {{icon|WAL}} | ||
|- | |- | ||
| | | Waziristan / WAZ || {{icon|WAZ}} | ||
|- | |- | ||
| | | West Canada / WCA || {{icon|WCA}} | ||
|- | |- | ||
| | | West Germany / WGA || {{icon|WGA}} | ||
|- | |- | ||
| | <!-- Defined in localization but not nation template | ||
| Western Balkan States / WBK || {{icon|WBK}} | |||
--> | |||
|- | |- | ||
| | | Westralia / WES || {{icon|WES}} | ||
|- | |- | ||
| | | Yakutia / SAK || {{icon|SAK}} | ||
|- | |- | ||
| | | Yemen / YEM || {{icon|YEM}} | ||
|- | |- | ||
| | | Yucatán / YUC || {{icon|YUC}} | ||
|- | |- | ||
| | | Yungui / YUN || {{icon|YUN}} | ||
|- | |- | ||
| | | Zambia / ZMB || {{icon|ZMB}} | ||
|- | |- | ||
| | | Zanzibar / ZAN || {{icon|ZAN}} | ||
|- | |- | ||
| | | Zimbabwe / ZWE || {{icon|ZWE}} | ||
|- | |- | ||
|} | |||
=== Misc === | |||
{| class="wikitable" | |||
! name(s) !! icon | |||
|- | |||
|greenarrowup | |||
|{{icon|greenarrowup}} | |||
|- | |||
|greenarrowdown | |||
|{{icon|greenarrowdown}} | |||
|- | |||
|redarrowup | |||
|{{icon|redarrowup}} | |||
|- | |||
|redarrowdown | |||
|{{icon|redarrowdown}} | |||
|- | |||
|warning | |||
|{{icon|warning}} | |||
|- | |||
|} | |||
</noinclude> | |||
<!-- | |||
##Just leaving this here for legacy/reference for now (old switch method) | |||
<span style="background-color: {{{bgcolor|transparent}}}; display: inline-block;">{{#switch: {{{1}}} | |||
| money = [[File:ICO currency.png|{{{size|20px}}}|money]] | |||
| influence = [[File:ICO influence.png|{{{size|20px}}}|influence]] | |||
| ops = [[File:ICO ops.png|{{{size|20px}}}|ops]] | |||
| boost = [[File:ICO boost.png|{{{size|20px}}}|boost]] | |||
| mc | |||
| mission control = [[File:ICO mission control.png|{{{size|20px}}}|mission control]] | |||
| research = [[File:ICO research.png|{{{size|20px}}}|research]] | |||
| project | |||
| projects = [[File:ICO projects.png|{{{size|20px}}}|projects]] | |||
| cp | |||
| control point | |||
| control points = [[File:ICO ControlPoint empty.png|{{{size|20px}}}|control points]] | |||
| water = [[File:ICO water.png|{{{size|20px}}}|water]] | |||
| volatiles = [[File:ICO volatiles.png|{{{size|20px}}}|volatiles]] | |||
| metal | |||
| metals | |||
| base metals = [[File:ICO metal.png|{{{size|20px}}}|base metals]] | |||
| nobles | |||
| noble metals = [[File:ICO metal noble.png|{{{size|20px}}}|noble metals]] | |||
| | |||
--> | --> | ||
Revision as of 21:09, 28 November 2025
A template for inserting resource icons.
Usage
To get the water icon for example:
{{icon|water|bgcolor=transparent|size=20px}}
Words for icons are shown in the following table. Parameters "bgcolor" and "size" are optional.
Resources
Factions
| name(s) | icon |
|---|---|
| resistance / resist | |
| servants / submit | |
| initiative / exploit | |
| project exodus / exodus / escape | |
| academy / cooperate | |
| humanity first / HF / destroy | |
| protectorate / appease | |
| alien / aliens |
Faction Leaders
Nations
Councilors
| name(s) | icon |
|---|---|
| councilor | |
| persuasion | |
| investigation | |
| espionage | |
| command | |
| administration | |
| science | |
| security | |
| loyalty | |
| star |
Technologies
| name(s) | icon |
|---|---|
| energy | |
| information | |
| life | |
| material / materials | |
| military | |
| social | |
| space | |
| xenology | |
| project, projects |
Space Assets
| name(s) | icon |
|---|---|
| base / outpost | |
| station / platform | |
| mine | |
| mining | |
| radiation | |
| fleet | |
| combat score / combat value | |
| space assault score / marine | |
| acceleration | |
| deltav / dv | |
| power | |
| power consumption | |
| construction |
Nation Flags
Some nations can also form unions, or start as one.
To display a union flag, append "U" to the end of the country code.
Example:
{{icon|GBR}} =
, {{icon|GBRU}} =
.
Misc
| name(s) | icon |
|---|---|
| greenarrowup | |
| greenarrowdown | |
| redarrowup | |
| redarrowdown | |
| warning |


