Difference between revisions of "Template:Icon"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 15: Line 15:
 
--> agave = Agave"> [[File:Agave fruit.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Agave|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> agave = Agave"> [[File:Agave fruit.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Agave|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> berries = Berr{{#switch: {{{2|}}}|=y |1= |ies}}"> [[File:Berries.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Berries|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> berries = Berr{{#switch: {{{2|}}}|=y |1= |ies}}"> [[File:Berries.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Berries|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
--> bmeat = Big meat"> [[File:MeatBig.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat big|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
+
--> bmeat = Big meat"> [[File:Meat big a.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat big|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
--> smeat = Small meat"> [[File:MeatSmall.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat small|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
+
--> smeat = Small meat"> [[File:Meat small a.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat small|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
--> hmeat = Human meat"> [[File:MeatHuman.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat human|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
+
--> hmeat = Human meat"> [[File:Meat human a.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat human|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> npaste = Nutrient paste meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Nutrient paste meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Nutrient paste meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> npaste = Nutrient paste meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Nutrient paste meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Nutrient paste meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> simple = Simple meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Simple meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Simple meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> simple = Simple meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Simple meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Simple meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
Line 82: Line 82:
 
--> uran = Uranium"> [[File:Uranium.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Uranium|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> uran = Uranium"> [[File:Uranium.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Uranium|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> med = Medikit{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Medicine Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Medikit|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> med = Medikit{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Medicine Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Medikit|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
--> muffalo = Muffalo meat"> [[File:MeatBig.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Muffalo meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
+
--> muffalo = Muffalo meat"> [[File:Meat big a.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Muffalo meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
--> boomrat = Boomrat meat"> [[File:MeatSmall.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Boomrat meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
+
--> boomrat = Boomrat meat"> [[File:Meat small a.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Boomrat meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
--> squirell = Squirell meat"> [[File:MeatSmall.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Squirell meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
+
--> squirell = Squirell meat"> [[File:Meat small a.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Squirell meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> missile = Missile{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Missile Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Missile|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- (appears to be only in Glittertech Mod?)
 
--> missile = Missile{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Missile Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Missile|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- (appears to be only in Glittertech Mod?)
 
--> arctic foxskin = Arctic foxskin"> [[File:Arctic foxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Arctic foxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> arctic foxskin = Arctic foxskin"> [[File:Arctic foxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Arctic foxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--

Revision as of 09:27, 6 March 2023

<span title="

Documentation icon Template documentation[view] [edit] [history] [purge]

A minimalist helper template to quickly create a resource icon.

Usage

{{icon 
| type (metal/plasteel/cloth/etc) <-- determines image displayed and sets alt text
| amount 
| image size (optional, 16px resize by default)
| image position (optional, use default settings)
}}
List of available types
  • wood
  • steel
  • plasteel
  • cloth
  • devilstrand
  • synthread
  • hyperweave
  • stone
  • silver
  • gold
  • uranium
  • potato
  • agave
  • berries
  • bmeat
  • smeat
  • hmeat
  • muffalo
  • npaste
  • simple
  • fine
  • lavish
  • survival
  • shell
  • debris
  • slag
  • component
  • advcomponent
  • herbal
  • medicine
  • glitterworld
  • corn
  • hops
  • rice
  • milk
  • rose
  • dandelions
  • daylily
  • buildingmat (used to represent building materials -- steel, wood, plasteel, etc -- as a group)
Textiles
  • alpaca wool
  • bison wool
  • cloth
  • devilstrand
  • fabrics
  • hyperweave
  • leathers
  • megasloth wool
  • muffalo wool
  • sheep wool
  • synthread
  • bearskin
  • birdskin
  • bluefur
  • camelhide
  • chinchilla fur
  • dog leather
  • elephant leather
  • foxfur
  • guinea pig fur
  • heavy fur
  • human leather
  • lightleather
  • lizardskin
  • panthera fur
  • patchleather
  • pigskin
  • plainleather
  • rhinoceros leather
  • thrumbofur
  • wolfskin


List of deprecated types
  • metal (superseded by: steel)
  • uran (superseded by: uranium)
  • med (superseded by: medicine)
  • muffalo (superseded by: bmeat)
  • boomrat (superseded by: smeat)
  • squirell (sic) (superseded by:smeat)
  • missile (does not exist in vanilla)
  • arctic foxskin
  • arctic wolfskin
  • beaverskin (superseded by: lightleather)
  • boomalope leather (superseded by: plainleather)
  • boomrat leather (superseded by: lightleather)
  • capybaraskin (superseded by: lightleather)
  • carribou leather (superseded by: plainleather)
  • cassowary leather
  • catskin (superseded by: lightleather)
  • cobraskin
  • cougarskin
  • cowskin (superseded by: plainleather)
  • deerhide (superseded by: plainleather)
  • dromedary leather
  • elephant skin
  • elkhide
  • emu leather
  • fennec foxskin
  • gazelle leather (superseded by: plainleather)
  • goathide
  • hare leather (superseded by: lightleather)
  • husky fur
  • iguana skin
  • labrador fur
  • lynxskin
  • ostrich leather
  • pantherskin
  • polarbearskin
  • raccoon leather
  • rat leather
  • red foxskin
  • rhinohide
  • snowhare leather (superseded by: lightleather)
  • squirrelskin (superseded by: lightleather)
  • monkeyhide
  • muffalo leather
  • timber wolfskin
  • tortoise leather
  • turkey leather
  • warg fur
  • yorkieskin
  • camelhair
  • megatherium wool

Examples

Just an icon: Steel

{{icon|metal}}

Icon with quantity: Potato 10

{{icon|potato|10}}

Bigger icon with quantity: Silver 250

{{icon|silver|250|32}} (size is in pixels)
Everything Available

16 px (default):

Wood Steel File:Plasteel.png Cloth Devilstrand Cloth Synthread Hyperweave Stone Silver Gold Uranium Potato Agave Berries Meat big Meat small Meat human Muffalo meat File:Nutrient paste meal.png File:Simple meal.png Fine meal Lavish meal File:Packaged Survival Meal.png Shell Rock chunk Steel slag chunk Component Advanced component Herbal medicine File:Medicine.png Glitterworld medicine Corn Hops Rice Milk Rose Dandelions Daylily Building Material (steel, wood, plasteel, etc.)


Alpaca wool Bison wool Cloth Devilstrand Cloth Fabrics Hyperweave Leathers Megasloth wool Muffalo wool Sheep wool Synthread Bearskin Birdskin Bluefur Camelhide Chinchilla fur Dog leather Elephant leather Foxfur Guinea pig fur Heavy fur Human leather Lightleather Lizardskin Panthera fur Patchleather Pigskin Plainleather Rhinoceros leather Thrumbofur Wolfskin


32 px:

Wood Steel File:Plasteel.png Cloth Devilstrand Cloth Synthread Hyperweave Stone Silver Gold Uranium Potato Agave Berries Meat big Meat small Meat human Muffalo meat File:Nutrient paste meal.png File:Simple meal.png Fine meal Lavish meal File:Packaged Survival Meal.png Shell Rock chunk Steel slag chunk Component Advanced component Herbal medicine File:Medicine.png Glitterworld medicine Corn Hops Rice Milk Rose Dandelions Daylily Building Material (steel, wood, plasteel, etc.)


Alpaca wool Bison wool Cloth Devilstrand Cloth Fabrics Hyperweave Leathers Megasloth wool Muffalo wool Sheep wool Synthread Bearskin Birdskin Bluefur Camelhide Chinchilla fur Dog leather Elephant leather Foxfur Guinea pig fur Heavy fur Human leather Lightleather Lizardskin Panthera fur Patchleather Pigskin Plainleather Rhinoceros leather Thrumbofur Wolfskin


Without a parameter

Using the template without any parameters will simply generate a icon, without anything other text.

Render and link

  • Template will not generate a link, and will not be linkable (neither the text, nor the icon).
  • However, mousing over the template will create a hover text with the full English rendering, for readability:
Steel | class="text-right" | Metal
Steel 1 | class="text-right" | 1 Metal
Steel 5 | class="text-right" |5 Metal