Template:Delay subst

From blackwiki
Revision as of 20:35, 17 May 2014 by imported>Wbm1058 (New template equivalent to m:Template:Subst. Can't use the same name because Template:Subst was already created to serve a different purpose.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{subst:

Template documentation[view] [edit] [history] [purge]

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