Template:Iconframe
Jump to navigation
Jump to search
WIP - An alternative to baking borders and backgrounds into icon images. Makes image have 40x40 frame
Pulls alt data from "alttext:" namespace with the same name as the image
Syntax[edit]
Parameters are unnamed
{{iconframe
|(unnamed) image link: something.png (the image: namespace is assumed)
|(unnamed) alignment: left/right/center
|(named) bg= html color code
|(named) link= clickity click click
|(named) alt= description. Note, it's better to put the alttext in the page pointed to by the alttextlink template
}}
see: template:alttextlink
Examples[edit]
| Code | Output | Notes |
|---|---|---|
| {{iconframe}}nothing | nothing |
no parameters |
| {{iconframe|UW1Apple.png|left|alt=a red apple}}Apple | Apple |
left |
| {{iconframe|uw1acid.png|right|alt=some acid|bg=cyan}}Apple | Acid |
right, background color |
| {{iconframe|UW1Ale.png|center|alt=corked green bottle of ale|link=yer mum's house}}Ale | Ale |
center,linked |
| {{iconframe|UW1AnkhPendant.png}}Pendant | Pendant |
simple inline, WIP |