Template:Iconframe

From Ultima Codex
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
}}

Example[edit]

{{iconframe|UW1Apple.png|left|alt=a red apple}}
{{iconframe|uw1acid.png|right|alt=some acid|bg=cyan}}
{{iconframe|UW1Ale.png|center|alt=corked green bottle of ale|link=yer mum's house}}
{{iconframe|UW1AnkhPendant.png}}
{{iconframe}}
a red apple
some acid
corked green bottle of ale
a silver anhk shaped pendant hanging from a brown necklace