Difference between revisions of "Template:Icon"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 9: Line 9:
 
--> stone = Stone{{#ifeq:{{{2|1}}}|1||s}}"> [[File:Stone Icon.png|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Stone|top]]|<!--
 
--> stone = Stone{{#ifeq:{{{2|1}}}|1||s}}"> [[File:Stone Icon.png|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Stone|top]]|<!--
 
--> }}<nowiki />}} {{#if:{{{2|}}}|{{{2|}}}}}</span></includeonly>
 
--> }}<nowiki />}} {{#if:{{{2|}}}|{{{2|}}}}}</span></includeonly>
 +
<noinclude>
 +
{{{{BASEPAGENAME}}/doc}}
 +
[[Category:Templates|Main]]
 +
</noinclude>

Revision as of 20:54, 25 February 2014


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: 16px

{{icon|metal}}

Icon with quantity: <span style="white-space:nowrap;" title=" 10

{{icon|potato|10}}

Bigger icon with quantity: 32px 250

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

16 px (default):

<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=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" Stone 16px <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=" <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=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" 16px <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=" <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=" <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="


<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=" <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=" <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=" <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=" <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=" <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=" <span style="white-space:nowrap;" title="



32 px:

<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=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" Stone 32px <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=" <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=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" 32px <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=" <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=" <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="


<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=" <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=" <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=" <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=" <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=" <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=" <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:
16px Metal
16px 1 1 Metal
16px 5 5 Metal