Difference between revisions of "Template:Icon"
(Fixed shell icon.) |
m (Apparently there is a <span> error in here.) |
||
(5 intermediate revisions by 3 users not shown) | |||
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:{{lc:{{{1}}}}}|<!-- |
− | --> wood = Wood"> [[File:Wood | + | --> wood = Wood"> [[File:Wood.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Wood|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> steel = Steel"> [[File: | + | --> steel = Steel"> [[File:Steel.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Steel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> plasteel = Plasteel"> [[File:Plasteel.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Plasteel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> plasteel = Plasteel"> [[File:Plasteel.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Plasteel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> cloth = Cloth"> [[File:Cloth.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Cloth|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> cloth = Cloth"> [[File:Cloth.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Cloth|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
Line 8: | Line 8: | ||
--> 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|}}}}}]]|<!-- | ||
--> stone = Stone{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Stone Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Stone|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> 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 | + | --> silver = Silver"> [[File:Silver.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Silver|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> gold = Gold"> [[File:Gold.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Gold|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> gold = Gold"> [[File:Gold.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Gold|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | --> uranium = Uranium"> [[File:Uranium | + | --> uranium = Uranium"> [[File:Uranium.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Uranium|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> chemfuel = Chemfuel"> [[File:Chemfuel.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Chemfuel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> chemfuel = Chemfuel"> [[File:Chemfuel.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Chemfuel|{{#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|}}}}}]]|<!-- | ||
Line 18: | Line 18: | ||
--> 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{{#switch: {{{2|}}}|= |1= |s}}"> [[File: | + | --> npaste = Nutrient paste meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Nutrient paste meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Nutrient paste meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> simple = Simple meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Simple meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Simple meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> simple = Simple meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Simple meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Simple meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> fine = Fine meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Fine meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Fine meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> fine = Fine meal{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Fine meal.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Fine meal|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
Line 28: | Line 28: | ||
--> component = Component{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Component.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Component|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> component = Component{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Component.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Component|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> advcomponent = Advanced component{{#switch: {{{2|}}}|= |1= |s}}"> [[File:AdvancedComponent.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Advanced component|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> advcomponent = Advanced component{{#switch: {{{2|}}}|= |1= |s}}"> [[File:AdvancedComponent.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Advanced component|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | --> herbal = Herbal | + | --> herbal = Herbal medicine"> [[File:Herbal medicine.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Herbal medicine|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> medicine = Medicine"> [[File:Medicine | + | --> medicine = Medicine"> [[File:Medicine.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Medicine|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> glitterworld = Glitterworld | + | --> glitterworld = Glitterworld medicine"> [[File:Glitterworld medicine.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Glitterworld medicine|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> corn = Corn"> [[File:Corn Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Corn|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> corn = Corn"> [[File:Corn Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Corn|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> hops = Hops"> [[File:Hops Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Hops|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> hops = Hops"> [[File:Hops Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Hops|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
Line 46: | Line 46: | ||
--> daylily= Daylily{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Daylily.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Daylily|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> daylily= Daylily{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Daylily.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Daylily|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> alpaca wool = Alpaca wool"> [[File:Alpaca wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Alpaca wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> alpaca wool = Alpaca wool"> [[File:Alpaca wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Alpaca wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | |||
--> arctic foxskin = Arctic foxskin"> [[File:Arctic foxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Arctic foxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> arctic foxskin = Arctic foxskin"> [[File:Arctic foxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Arctic foxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> arctic wolfskin = Arctic wolfskin"> [[File:Arctic wolfskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Arctic wolfskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> arctic wolfskin = Arctic wolfskin"> [[File:Arctic wolfskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Arctic wolfskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
Line 81: | Line 80: | ||
--> leathers = Leathers"> [[File:Leathers.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Leathers|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> leathers = Leathers"> [[File:Leathers.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Leathers|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> lynxskin = Lynxskin"> [[File:Lynxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lynxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> lynxskin = Lynxskin"> [[File:Lynxskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lynxskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | |||
--> megatherium wool = Megatherium wool"> [[File:Megatherium wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Megatherium wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> megatherium wool = Megatherium wool"> [[File:Megatherium wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Megatherium wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> monkeyhide = Monkeyhide"> [[File:Monkeyhide.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Monkeyhide|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> monkeyhide = Monkeyhide"> [[File:Monkeyhide.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Monkeyhide|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
Line 105: | Line 103: | ||
DEPRECATED TYPES BELOW. ONLY KEPT FOR COMPATIBILITY. DO NOT USE. | DEPRECATED TYPES BELOW. ONLY KEPT FOR COMPATIBILITY. DO NOT USE. | ||
− | --> metal = Steel"> [[File: | + | --> metal = Steel"> [[File:Steel.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Steel|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> uran = Uranium"> [[File:Uranium | + | --> uran = Uranium"> [[File:Uranium.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|}}}}}]]|<!-- | ||
--> muffalo = Muffalo meat"> [[File:MeatBig.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Muffalo meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> muffalo = Muffalo meat"> [[File:MeatBig.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Muffalo meat|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
Line 113: | Line 111: | ||
--> missile = Missile{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Missile Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Missile|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- (appears to be only in Glittertech Mod?) | --> missile = Missile{{#switch: {{{2|}}}|= |1= |s}}"> [[File:Missile Icon.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Missile|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- (appears to be only in Glittertech Mod?) | ||
--> }}}} {{#if:{{{2|}}}|{{{2|}}}}}</span></onlyinclude> | --> }}}} {{#if:{{{2|}}}|{{{2|}}}}}</span></onlyinclude> | ||
− | <noinclude> | + | <noinclude>{{documentation}}</noinclude> |
− | {{ | ||
− | |||
− | </noinclude> |
Revision as of 00:07, 4 August 2019
<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:
{{icon|metal}}
Icon with quantity: File:Food Icon.png 10
{{icon|potato|10}}
Bigger icon with quantity: 250
{{icon|silver|250|32}} (size is in pixels)
Everything Available
16 px (default):
File:Plasteel.png File:Food Icon.png File:AgaveFruit.png File:MeatBig.png File:MeatSmall.png File:MeatHuman.png File:MeatBig.png File:Nutrient paste meal.png File:Simple meal.png File:Fine meal.png File:Lavish meal.png File:Packaged Survival Meal.png File:Medicine.png File:Corn Icon.png File:Hops Icon.png File:Rice Icon.png File:Dandelions.png File:Daylily.png
File:Alpaca wool.png <span style="white-space:nowrap;" title=" File:Fabrics.png <span style="white-space:nowrap;" title=" File:Muffalo wool.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=" File:Chinchilla fur.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="
32 px:
File:Plasteel.png File:Food Icon.png File:AgaveFruit.png File:MeatBig.png File:MeatSmall.png File:MeatHuman.png File:MeatBig.png File:Nutrient paste meal.png File:Simple meal.png File:Fine meal.png File:Lavish meal.png File:Packaged Survival Meal.png File:Medicine.png File:Corn Icon.png File:Hops Icon.png File:Rice Icon.png File:Dandelions.png File:Daylily.png
File:Alpaca wool.png <span style="white-space:nowrap;" title=" File:Fabrics.png <span style="white-space:nowrap;" title=" File:Muffalo wool.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=" File:Chinchilla fur.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="
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:
| class="text-right" | Metal | |
1 | class="text-right" | 1 Metal | |
5 | class="text-right" |5 Metal |
The above documentation is transcluded from Template:Icon/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |