Template:Iconframe

From Ultima Codex
Jump to navigation Jump to search
an icon representing a missing image

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
an icon representing a missing image
nothing
no parameters
{{iconframe|UW1Apple.png|left|alt=a red apple}}Apple
a red apple
Apple
left
{{iconframe|uw1acid.png|right|alt=some acid|bg=cyan}}Apple
some acid
Acid
right, background color
{{iconframe|UW1Ale.png|center|alt=corked green bottle of ale|link=yer mum's house}}Ale
corked green bottle of ale
Ale
center,linked
{{iconframe|UW1AnkhPendant.png}}Pendant
a silver anhk shaped pendant hanging from a brown necklace
Pendant
simple inline, WIP