Difference between revisions of "Template:Icon/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "A minimalist helper template to quickly create a resource icon. == Usage == <pre>{{icon | type (metal/stone/silver/food..) - used for icon | amount | image size (optional, ...")
 
(Marked as obsolete)
 
(26 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 +
{{Obsolete|reason=Replaced by [[Template:Icon Small]]}}
 
A minimalist helper template to quickly create a resource icon.
 
A minimalist helper template to quickly create a resource icon.
 +
 
== Usage ==
 
== Usage ==
 
<pre>{{icon  
 
<pre>{{icon  
| type (metal/stone/silver/food..) - used for icon
+
| type (metal/plasteel/cloth/etc) <-- determines image displayed and sets alt text
 
| amount  
 
| amount  
 
| image size (optional, 16px resize by default)
 
| image size (optional, 16px resize by default)
 +
| image position (optional, use default settings)
 
}}</pre>
 
}}</pre>
 +
 +
===== 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 ======
 +
{{collapse|
 +
*  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)</pre>
 +
 +
* 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: {{icon|metal}}
 +
<pre>{{icon|metal}}</pre>
 +
 +
Icon with quantity: {{icon|potato|10}}
 +
<pre>{{icon|potato|10}}</pre>
 +
 +
Bigger icon with quantity: {{icon|silver|250|32}}
 +
<pre>{{icon|silver|250|32}} (size is in pixels)</pre>
 +
 +
===== Everything Available =====
 +
'''16 px (default):'''
 +
 +
{{icon|wood}}{{icon|steel}}{{icon|plasteel}}{{icon|cloth}}{{icon|devilstrand}}{{icon|synthread}}{{icon|hyperweave}}{{icon|stone}}{{icon|silver}}{{icon|gold}}{{icon|uranium}}{{icon|potato}}{{icon|agave}}{{icon|berries}}{{icon|bmeat}}{{icon|smeat}}{{icon|hmeat}}{{icon|muffalo}}{{icon|npaste}}{{icon|simple}}{{icon|fine}}{{icon|lavish}}{{icon|survival}}{{icon|shell}}{{icon|debris}}{{icon|slag}}{{icon|component}}{{icon|advcomponent}}{{icon|herbal}}{{icon|medicine}}{{icon|glitterworld}}{{icon|corn}}{{icon|hops}}{{icon|rice}}{{icon|milk}}{{icon|rose}}{{icon|dandelions}}{{icon|daylily}}{{icon|buildingmat}}
 +
 +
{{collapse|
 +
{{icon|alpaca wool}}{{icon|bison wool}}{{icon|cloth}}{{icon|devilstrand}}{{icon|fabrics}}{{icon|hyperweave}}{{icon|leathers}}{{icon|megasloth wool}}{{icon|muffalo wool}}{{icon|sheep wool}}{{icon|synthread}}{{icon|bearskin}}{{icon|birdskin}}{{icon|bluefur}}{{icon|camelhide}}{{icon|chinchilla fur}}{{icon|dog leather}}{{icon|elephant leather}}{{icon|foxfur}}{{icon|guinea pig fur}}{{icon|heavy fur}}{{icon|human leather}}{{icon|lightleather}}{{icon|lizardskin}}{{icon|panthera fur}}{{icon|patchleather}}{{icon|pigskin}}{{icon|plainleather}}{{icon|rhinoceros leather}}{{icon|thrumbofur}}{{icon|wolfskin}}
 +
}}
 +
 +
'''32 px:'''
 +
 +
{{icon|wood||32}}{{icon|steel||32}}{{icon|plasteel||32}}{{icon|cloth||32}}{{icon|devilstrand||32}}{{icon|synthread||32}}{{icon|hyperweave||32}}{{icon|stone||32}}{{icon|silver||32}}{{icon|gold||32}}{{icon|uranium||32}}{{icon|potato||32}}{{icon|agave||32}}{{icon|berries||32}}{{icon|bmeat||32}}{{icon|smeat||32}}{{icon|hmeat||32}}{{icon|muffalo||32}}{{icon|npaste||32}}{{icon|simple||32}}{{icon|fine||32}}{{icon|lavish||32}}{{icon|survival||32}}{{icon|shell||32}}{{icon|debris||32}}{{icon|slag||32}}{{icon|component||32}}{{icon|advcomponent||32}}{{icon|herbal||32}}{{icon|medicine||32}}{{icon|glitterworld||32}}{{icon|corn||32}}{{icon|hops||32}}{{icon|rice||32}}{{icon|milk||32}}{{icon|rose||32}}{{icon|dandelions||32}}{{icon|daylily||32}}{{icon|buildingmat||32}}
 +
 +
{{collapse|
 +
{{icon|alpaca wool||32}}{{icon|bison wool||32}}{{icon|cloth||32}}{{icon|devilstrand||32}}{{icon|fabrics||32}}{{icon|hyperweave||32}}{{icon|leathers||32}}{{icon|megasloth wool||32}}{{icon|muffalo wool||32}}{{icon|sheep wool||32}}{{icon|synthread||32}}{{icon|bearskin||32}}{{icon|birdskin||32}}{{icon|bluefur||32}}{{icon|camelhide||32}}{{icon|chinchilla fur||32}}{{icon|dog leather||32}}{{icon|elephant leather||32}}{{icon|foxfur||32}}{{icon|guinea pig fur||32}}{{icon|heavy fur||32}}{{icon|human leather||32}}{{icon|lightleather||32}}{{icon|lizardskin||32}}{{icon|panthera fur||32}}{{icon|patchleather||32}}{{icon|pigskin||32}}{{icon|plainleather||32}}{{icon|rhinoceros leather||32}}{{icon|thrumbofur||32}}{{icon|wolfskin||32}}
 +
||32}}
  
 
== Without a parameter ==
 
== Without a parameter ==
Line 13: Line 172:
 
*Template will not generate a link, and will not be linkable (neither the text, nor the icon).
 
*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:
 
*However, mousing over the template will create a '''hover text''' with the full English rendering, for readability:
{|  
+
{| {{STDT}}
! {{icon|metal|}}
+
! !!
| Metal
+
|-
 +
| {{icon|metal|}} | class="text-right" | Metal
 
|-
 
|-
! {{icon|metal|1}}
+
| {{icon|metal|1}} | class="text-right" | 1 Metal
| 1 Metal
 
 
|-
 
|-
! {{icon|metal|5}}
+
| {{icon|metal|5}} | class="text-right" |5 Metal
| 5 Metal
 
 
|}
 
|}

Latest revision as of 21:04, 7 June 2022

A minimalist helper template to quickly create a resource icon.

Usage[edit]

{{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[edit]
  • 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[edit]
  • 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[edit]
  • 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[edit]

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[edit]

16 px (default):

Wood Steel Plasteel Cloth Devilstrand Cloth Synthread Hyperweave Stone Silver Gold Uranium Potato Agave Berries Meat big Meat small Meat human Muffalo meat Nutrient paste meal Simple meal Fine meal Lavish meal Packaged survival meal Shell Rock chunk Steel slag chunk Component Advanced component Herbal medicine Medicine 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 Plasteel Cloth Devilstrand Cloth Synthread Hyperweave Stone Silver Gold Uranium Potato Agave Berries Meat big Meat small Meat human Muffalo meat Nutrient paste meal Simple meal Fine meal Lavish meal Packaged survival meal Shell Rock chunk Steel slag chunk Component Advanced component Herbal medicine Medicine 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[edit]

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

Render and link[edit]

  • 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