Template:Transclude
From QED
Syntax:{{transclude|SRC|CAPTION|WIDTH|HOVERTEXT}}
The following named parameters may also be specified:
width=WIDTH float=left|right|center
All parameters except SRC are optional.
The hyperlink is always the specified value of SRC.
The default value of WIDTH, which is measured in pixels, is 450. If WIDTH is specified twice, the named parameter takes precedence.
If HOVERTEXT is not specified, the hovertext will be: Click to view the original full-size image
If float is specified as left or right, the image will float to the left or right; otherwise, it is placed in an HTML <div> element, thus forcing a break with whatever follows.
If float=center is specified, the image will be centered. To align three images in a row, the sequence should be: left/right/center.
Contents |
Examples
{{transclude
|http://web.archive.org/web/20060117122142/http://www.aidsandafrica.com/aids%20graphic.jpg
|150 pixels wide
|150
|float=center
}}
produces:
Using % in the URL
The "%20" in the above examples represents a space, which is one of several characters which cannot be used in URLs. See Help:URL Encoding for details about the "%dd" notation.
Creating a hyperlink in the caption
{{transclude|http://www.christiansarkar.com/globalization.gif|<html><a href=http://www.atkearney.com/shared_res/pdf/2005G-index.pdf>Copyright details</a></html>|128}}
produces
See also
- QED:Image — the <image> tag
- Help:Transclusion
- Template:Archived
- Template:Transcluded image thumbnail
- Template:SectionTransclude
- Template:TransclusionWarning
- Template:Transclude2 — specify src and href independently
- Template:TranscludeArchivedImage — standard way to transclude an image while ensuring that a thumbnail will be available














