Open main menu

Project: Gorgon Wiki β

Changes

Template:Icon

769 bytes removed, 16:42, 29 October 2014
WIP.
[[File:item-icon-{{#switch:{{lc:{{{1|}}}}}<!-- special case, "none" is mistaken as a horizontal alignment option icon substitutions for lookalike items (in alpha) --> | none lemon = item-icon-none.png<!-- icons with a custom wiki page destination -->banana | firedust #default = item-icon-firedust.png{{!{1|none}}}link=Fire Dust }}.png| saltpeter class= itemjs-icon-saltpeter.pngtt|{{#if: {{{!size|}}}link=Saltpeter | sulfur = item-icon-sulfur.png{{!{size}}}link=Sulfur<!-- Add mouseover title to help identify similar looking icons in the recipes table --> | banana = item-icon-banana.png{{!}}Banana | beet = item-icon-beet.pngsub{{!}}Beet }}| butter = item-icon-butter.png{{!#switch:{{{1|}}}Butter | beet = <!-- set the itemname based on icon name, and link for some -icon-grape.png{{!}}Grapes> | lemon firedust = item-icon-banana.pngFire Dust{{!}}Lemonlink=Fire Dust | milk saltpeter = item-icon-milk.pngSaltpeter{{!}}Bottle of Milklink=Saltpeter | orange sulfur = item-icon-orange.pngSulfur{{!}}Orangelink=Sulfur | potato milk = item-icon-banana.png{{!}}PotatoBottle of Milk | redapple = item-icon-redapple.png{{!}}Red Apple | salt = item-icon-salt.png{{!}}Salt | sugar = item-icon-sugar.png{{!}}Sugar | water = item-icon-water.png{{!}}Bottle of Water
<!-- default uses the shop item naming convention -->
| #default = item-icon-{{{1|none}}}.png{{!}}{{#if: {{{label|}}}|{{{label}}}|{{{1}}} }}<!-- WTF? ==> if size not provided, try to get the icon name to show as red text when icon is missing, and otherwise show custom title above ==> if size is provided, then custom captions above don't work, short of using more complex templating due to caption not being a named param.-->}}{{#ifucfirst: {{{size|1}}} | {{!}}{{{size}}}{{!}}sub{{!}} }}]]<noinclude>
__NOTOC__
==Syntax==
==Examples==
Default 32x32px icon. By default the capitalized icon name becomes the tooltip: "lemon" => "Lemon".
<pre>
{{icon|saltpeterlemon}}
</pre>
</pre>
Provide a title (mouseover) the full name for items that have similar looking iconswith '''label''' parameter.
<pre>
{{icon|genericpot|label=Advanced Holistic Ink}}
</pre>
 
 
[[Category:Formatting templates|ItemT]]
</noinclude>
2,804
edits