Difference between revisions of "Template:Icon/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(+buildingmats param)
m (→‎Usage: Typos)
Line 44: Line 44:
 
*rice
 
*rice
 
*milk
 
*milk
*buildingmats (used to represent building materials -- steel, wood, plasteel, etc -- as a group)
+
*buildingmat (used to represent building materials -- steel, wood, plasteel, etc -- as a group)
  
 
===== List of deprecated types =====
 
===== List of deprecated types =====
Line 69: Line 69:
 
'''16 px (default):'''
 
'''16 px (default):'''
  
{{icon|wood}}{{icon|metal}}{{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|missile}}{{icon|debris}}{{icon|slag}}{{icon|component}}{{icon|herbal}}{{icon|medicine}}{{icon|glitterworld}}{{icon|corn}}{{icon|hops}}{{icon|rice}}{{icon|milk}}{{icon|buildingmats}}
+
{{icon|wood}}{{icon|metal}}{{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|missile}}{{icon|debris}}{{icon|slag}}{{icon|component}}{{icon|herbal}}{{icon|medicine}}{{icon|glitterworld}}{{icon|corn}}{{icon|hops}}{{icon|rice}}{{icon|milk}}{{icon|buildingmat}}
  
 
'''32 px:'''
 
'''32 px:'''
  
{{icon|wood||32}}{{icon|metal||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|missile||32}}{{icon|debris||32}}{{icon|slag||32}}{{icon|component||32}}{{icon|herbal||32}}{{icon|medicine||32}}{{icon|glitterworld||32}}{{icon|corn||32}}{{icon|hops||32}}{{icon|rice||32}}{{icon|milk||32}}{{icon|buildingmats||32}}
+
{{icon|wood||32}}{{icon|metal||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|missile||32}}{{icon|debris||32}}{{icon|slag||32}}{{icon|component||32}}{{icon|herbal||32}}{{icon|medicine||32}}{{icon|glitterworld||32}}{{icon|corn||32}}{{icon|hops||32}}{{icon|rice||32}}{{icon|milk||32}}{{icon|buildingmat||32}}
  
 
== Without a parameter ==
 
== Without a parameter ==

Revision as of 02:40, 30 July 2016

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
  • herbal
  • medicine
  • glitterworld
  • corn
  • hops
  • rice
  • milk
  • buildingmat (used to represent building materials -- steel, wood, plasteel, etc -- as a group)
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)

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 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 Missile Rock chunk Steel slag chunk Component Herbal medicine Medicine Glitterworld medicine Corn Hops Rice Milk Building Material (steel, wood, plasteel, etc.)

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 Missile Rock chunk Steel slag chunk Component Herbal medicine Medicine Glitterworld medicine Corn Hops Rice Milk Building Material (steel, wood, plasteel, etc.)

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