Template:Img

From Ultima Codex
Jump to navigation Jump to search

an icon representing a missing image

A template for displaying images. Automatically associates the alttext to an alttext: page.

Parameters[edit]

first unnamed
The first unnamed parameter is assumed to be the image name. A file: or image: namespace is not required and image: will be used.
alt
An alt parameter will override the default, which transcludes an alttext: page of the same name as the image.
other unnamed
All other unnamed parameters (up to 10) are passed verbatim to the image linker.
upright, link, page, thumbtime, start, lossy, class, lang
These parameters are passed verbatim, even if blank.

Examples[edit]

Code Output Notes
{{img}} an icon representing a missing image missing image
{{img|}} an icon representing a missing image blank image
{{img|Adventurers2.gif}} Alttext:Adventurers2.gif simple
{{img|Adventurers2.gif|120px|right}}some text
Alttext:Adventurers2.gif
some text
parameters
{{img|Adventurers2.gif|250px|alt=A band of adventures}} A band of adventures alt text
{{img|Adventurers2.gif|250px|alt=}} Alttext:Adventurers2.gif blank alt gets alttext: page
{{img|Adventurers2.gif|250px|link=}} Alttext:Adventurers2.gif no link

External Links[edit]

  • mediawiki image help - parameters listed here are the same that can be passed by this template