Help:Transclusion/How Transclusion Works: Difference between revisions

Content deleted Content added
m Reverted edits by 114.5.242.16 (talk) to last version by 2402:800:6313:364E:188:E4C9:26C1:B48A
Tags: Rollback Reverted
alter top to hatnote
Tag: Reverted
Line 1:
{{navbarHatnote|Note: this section is transcluded from [[Wikipedia:Transclusion/How Transclusion Works|plain=1]]}}
 
To '''transclude''' any '''source''' page (within a single MediaWiki project, such as en:Wikipedia), include the following code in the '''target''' page:
 
Line 12 ⟶ 11:
 
Transclusion creates a "live" link between the template page and the target page(s) upon which the template's contents should appear. When the template is edited, the rendering of that template on the target pages is updated as well. For example, you create a (template) page in Wikipedia with your home mailing address and then transclude that template not only on your page, but all your friends' pages, too. Later, after moving to a new house, you then update your address template and the ''new'' address will automatically appear on all your friends' pages.
 
There are further simple examples at [[mw:Transclusion]].