Difference between revisions of "Template:Icon"
m |
m |
||
Line 1: | Line 1: | ||
<includeonly><span {{#if:{{{1|}}}|style="white-space:nowrap;" <nowiki />}} title="{{#if:{{{1|}}}| <nowiki />{{#switch:{{{1}}}|<!-- | <includeonly><span {{#if:{{{1|}}}|style="white-space:nowrap;" <nowiki />}} title="{{#if:{{{1|}}}| <nowiki />{{#switch:{{{1}}}|<!-- | ||
− | --> metal = Metal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Metal Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Metal]]|<!-- | + | --> metal = Metal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Metal Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Metal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> stone = Stone{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Stone Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Stone | + | --> stone = Stone{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Stone Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Stone|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> silver = Silver"> [[File:Silver Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Silver| | + | --> silver = Silver"> [[File:Silver Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Silver|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> potato = Potato{{#switch: {{{2|}}}|= |1= |es}}"> [[File:Food Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Potato | + | --> potato = Potato{{#switch: {{{2|}}}|= |1= |es}}"> [[File:Food Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Potato|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> agave = Agave{{#switch: {{{2|}}}|= |1= |s}}"> [[File:AgaveFruit.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Agave]]|<!-- | + | --> agave = Agave{{#switch: {{{2|}}}|= |1= |s}}"> [[File:AgaveFruit.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Agave|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> berries = Berrie{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Berries.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Berries | + | --> berries = Berrie{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Berries.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Berries|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> bmeat = Big meat"> [[File:MeatBig.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat big]]|<!-- | + | --> bmeat = Big meat"> [[File:MeatBig.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat big|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> smeat = Small meat"> [[File:MeatSmall.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat small | + | --> smeat = Small meat"> [[File:MeatSmall.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat small|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> hmeat = Human meat"> [[File:MeatHuman.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat human]]|<!-- | + | --> hmeat = Human meat"> [[File:MeatHuman.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat human|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> muffalo = Muffalo meat"> [[File:MeatBig.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Muffalo meat | + | --> muffalo = Muffalo meat"> [[File:MeatBig.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Muffalo meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> boomrat = Boomrat meat"> [[File:MeatSmall.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Boomrat meat]]|<!-- | + | --> boomrat = Boomrat meat"> [[File:MeatSmall.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Boomrat meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> squirell = Squirell meat"> [[File:MeatSmall.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Squirell meat | + | --> squirell = Squirell meat"> [[File:MeatSmall.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Squirell meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> npaste = Nutrient paste meal"> [[File:NutrientPaste.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Nutrient paste meal]]|<!-- | + | --> npaste = Nutrient paste meal"> [[File:NutrientPaste.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Nutrient paste meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> simple = Simple meal"> [[File:Simple.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Simple meal | + | --> simple = Simple meal"> [[File:Simple.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Simple meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> fine = Fine meal"> [[File:Fine.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Fine meal]]|<!-- | + | --> fine = Fine meal"> [[File:Fine.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Fine meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> lavish = Lavish meal"> [[File:Lavish.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lavish meal | + | --> lavish = Lavish meal"> [[File:Lavish.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lavish meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> uran = Uranium"> [[File:Uranium Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Uranium]]|<!-- | + | --> uran = Uranium"> [[File:Uranium Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Uranium|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> med = Medikit{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Medicine Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Silver | + | --> med = Medikit{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Medicine Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Silver|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> shell = Shell{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Shell Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Silver]]|<!-- | + | --> shell = Shell{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Shell Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Silver|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> missle = Missle{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Missle Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Silver]]|<!-- | + | --> missle = Missle{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Missle Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Silver|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> }}}} {{#if:{{{2|}}}|{{{2|}}}}}</span></includeonly> | --> }}}} {{#if:{{{2|}}}|{{{2|}}}}}</span></includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 07:36, 27 February 2014
Template:Icon has been deprecated or removed from the wiki; it is no longer updated or in use. Reason: Replaced by Template:Icon Small |
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: File:Metal Icon.png
{{icon|metal}}
Icon with quantity: File:Food Icon.png 10
{{icon|potato|10}}
Bigger icon with quantity: File:Silver Icon.png 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=" File:Silver Icon.png <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" File:Food Icon.png File:AgaveFruit.png File:MeatBig.png File:MeatSmall.png File:MeatHuman.png File:MeatBig.png File:NutrientPaste.png File:Simple.png File:Fine.png File:Lavish.png <span style="white-space:nowrap;" title=" File:Shell Icon.png <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=" File:Silver Icon.png <span style="white-space:nowrap;" title=" <span style="white-space:nowrap;" title=" File:Food Icon.png File:AgaveFruit.png File:MeatBig.png File:MeatSmall.png File:MeatHuman.png File:MeatBig.png File:NutrientPaste.png File:Simple.png File:Fine.png File:Lavish.png <span style="white-space:nowrap;" title=" File:Shell Icon.png <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:
File:Metal Icon.png | Metal |
File:Metal Icon.png 1 | 1 Metal |
File:Metal Icon.png 5 | 5 Metal |