3,060
edits
No edit summary |
Metriximor (talk | contribs) m (278 revisions imported from wikipedia:Help:Substitution: R to helpspace) |
||
(32 intermediate revisions by 26 users not shown) | |||
Line 1:
{{short description|Help about using templates}}
{{for|detailed guidance on when to use substitution rather than transclusion|Wikipedia:Substitution}}
{{Wikipedia how-to|
'''Substitution''' is a function whereby, when an editor saves a page, an item in the wikicode is permanently replaced with its current value. In particular, a [[Help:Template|template]] can be substituted, as an alternative to [[WP:transclusion|transclusion]]. The difference is that when a template is substituted on a page, its appearance on that page will no longer be affected by later changes made to the template itself (as is the case in a transcluded template).
Line 9:
[[Help:variable|Variable]]s and [[Help:parser function|parser function]]s can also be substituted, meaning that their current value will be recorded permanently on the page – they will not be re-evaluated whenever someone views the page.
<ref><ref><ref></ref></ref></ref>==When to use substitution==
Generally speaking, templates are [[WP:transclusion|transcluded]] rather than substituted, although there are some that are specifically designed to be substituted (and may not work if transcluded). Some reasons for substituting templates include:
*making the resulting page independent of future changes to the template
Line 221:
==See also==
* [[User:Valereee/Substitution and transclusion for dummies|Substitution for Dummies]]
* [[m:Help:Substitution]], a longer and more technical help page at Meta
* [[mw:Extension:ExpandTemplates]]
Line 227 ⟶ 228:
** {{tim|last edit}} – example: <span class="plainlinks">[{{fullurl:Special:Contributions|limit=1&target={{urlencode:Example User}}}} last edit]</span>
** {{tim|page history}}
* [[Wikipedia:WikiProject Check Wikipedia#Template programming element|WikiProject Check Wikipedia § Template programming element]] lists articles where templates were substituted rather than transcluded.{{dead link|date=July 2011}} {{link note|note=According to the Wayback Machine, [//web.archive.org/web/20100528224125/http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Check_Wikipedia the last time this link worked] was May 2010. It appears to have been removed since then. Perhaps [https://
{{Wikipedia template messages}}
Line 233 ⟶ 234:
{{Wikipedia technical help|collapsed}}
[[Category:Wikipedia help]]
[[Category:Wikipedia
[[fr:Aide:Modèle#Substitution]]
|