Difference between revisions of "Template:Icon"

From RimWorld Wiki
Jump to navigation Jump to search
(added the stones and jade)
(added all leathers)
Line 43: Line 43:
 
--> dandelions= Dandelions{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Dandelions.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Dandelions|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> dandelions= Dandelions{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Dandelions.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Dandelions|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> daylily= Daylily{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Daylily.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Daylily|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> daylily= Daylily{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Daylily.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Daylily|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> alpaca wool = Alpaca wool"> [[File:Alpaca wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Alpaca wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> alpacahide = Alpacahide"> [[File:Alpacahide.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Alpacahide|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> arctic foxskin = Arctic foxskin"> [[File:Arctic foxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Arctic foxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> arctic wolfskin = Arctic wolfskin"> [[File:Arctic wolfskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Arctic wolfskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> bearskin = Bearskin"> [[File:Bearskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Bearskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> beaverskin = Beaverskin"> [[File:Beaverskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Beaverskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> boomalope leather = Boomalope leather"> [[File:Boomalope leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Boomalope leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> boomrat leather = Boomrat leather"> [[File:Boomrat leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Boomrat leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> camelhair = Camelhair"> [[File:Camelhair.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Camelhair|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> capybaraskin = Capybaraskin"> [[File:Capybaraskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Capybaraskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> carribou leather = Carribou leather"> [[File:Carribou leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Carribou leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> cassowary leather = Cassowary leather"> [[File:Cassowary leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Cassowary leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> catskin = Catskin"> [[File:Catskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Catskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> chinchilla fur = Chinchilla fur"> [[File:Chinchilla fur.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Chinchilla fur|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> cloth = Cloth"> [[File:Cloth.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Cloth|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> cobraskin = Cobraskin"> [[File:Cobraskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Cobraskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> cougarskin = Cougarskin"> [[File:Cougarskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Cougarskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> cowskin = Cowskin"> [[File:Cowskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Cowskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> deerhide = Deerhide"> [[File:Deerhide.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Deerhide|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> devilstrand = Devilstrand"> [[File:Devilstrand.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Devilstrand|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> dromedary leather = Dromedary leather"> [[File:Dromedary leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Dromedary leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> elephant skin = Elephant skin"> [[File:Elephant skin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Elephant skin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> elkhide = Elkhide"> [[File:Elkhide.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Elkhide|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> emu leather = Emu leather"> [[File:Emu leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Emu leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> fabrics = Fabrics"> [[File:Fabrics.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Fabrics|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> fennec foxskin = Fennec foxskin"> [[File:Fennec foxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Fennec foxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> gazelle leather = Gazelle leather"> [[File:Gazelle leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Gazelle leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> goathide = Goathide"> [[File:Goathide.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Goathide|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> hare leather = Hare leather"> [[File:Hare leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Hare leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> human leather = Human leather"> [[File:Human leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Human leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> husky fur = Husky fur"> [[File:Husky fur.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Husky fur|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> hyperweave = Hyperweave"> [[File:Hyperweave.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Hyperweave|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> iguana skin = Iguana skin"> [[File:Iguana skin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Iguana skin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> labrador fur = Labrador fur"> [[File:Labrador fur.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Labrador fur|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> leathers = Leathers"> [[File:Leathers.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Leathers|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> lynxskin = Lynxskin"> [[File:Lynxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lynxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> megatherium leather = Megatherium leather"> [[File:Megatherium leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Megatherium leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> megatherium wool = Megatherium wool"> [[File:Megatherium wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Megatherium wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> monkeyhide = Monkeyhide"> [[File:Monkeyhide.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Monkeyhide|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> muffalo leather = Muffalo leather"> [[File:Muffalo leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Muffalo leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> muffalo wool = Muffalo wool"> [[File:Muffalo wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Muffalo wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> ostrich leather = Ostrich leather"> [[File:Ostrich leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Ostrich leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> pantherskin = Pantherskin"> [[File:Pantherskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Pantherskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> pigskin = Pigskin"> [[File:Pigskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Pigskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> polarbearskin = Polarbearskin"> [[File:Polarbearskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Polarbearskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> raccoon leather = Raccoon leather"> [[File:Raccoon leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Raccoon leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> rat leather = Rat leather"> [[File:Rat leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Rat leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> red foxskin = Red foxskin"> [[File:Red foxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Red foxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> rhinohide = Rhinohide"> [[File:Rhinohide.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Rhinohide|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> snowhare leather = Snowhare leather"> [[File:Snowhare leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Snowhare leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> squirrelskin = Squirrelskin"> [[File:Squirrelskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Squirrelskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> synthread = Synthread"> [[File:Synthread.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Synthread|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> thrumbofur = Thrumbofur"> [[File:Thrumbofur.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Thrumbofur|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> timber wolfskin = Timber wolfskin"> [[File:Timber wolfskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Timber wolfskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> tortoise leather = Tortoise leather"> [[File:Tortoise leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Tortoise leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> turkey leather = Turkey leather"> [[File:Turkey leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Turkey leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> warg fur = Warg fur"> [[File:Warg fur.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Warg fur|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
--> yorkieskin = Yorkieskin"> [[File:Yorkieskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Yorkieskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 +
 
DEPRECATED TYPES BELOW. ONLY KEPT FOR COMPATIBILITY. DO NOT USE.
 
DEPRECATED TYPES BELOW. ONLY KEPT FOR COMPATIBILITY. DO NOT USE.
 
--> metal = Steel"> [[File:Metal Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Steel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--
 
--> metal = Steel"> [[File:Metal Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Steel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!--

Revision as of 04:29, 28 December 2016

<span title="

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: File:Metal Icon.png

{{icon|metal}}

Icon with quantity: File:Food Icon.png 10

{{icon|potato|10}}

Bigger icon with quantity: File:Silver Icon.png 250

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

16 px (default):

File:Wood Icon.png File:Metal Icon.png File:Plasteel.png Cloth Devilstrand Cloth Synthread Hyperweave Stone File:Silver Icon.png Gold File:Uranium Icon.png File:Food Icon.png File:AgaveFruit.png Berries File:MeatBig.png File:MeatSmall.png File:MeatHuman.png File:MeatBig.png File:NutrientPaste.png File:Simple.png File:Fine.png File:Lavish.png File:Packaged Survival Meal.png File:Shell Icon.png Rock chunk Steel slag chunk Component <span style="white-space:nowrap;" title=" File:Herbal Medicine.png File:Medicine Icon.png File:Glitterworld Medicine.png File:Corn Icon.png File:Hops Icon.png File:Rice Icon.png Milk Rose File:Dandelions.png File:Daylily.png Building Material (steel, wood, plasteel, etc.)


File:Alpaca wool.png <span style="white-space:nowrap;" title=" Cloth Devilstrand Cloth File:Fabrics.png Hyperweave Leathers <span style="white-space:nowrap;" title=" File:Muffalo wool.png <span style="white-space:nowrap;" title=" Synthread Bearskin <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" File:Chinchilla fur.png <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" Human leather <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" Pigskin <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" Thrumbofur <span style="white-space:nowrap;" title="


32 px:

File:Wood Icon.png File:Metal Icon.png File:Plasteel.png Cloth Devilstrand Cloth Synthread Hyperweave Stone File:Silver Icon.png Gold File:Uranium Icon.png File:Food Icon.png File:AgaveFruit.png Berries File:MeatBig.png File:MeatSmall.png File:MeatHuman.png File:MeatBig.png File:NutrientPaste.png File:Simple.png File:Fine.png File:Lavish.png File:Packaged Survival Meal.png File:Shell Icon.png Rock chunk Steel slag chunk Component <span style="white-space:nowrap;" title=" File:Herbal Medicine.png File:Medicine Icon.png File:Glitterworld Medicine.png File:Corn Icon.png File:Hops Icon.png File:Rice Icon.png Milk Rose File:Dandelions.png File:Daylily.png Building Material (steel, wood, plasteel, etc.)


File:Alpaca wool.png <span style="white-space:nowrap;" title=" Cloth Devilstrand Cloth File:Fabrics.png Hyperweave Leathers <span style="white-space:nowrap;" title=" File:Muffalo wool.png <span style="white-space:nowrap;" title=" Synthread Bearskin <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" File:Chinchilla fur.png <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" Human leather <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" Pigskin <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" Thrumbofur <span style="white-space:nowrap;" title="


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:
File:Metal Icon.png | class="text-right" | Metal
File:Metal Icon.png 1 | class="text-right" | 1 Metal
File:Metal Icon.png 5 | class="text-right" |5 Metal