Help:Transclusion

From FamilySearch Wiki

(Difference between revisions)
(New page: '''{{wpd|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 {{wpd|Wikipedia:Temp...)
 
(See also: add links)
Line 5: Line 5:
  
 
{{Wikipedia|Wikipedia:Transclusion}}
 
{{Wikipedia|Wikipedia:Transclusion}}
 +
 +
===See also===
 +
* [[Help:Templates]]
 +
* [[FamilySearch Wiki:Substitution]]
  
 
[[Category:Help|Transclusion]]
 
[[Category:Help|Transclusion]]

Revision as of 15:10, 29 November 2010

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