Template:Extimage

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Template documentation
This documentation is transcluded from Template:Extimage/doc. [edit] [purge]

Embed external images using internal image-like styling for thumbnails. Only images hosted on the servers listed at the local image whitelist can be embedded directly into a page. Images on any other server will appear as a regular hyperlink. Currently, the following general image hosts are supported:

*These sites should not be used as host, but it is possible to use images that are already uploaded to these sites.

Usage

{{Extimage|url|alignment|width|caption (optional)|link=url (optional)}}

Where:

url
The URL of the external image.
alignment
Either left, center, or right. The image will be floated so that surrounding text flows around the image. Use {{clear}} to reset the document flow.
For Wikipedia images, leaving this blank results in an in-text image.
width
Width of the image, in pixels.
caption (optional)
An optional caption that appears below the image.
For Wikipedia images, this parameter results in a link(so could be substituted with the link parameter).
link (optional)
The URL that the image will link to. By default, the image URL itself is also used as the link URL. The image can be made unclickable by specifying an empty link parameter.
For Wikipedia images, this parameter is substitutable with the fourth parameter.

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Include externally hosted image with size scaling and captioning

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
URL1

Link to the image file

Default
empty
Example
empty
Auto value
empty
URLrequired
Alignment2

Alignment on the page (omit for in-text image)

Default
empty
Example
left, center or right
Auto value
empty
Stringoptional
Linklink

The URL that the image will link to. The image can be made unclickable by specifying an empty link parameter. For Wikipedia images, this parameter is substitutable with the fourth parameter.

Default
empty
Example
empty
Auto value
empty
URLoptional
Width3

Width of the image, in pixels.

Default
empty
Example
empty
Auto value
empty
Numberoptional
Caption4

Caption to appear below the image. For Wikipedia images, this parameter results in a link(so could be substituted with the link patameter).

Default
empty
Example
empty
Auto value
empty
Stringoptional
Heightheight

Height of the image, in pixels. Defaults to preserve aspect ratio with the image width.

Default
empty
Example
empty
Auto value
empty
Numberoptional