Help:Transclusion: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: '''Transclusion''' is the process of include the content of a page in another page, by reference rather than by copying and pasting it. Templates are usually transcluded into pages : ...)
 
No edit summary
Line 1: Line 1:
'''Transclusion''' is the process of include the content of a page in another page, by reference rather than by copying and pasting it. [[Templates]] are usually transcluded into pages : the template text exists once, and is editable in a single place. It is added to pages where it appears when the page is loaded.
'''Transclusion''' is the process of include the content of a page in another page, by reference rather than by copying and pasting it. [[m:Help:Templates|Templates]] are usually transcluded into pages : the template text exists once, and is editable in a single place. It is added to pages where it appears when the page is loaded.


You can transclude any page on the wiki, like so:
You can transclude any page on the wiki, like so:

Revision as of 17:33, 13 October 2008

Transclusion is the process of include the content of a page in another page, by reference rather than by copying and pasting it. Templates are usually transcluded into pages : the template text exists once, and is editable in a single place. It is added to pages where it appears when the page is loaded.

You can transclude any page on the wiki, like so:

  {{welcome}}  will transclude the template [[Template:Welcome]] where it is placed in the page
  {{:welcome}} will transclude the page [[Welcome]] where it is placed

For more, see m:Help:Transclusion on the Meta-Wiki.