Difference between revisions of "Help:Transclusion"
Revision as of 17:56, 20 April 2011
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:
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: