Help:Transclusion

From FamilySearch Wiki

(Difference between revisions)
m (moved FamilySearch Wiki:Transclusion to Help:Transclusion: moved to Help namespace)

Revision as of 17:56, 20 April 2011


Help-content.png Questions?
Visit the Wiki Contributor Help Forum to receive help with contributing to the Wiki.




Transclusion is generally the inclusion of the content of a document into another document by reference. In the Wikipedian context, it is the use of the Wikipedia:Template messages|template functionality of MediaWiki to include the same content in multiple documents without having to edit those documents separately. Template transclusion is the common way to use template messages, and is implemented by using a template tag, with this form:

{{template name}}

Occasionally one may want to use a template, but for one reason or another may not want to use transclusion. The automatic one-time copying of a template's code/text to the location of a template tag is called Template substitution or subclusion (substitution + transclusion). To subclude a template's code/text, the template tag is modified from the standard transclusion tag to a substitution tag, simply by adding subst:, creating a tag with the form: {{subst:Template name}}.

Wikipedia
Wikipedia has more about this subject: Wikipedia:Transclusion

See also