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, ...")
 
m
Line 2: Line 2:
 
== Usage ==
 
== Usage ==
 
<pre>{{icon  
 
<pre>{{icon  
| type (metal/stone/silver/food..) - used for icon  
+
| type (metal/stone/silver/potato/agave/berries/bmeat/smeat/hmeat/...) - used for icon  
 
| amount  
 
| amount  
 
| image size (optional, 16px resize by default)
 
| image size (optional, 16px resize by default)
 
}}</pre>
 
}}</pre>
 +
{{icon|metal|}}{{icon|stone|}}{{icon|silver|}}{{icon|potato|}}{{icon|agave|}}{{icon|berries|}}{{icon|bmeat|}}{{icon|smeat|}}{{icon|hmeat|}}{{icon|npaste|}}{{icon|simple|}}{{icon|fine|}}{{icon|lavish|}}
  
 
== Without a parameter ==
 
== Without a parameter ==
Line 13: Line 14:
 
*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|1}}
+
| {{icon|metal|}} | class="text-right" | Metal
| 1 Metal
 
 
|-
 
|-
! {{icon|metal|5}}
+
| {{icon|metal|1}} | class="text-right" | 1 Metal
| 5 Metal
+
|-
 +
| {{icon|metal|5}} | class="text-right" |5 Metal
 
|}
 
|}

Revision as of 22:06, 25 February 2014

A minimalist helper template to quickly create a resource icon.

Usage

{{icon 
| type (metal/stone/silver/potato/agave/berries/bmeat/smeat/hmeat/...) - used for icon 
| amount 
| image size (optional, 16px resize by default)
}}

Steel Stone Silver Potato Agave Berries Meat big Meat small Meat human Nutrient paste meal Simple meal Fine meal Lavish meal

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