Help:Template substitution
From MeritBadgeDotOrg
(Difference between revisions)
(create) |
m (Complete re-write) |
||
(4 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | [ | + | Substitution is the ''[http://meta.wikimedia.org/wiki/Help:Automatic_conversion_of_wikitext automatic conversion of wikitext]'' of a page when the page is '''saved''', in that the wikitext refers to one or more templates, variables, or parser functions. |
- | + | In the case of '''template substitution''', the template call is replaced by the template content with substitution of the parameters. Thus, the template is used as macro and the page is macro expanded when the page is saved rather than, as usually happens, when the page is viewed. | |
+ | |||
+ | {{Box|In other words, when you '''"subst:"''' a template... the entire template is not only ''called'', but '''''saved''''', to the page you are editing, using the specific variables you input.}} | ||
+ | |||
+ | ==See also== | ||
+ | * [[Help:Transclusion]] (the opposite of substitution) | ||
+ | |||
+ | ===External links=== | ||
+ | * http://en.wikipedia.org/wiki/Wikipedia:Substitution | ||
+ | * http://en.wikipedia.org/wiki/Help:Substitution | ||
+ | * http://meta.wikimedia.org/wiki/Help:Substitution |
Current revision
Substitution is the automatic conversion of wikitext of a page when the page is saved, in that the wikitext refers to one or more templates, variables, or parser functions.
In the case of template substitution, the template call is replaced by the template content with substitution of the parameters. Thus, the template is used as macro and the page is macro expanded when the page is saved rather than, as usually happens, when the page is viewed.
In other words, when you "subst:" a template... the entire template is not only called, but saved, to the page you are editing, using the specific variables you input.
See also
- Help:Transclusion (the opposite of substitution)