Difference between revisions of "Template:Icon"
Line 49: | Line 49: | ||
--> 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|}}}}}]]|<!-- | ||
--> devilstrand = Devilstrand"> [[File:Devilstrand.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Devilstrand|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> devilstrand = Devilstrand"> [[File:Devilstrand.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Devilstrand|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | --> fabrics = Fabrics"> [[File: | + | --> fabrics = Fabrics"> [[File:cloth.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Fabrics|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> hyperweave = Hyperweave"> [[File:Hyperweave.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Hyperweave|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> hyperweave = Hyperweave"> [[File:Hyperweave.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Hyperweave|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> 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|}}}}}]]|<!-- | ||
− | --> megasloth wool = Megasloth wool"> [[File: | + | --> megasloth wool = Megasloth wool"> [[File:wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Megasloth wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> muffalo wool = Muffalo wool"> [[File: | + | --> muffalo wool = Muffalo wool"> [[File:wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Muffalo wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> sheep wool = Sheep wool"> [[File: | + | --> sheep wool = Sheep wool"> [[File:wool.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Sheep wool|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> synthread = Synthread"> [[File:Synthread.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Synthread|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> synthread = Synthread"> [[File:Synthread.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Synthread|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> bearskin = Bearskin"> [[File:Bearskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Bearskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> bearskin = Bearskin"> [[File:Bearskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Bearskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
Line 67: | Line 67: | ||
--> heavy fur = Heavy fur"> [[File:Heavyfur.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Heavy fur|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> heavy fur = Heavy fur"> [[File:Heavyfur.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Heavy fur|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> human leather = Human leather"> [[File:Human leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Human leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> human leather = Human leather"> [[File:Human leather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Human leather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
− | --> lightleather = Lightleather "> [[File:Lightleather .png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lightleather |{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> lightleather = Lightleather "> [[File:Lightleather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lightleather|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> lizardskin = Lizardskin "> [[File:Lizardskin .png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lizardskin |{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> lizardskin = Lizardskin "> [[File:Lizardskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Lizardskin|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> panthera fur = Panthera fur"> [[File: | + | --> panthera fur = Panthera fur"> [[File:pantherafur.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Panthera fur|{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
− | --> patchleather = patchleather "> [[File:Patchleather .png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Patchleather |{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | + | --> patchleather = patchleather "> [[File:Patchleather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Patchleather |{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
--> pigskin = Pigskin"> [[File:Pigskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Pigskin |{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> pigskin = Pigskin"> [[File:Pigskin.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Pigskin |{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | ||
--> plainleather = Patchleather"> [[File:Patchleather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Plainleather |{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- | --> plainleather = Patchleather"> [[File:Patchleather.png|link=|{{#if:{{{3|}}}|{{{3|}}}|16}}px|alt=Plainleather |{{#if:{{{4|}}}|{{{4|}}}}}]]|<!-- |
Revision as of 04:35, 22 October 2020
<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
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
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. |