Template:Icon

From RimWorld Wiki
Revision as of 21:40, 4 January 2018 by Jimyoda (talk | contribs) (Typo fix.)
Jump to navigation Jump to search

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: style="white-space:nowrap;" title="Steel"> File:Metal Icon.png

{{icon|metal}}

Icon with quantity: style="white-space:nowrap;" title="Potatoes"> File:Food Icon.png 10

{{icon|potato|10}}

Bigger icon with quantity: style="white-space:nowrap;" title="Silver"> File:Silver Icon.png 250

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

16 px (default):

style="white-space:nowrap;" title="Wood"> File:Wood Icon.png style="white-space:nowrap;" title="Steel"> File:Metal Icon.png style="white-space:nowrap;" title="Plasteel"> File:Plasteel.png style="white-space:nowrap;" title="Cloth"> Cloth style="white-space:nowrap;" title="Devilstrand Cloth"> Devilstrand Cloth style="white-space:nowrap;" title="Synthread"> Synthread style="white-space:nowrap;" title="Hyperweave"> Hyperweave style="white-space:nowrap;" title="Stone"> Stone style="white-space:nowrap;" title="Silver"> File:Silver Icon.png style="white-space:nowrap;" title="Gold"> Gold style="white-space:nowrap;" title="Uranium"> File:Uranium Icon.png style="white-space:nowrap;" title="Potato"> File:Food Icon.png style="white-space:nowrap;" title="Agave"> File:AgaveFruit.png style="white-space:nowrap;" title="Berry"> Berries style="white-space:nowrap;" title="Big meat"> File:MeatBig.png style="white-space:nowrap;" title="Small meat"> File:MeatSmall.png style="white-space:nowrap;" title="Human meat"> File:MeatHuman.png style="white-space:nowrap;" title="Muffalo meat"> File:MeatBig.png style="white-space:nowrap;" title="Nutrient paste meal"> File:NutrientPaste.png style="white-space:nowrap;" title="Simple meal"> File:Simple meal.png style="white-space:nowrap;" title="Fine meal"> File:Fine meal.png style="white-space:nowrap;" title="Lavish meal"> File:Lavish meal.png style="white-space:nowrap;" title="Packaged survival meal"> File:Packaged Survival Meal.png style="white-space:nowrap;" title="Shell"> File:Shell Icon.png style="white-space:nowrap;" title="Rock chunk"> Rock chunk style="white-space:nowrap;" title="Slag chunk"> Steel slag chunk style="white-space:nowrap;" title="Component"> Component style="white-space:nowrap;" title="Advanced component"> Advanced component style="white-space:nowrap;" title="Herbal Medicine"> File:Herbal Medicine.png style="white-space:nowrap;" title="Medicine"> File:Medicine Icon.png style="white-space:nowrap;" title="Glitterworld Medicine"> File:Glitterworld Medicine.png style="white-space:nowrap;" title="Corn"> File:Corn Icon.png style="white-space:nowrap;" title="Hops"> File:Hops Icon.png style="white-space:nowrap;" title="Rice"> File:Rice Icon.png style="white-space:nowrap;" title="Milk"> Milk style="white-space:nowrap;" title="Rose"> Rose style="white-space:nowrap;" title="Dandelions"> File:Dandelions.png style="white-space:nowrap;" title="Daylily"> File:Daylily.png style="white-space:nowrap;" title="Building Material (steel, wood, plasteel, etc.)"> Building Material (steel, wood, plasteel, etc.)


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


32 px:

style="white-space:nowrap;" title="Wood"> File:Wood Icon.png style="white-space:nowrap;" title="Steel"> File:Metal Icon.png style="white-space:nowrap;" title="Plasteel"> File:Plasteel.png style="white-space:nowrap;" title="Cloth"> Cloth style="white-space:nowrap;" title="Devilstrand Cloth"> Devilstrand Cloth style="white-space:nowrap;" title="Synthread"> Synthread style="white-space:nowrap;" title="Hyperweave"> Hyperweave style="white-space:nowrap;" title="Stone"> Stone style="white-space:nowrap;" title="Silver"> File:Silver Icon.png style="white-space:nowrap;" title="Gold"> Gold style="white-space:nowrap;" title="Uranium"> File:Uranium Icon.png style="white-space:nowrap;" title="Potato"> File:Food Icon.png style="white-space:nowrap;" title="Agave"> File:AgaveFruit.png style="white-space:nowrap;" title="Berry"> Berries style="white-space:nowrap;" title="Big meat"> File:MeatBig.png style="white-space:nowrap;" title="Small meat"> File:MeatSmall.png style="white-space:nowrap;" title="Human meat"> File:MeatHuman.png style="white-space:nowrap;" title="Muffalo meat"> File:MeatBig.png style="white-space:nowrap;" title="Nutrient paste meal"> File:NutrientPaste.png style="white-space:nowrap;" title="Simple meal"> File:Simple meal.png style="white-space:nowrap;" title="Fine meal"> File:Fine meal.png style="white-space:nowrap;" title="Lavish meal"> File:Lavish meal.png style="white-space:nowrap;" title="Packaged survival meal"> File:Packaged Survival Meal.png style="white-space:nowrap;" title="Shell"> File:Shell Icon.png style="white-space:nowrap;" title="Rock chunk"> Rock chunk style="white-space:nowrap;" title="Slag chunk"> Steel slag chunk style="white-space:nowrap;" title="Component"> Component style="white-space:nowrap;" title="Advanced component"> Advanced component style="white-space:nowrap;" title="Herbal Medicine"> File:Herbal Medicine.png style="white-space:nowrap;" title="Medicine"> File:Medicine Icon.png style="white-space:nowrap;" title="Glitterworld Medicine"> File:Glitterworld Medicine.png style="white-space:nowrap;" title="Corn"> File:Corn Icon.png style="white-space:nowrap;" title="Hops"> File:Hops Icon.png style="white-space:nowrap;" title="Rice"> File:Rice Icon.png style="white-space:nowrap;" title="Milk"> Milk style="white-space:nowrap;" title="Rose"> Rose style="white-space:nowrap;" title="Dandelions"> File:Dandelions.png style="white-space:nowrap;" title="Daylily"> File:Daylily.png style="white-space:nowrap;" title="Building Material (steel, wood, plasteel, etc.)"> Building Material (steel, wood, plasteel, etc.)


style="white-space:nowrap;" title="Alpaca wool"> File:Alpaca wool.png style="white-space:nowrap;" title=" style="white-space:nowrap;" title="Cloth"> Cloth style="white-space:nowrap;" title="Devilstrand Cloth"> Devilstrand Cloth style="white-space:nowrap;" title="Fabrics"> File:Fabrics.png style="white-space:nowrap;" title="Hyperweave"> Hyperweave style="white-space:nowrap;" title="Leathers"> Leathers style="white-space:nowrap;" title=" style="white-space:nowrap;" title="Muffalo wool"> File:Muffalo wool.png style="white-space:nowrap;" title=" style="white-space:nowrap;" title="Synthread"> Synthread style="white-space:nowrap;" title="Bearskin"> Bearskin style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title="Chinchilla fur"> File:Chinchilla fur.png style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title="Human leather"> Human leather style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title="Pigskin"> Pigskin style="white-space:nowrap;" title=" style="white-space:nowrap;" title=" style="white-space:nowrap;" title="Thrumbofur"> Thrumbofur 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:
style="white-space:nowrap;" title="Steel"> File:Metal Icon.png | class="text-right" | Metal
style="white-space:nowrap;" title="Steel"> File:Metal Icon.png 1 | class="text-right" | 1 Metal
style="white-space:nowrap;" title="Steel"> File:Metal Icon.png 5 | class="text-right" |5 Metal