Template:img

From juliano.info

Jump to: navigation, search

[edit]

Template-info.png Template documentation

This template links an image to a page other than its image description page. It has been updated to avoid the accessibility problems caused by an earlier version.

Usage

To use this template, simply copy the text below and replace the text between the <...> with the desired result.

{{img
|image  = <image to be linked>
|size   = <size of the image>
|link   = <page the image must link to>
|desc   = <location of a description link, optional>
}}
  • The image parameter specifies the image to be used. It defaults to Image:Title.png when not specified.
  • The size parameter specified the maximum size of the image, either in the format «width»x«height»px, «width»px, or x«height»px.
  • The link parameter specifies the page to which the image should link. It defaults to the Home when not specified.
  • The desc parameter specifies a location where an icon linking to the description page for the image can be placed. It is entirely optional, and can take any of the following values: top-right, bottom-right, bottom-left, top-left, or none to disable it completely. It defaults to none when not specified.

Examples

{{img
|image  = Title.png
|link   = [[Home]]
}}

Which will produce:

Title.png
Views