Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Help:Transclusion
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Substitution=== {{Main|Help:Substitution}} Transclusion events occur each time the target page is loaded and the template is rendered. A related event is Substitution, where a template call is replaced with its transcluded source content at the time it is invoked in a ''one-time'' inclusion of the content. Unlike transclusion, which continuously updates the target page with changes from the source, substitution results in a ''one-time'' inclusion of the content, meaning that subsequent updates to the source content ''will not'' be reflected in the target page. For example, a template call for <syntaxhighlight lang="wikitext" inline="">{{Pagename}}</syntaxhighlight> with the <syntaxhighlight lang="wikitext" inline="">subst:</syntaxhighlight> prefix results in the substitution template call <syntaxhighlight lang="wikitext" inline="">{{subst:Pagename}}</syntaxhighlight>. When invoked, this template is replaced, also referred to as substituted, with the actual wikitext of the source page at the time of the call, thereby making it a permanent part of the target page.{{refn|group=lower-alpha|In simpler terms, the page is ''published'' or ''saved'', and any future changes to the source page will not affect this substituted content.}} For example, when <syntaxhighlight lang="wikitext" inline="">{{subst:Like}}</syntaxhighlight> is inserted in a page and the changes published, it would substitute that wikitext with the actual wikitext from {{Xtn|[[Template:Like]]}}. In practice, subsequent updates to {{Xtn|[[Template:Like]]}} ''will not'' be reflected in the page it was substituted into.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)