Help:Transclusion/How Transclusion Works: Difference between revisions

Content deleted Content added
PartTimeGnome (talk | contribs)
Fix blank space above and below on pages that transclude this
PartTimeGnome (talk | contribs)
m No need for {{clear}}: If the intent is that text should not wrap around the image, don't float it in the first place!
Line 5:
Whenever the target page '''A''' with this code is rendered, the engine will include ''in that place'' not the code itself, but the entire content of the source page '''B''', SOMEPAGE.
 
<div style="{{divstylenone}} float:left; width:544px;">
{{clear}}
[[File:Transclusion-multiple-foo.svg|left]]
 
<div style="{{divstylenone}} float:left; width:544px;">
[[File:Transclusion-multiple-foo.svg|left]]
</div>
 
{{clear}}
 
For example, you might decide to place a welcome message on every newcomer's Talk Page. Transclusion creates a "live" link between the template-page and the target-page(s) upon which the message should appear. When the template is edited, all the target-pages are edited too.
 
For example, you create a (template) page in Wikipedia with your home mailing address and then include 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.<noinclude>
 
{{clear}}<noinclude>
[[mk:Википедија:Превметнување/Како работи превметнувањето]]
[[pt:Wikipedia:Transclusão/Como a transclusão funciona]]