Help:Transclusion/How Transclusion Works: Difference between revisions

Content deleted Content added
rewrote to make it understandable for laypeople; in the final paragraph, I may have been too bold
Tags: Mobile edit Mobile web edit Advanced mobile edit
deleted use case example, which used unnecessary jargon and seemed redundant with the examples farther down, which of course can be changed if need be
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 14:
 
<div style="margipadding: 0.5em;">[[File:Transclusion-multiple-foo.svg]]</div>
</br>
 
A typical use case for transclusion would be if you wanted to place the same welcome message on multiple newcomer talk pages.
 
Transclusion creates a "live" link between a source page and the target page(s) where the source page's contents appear. This means that when you edit a source page, you will be updating its content across all the target pages that include it. Let's say you create a source page in Wikipedia with the address, date, and time of a local Wikimedia event that you want to invite 50 local editors to. Next, you transclude the invitation source page onto your talk page as well as the talk pages of the other 50 editors. A week later you discover the place for the event must be moved. You would then update the source page, and the new address will automatically appear on all the other attendees' talk pages. You could also tell the editors to invite people you may have missed. They could then simply transclude the invitation source page into other editors' talk pages themselves.