Difference between revisions of "Template:Icon"
Theaetetus (talk | contribs) m (plural -> singular) |
Theaetetus (talk | contribs) (Oh, I see. We're programatically making plural when {{{2|}}}>1. Fixing several then.) |
||
Line 1: | Line 1: | ||
<onlyinclude><span {{#if:{{{1|}}}|style="white-space:nowrap;" <nowiki />}} title="{{#if:{{{1|}}}|{{#switch:{{{1}}}|<!-- | <onlyinclude><span {{#if:{{{1|}}}|style="white-space:nowrap;" <nowiki />}} title="{{#if:{{{1|}}}|{{#switch:{{{1}}}|<!-- | ||
− | --> wood = Wood | + | --> wood = Wood"> [[File:Wood Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Wood|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> steel = Steel | + | --> steel = Steel"> [[File:Metal Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Steel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> plasteel = Plasteel | + | --> plasteel = Plasteel"> [[File:Plasteel.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Plasteel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> cloth = Cloth | + | --> cloth = Cloth"> [[File:Cloth.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Cloth|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> devilstrand = Devilstrand Cloth | + | --> devilstrand = Devilstrand Cloth"> [[File:Devilstrand_Cloth.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Devilstrand Cloth|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> synthread = Synthread{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Synthread.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Synthread|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> synthread = Synthread{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Synthread.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Synthread|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> hyperweave = Hyperweave{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Hyperweave.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Hyperweave|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> hyperweave = Hyperweave{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Hyperweave.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Hyperweave|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
Line 12: | Line 12: | ||
--> uranium = Uranium"> [[File:Uranium Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Uranium|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> uranium = Uranium"> [[File:Uranium Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Uranium|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> potato = Potato{{#switch: {{{2|}}}|= |1= |es}}"> [[File:Food Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Potato|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> potato = Potato{{#switch: {{{2|}}}|= |1= |es}}"> [[File:Food Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Potato|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | --> agave = Agave | + | --> agave = Agave"> [[File:AgaveFruit.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Agave|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> berries = | + | --> berries = Berr{{#switch: {{{2|}}}|=y |1= |ies}}"> [[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|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> 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|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> 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|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> hmeat = Human meat"> [[File:MeatHuman.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Meat human|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | --> npaste = Nutrient paste meal"> [[File:NutrientPaste.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Nutrient paste meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> npaste = Nutrient paste meal{{#switch: {{{2|}}}|= |1= |s}}"> [[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|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> simple = Simple meal{{#switch: {{{2|}}}|= |1= |s}}"> [[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|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> fine = Fine meal{{#switch: {{{2|}}}|= |1= |s}}"> [[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|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> lavish = Lavish meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Lavish.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lavish meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> survival = Packaged survival meal"> [[File:Packaged Survival Meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Packaged survival meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> survival = Packaged survival meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Packaged Survival Meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Packaged survival meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> shell = Shell{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Shell Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Shell|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> shell = Shell{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Shell Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Shell|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | --> debris = Rock chunk"> [[File:RockLowA.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Rock chunk|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> debris = Rock chunk{{#switch: {{{2|}}}|= |1= |s}}"> [[File:RockLowA.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Rock chunk|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> slag = Slag chunk"> [[File:MetalDebrisA.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Steel slag chunk|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> slag = Slag chunk{{#switch: {{{2|}}}|= |1= |s}}"> [[File:MetalDebrisA.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Steel slag chunk|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> component = Component"> [[File:Component.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Component|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> component = Component"> [[File:Component.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Component|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> herbal = Herbal Medicine"> [[File:Herbal Medicine.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Herbal Medicine|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> herbal = Herbal Medicine"> [[File:Herbal Medicine.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Herbal Medicine|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> medicine = Medicine"> [[File:Medicine Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Medicine|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> medicine = Medicine"> [[File:Medicine Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Medicine|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> glitterworld = Glitterworld Medicine"> [[File:Glitterworld Medicine.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Glitterworld Medicine|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> glitterworld = Glitterworld Medicine"> [[File:Glitterworld Medicine.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Glitterworld Medicine|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | --> corn = Corn | + | --> corn = Corn"> [[File:Corn Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Corn|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> hops = Hops | + | --> hops = Hops"> [[File:Hops Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Hops|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> rice = Rice | + | --> rice = Rice"> [[File:Rice Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Rice|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> milk = Milk | + | --> milk = Milk"> [[File:Milk.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Milk|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> | + | --> buildingmat = Building Material{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Buildingmats.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Building Material (steel, wood, plasteel, etc.)|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
DEPRECATED TYPES BELOW. ONLY KEPT FOR COMPATIBILITY. DO NOT USE. | DEPRECATED TYPES BELOW. ONLY KEPT FOR COMPATIBILITY. DO NOT USE. | ||
− | --> metal = Steel | + | --> metal = Steel"> [[File:Metal Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Steel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> uran = Uranium"> [[File:Uranium Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Uranium|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> 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=Medikit|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> med = Medikit{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Medicine Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Medikit|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
Revision as of 02:15, 24 July 2016
<span title="
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):
File:Wood Icon.png File:Metal Icon.png File:Plasteel.png File:Silver Icon.png File:Uranium Icon.png 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 File:Packaged Survival Meal.png File:Shell Icon.png <span style="white-space:nowrap;" title=" File:Herbal Medicine.png File:Medicine Icon.png File:Glitterworld Medicine.png File:Corn Icon.png File:Hops Icon.png File:Rice 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="
32 px:
File:Wood Icon.png File:Metal Icon.png File:Plasteel.png File:Silver Icon.png File:Uranium Icon.png 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 File:Packaged Survival Meal.png File:Shell Icon.png <span style="white-space:nowrap;" title=" File:Herbal Medicine.png File:Medicine Icon.png File:Glitterworld Medicine.png File:Corn Icon.png File:Hops Icon.png File:Rice 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="
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 | class="text-right" | Metal | |
File:Metal Icon.png 1 | class="text-right" | 1 Metal | |
File:Metal Icon.png 5 | class="text-right" |5 Metal |