Template:Delay subst/doc: Difference between revisions
Appearance
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{Documentation subpage}} {{Distinguish|Template:Subst}} {{Subst only}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> == Usage == With cert..." |
(No difference)
|
Revision as of 11:22, 17 October 2020
| This template should always be substituted (i.e., use {{subst:Delay subst/doc}}). |
Wikipedia:Category:Wikipedia substituted templates
Usage
With certain coding, subst: does not automatically convert when it is saved. An editor can create wikitext that is only converted when saved again.
Normally wikitext like {{subst:a}} is not saved as {{subst:a}} if {{template:a}} exists, because subst: pastes the coding of template:a in the saved page.
This template makes it easy to save preload pages such as Template:RMassist/preload.
Delaying template substitution
"Subst" can be delayed with one save by creating and using {{delay subst}}.
| template used | template coding | Paste or type | Save | Result |
|---|---|---|---|---|
| Template:Delay subst | {{subst:
|
{{subst:delay subst}}a|b}}
|
save page | {{subst:a|b}}
|
On the next save (with or without edits elsewhere on the page) results in substitution of template "a".
See also