Help:Transclusion/How Transclusion Works: Difference between revisions

Content deleted Content added
removed extra word
Tag: Reverted
m Fixing style/layout errors
Tag: Reverted
Line 7:
 
In the example below, let us start with target page '''A''' and <code><nowiki>SOURCEPAGE</nowiki></code> '''B'''. <br />
If <code><nowiki>{{'''B}}</nowiki></code>''' is transcluded in '''A''', then the engine will include ''in that place'' not the code (<code><nowiki>{{B}}</nowiki></code>) itself but the content of source page '''B''' (which in this example, consists of only one word, foo).
 
The top row shows how the target page '''A''' renders, while the bottom row shows the code required to transclude the source page within the target page. Note that the position of the code determines how each of the target pages '''A''', '''P''', and '''Q''' will render.