ଉଇକିପିଡ଼ିଆ:Transclusion
From Wikipedia, the free encyclopedia
Transclusion means the inclusion of the content of one document in another document by reference. In Wikipedia, it refers to a function of the MediaWiki software which allows the content of one page to be included in the content of another page, by placing a reference to the source page in the wikitext of the target page. A page which is intended to be transcluded into other pages is called a template. Changes made to a template are automatically reflected on all pages into which that template has been transcluded.
- "WP:TRANS" redirects here. You may be looking for Wikipedia:Transwiki log, Help:Transwiki, Wikipedia:Translation or Wikipedia:WikiProject Transwiki.
- WP:TRANS
The basic syntax used to produce transclusion in wikitext is {{Template name}}
. It is also possible to pass parameters to a template, using the expanded syntax described at Help:Template.
An alternative to transclusion is substitution, whereby the current content of the template is automatically copied into the wikitext of the target page on saving, and will then be independent of any later changes made to the template. The syntax for this is {{subst:Template name}}