Template:Image

From Zelda Wiki, the Zelda encyclopedia

(Redirected from Template:ImageLink)
Jump to: navigation, search


Purpose

This is a dynamic template that offers enhanced ways of handling images, including ways to:

None of these options are available or practical with standard image coding. This template allows for simplified ways of performing complex formatting of images.

Usage

To use this template, start with this code:

{{Image
|image        = 
|type         = 
|size         = 
|scale        = 
|align        = 
|caption      = 
|captionalign = 
|title        = 
|alt          = 
|link         = 
}}

Here are descriptions of the parameters. Only the parameter "image" is actually required, the rest are optional.


Examples

Here is an example of some ways to use this template.

With standard sizing, the image is simply scaled to the width specified. An example code is:

Pixels
{{Image
|image    =Link YoungLink.png
|size     =100px
|link     =Link
|title    =Young Link
|align    =center
|type     =frameless
}}
Percentage
{{Image
|image    =Link YoungLink.png
|size     =25%
|link     =Link
|title    =Young Link
|align    =center
|type     =frameless
}}

This code is then shown rendered here, in a table for clarity:

Size
File:Link YoungLink.png
Size
File:Link YoungLink.png

With scale sizing, the image is constrained within a specific dimension. This can be used to ensure an image fits properly in a table. When used with a pixel amount, this is the exact same process that built-in image galleries use to maintain their structure with various image sizes. An example code is:

Pixels
{{Image
|image    =Link YoungLink.png
|scale    =100px
|link     =Link
|title    =Young Link
|align    =center
|type     =frameless
}}
Percentage
{{Image
|image    =Link YoungLink.png
|scale    =25%
|link     =Link
|title    =Young Link
|align    =center
|type     =frameless
}}

This code is then shown rendered here, in a table for clarity:

Scale
File:Link YoungLink.png
Scale
File:Link YoungLink.png

There is also the option of thumbnail and caption displays.

Thumbnail
{{Image
|image    =Link YoungLink.png
|type     =thumb
|scale    =100px
|link     =Link
|title    =Young Link
|align    =left
|caption  =Young Link
}}
Caption
{{Image
|image    =Link YoungLink.png
|scale    =100px
|link     =Link
|title    =Young Link
|align    =left
|caption  =Young Link
}}
File:Link YoungLink.png
Enlarge
Young Link
File:Link YoungLink.png
Young Link

Linking to nothing:

Caption
{{Image
|image    =Link YoungLink.png
|scale    =100px
|link     =none
|title    =Young Link
|align    =left
|caption  =Young Link
}}
Thumbnail
{{Image
|image    =Link YoungLink.png
|type     =thumb
|scale    =100px
|link     =none
|title    =Young Link
|align    =left
|caption  =Young Link
}}
Frameless
{{Image
|image    =Link YoungLink.png
|scale    =100px
|link     =none
|title    =Young Link
|align    =left
|caption  =Young Link
|type     =Frameless
}}
File:Link YoungLink.png
Young Link
File:Link YoungLink.png
Enlarge
Young Link
File:Link YoungLink.png
Personal tools
Namespaces
Variants
Actions
Navigation
Community
Community Partners
Toolbox