Help:Transclusion
From QED
Contents |
Transclusion of one page within another
One QED page can only be transcludedwp within another under certain circumstances. This is because most pages may be subject to read-access restrictions.
Syntax
The syntax to use for transcluding a page depends on the namespace of the target page:
- if the page to be transcluded is in the Template: namespace: {{PageName}}
- if the page to be transcluded in any other namespace, prefix the full page with a colon (":"), e.g.
- {{:PageInMainNamespace}}
- {{:Course:PageInCourseNamespace}}
Restrictions
There are no restrictions on transcluding pages that are in the Template:, MediaWiki:, QED:, or Help: namespaces.
Otherwise, transclusion is generally disallowed except as follows:
- Any User:Xyzzy page can transclude any other User:Xyzzy page (where Xyzzy is a user id).
- Any subpage of a folder can transclude any page in the same folder.
- Any top-level page can be transcluded in pages in the Course:, Princeton:, and Project: namespaces.
Images
An image with a URL can be transcludedwp on a QED page by simply using its URL, but care must be taken with external copyrighted images.
In some cases, it is often a good idea to use the <image> syntax, e.g. so that the image can be captioned or resized appropriately.
Examples:
http://kism.iconnect.co.ke/Aids%20in%20Kenya-%20muhindi.jpg
produces the full-size image inline.
<image src=http://kism.iconnect.co.ke/Aids%20in%20Kenya-%20muhindi.jpg width=200>Caption goes here</image>
produces:
Templates
{{TransclusionWarning}} {{transclude|http://kism.iconnect.co.ke/Aids%20in%20Kenya-%20muhindi.jpg||150}}
produces:
Embedding the thumbnail of a transcluded image
If a thumbnail for a transcluded image exists (see Template:Transclude and Help:Image), then Template:Transcluded image thumbnail can be used to embed it with the appropriate hyperlink as illustrated by this example:
{{transcluded image thumbnail|Yellow_Fever_Endemic_Zones_in_Africa|Click on the image to view the Image: page}} produces:
See also Help:Gallery and Template:Transcluded image cell.
See also
- Template:TranscludeArchivedImage — standard way to transclude a vignette-sized image from archive.org
- Template:TransclusionCopyright
- Template:TransclusionWarning
- Template:Transclude
- Template:Transcluded image thumbnail
- Template:Webshare













