Difference between revisions of "Template:Delay safesubst"

From blackwiki
Jump to navigation Jump to search
imported>ManosHacker
m (ManosHacker moved page Template:Safesubs to Template:Delay safesubst: better name for understanding functionality + keep redirect)
imported>ManosHacker
(documentation)
 
Line 1: Line 1:
{{safesubst:<noinclude>[[Category:Wikipedia templates|{{PAGENAME}}t]]</noinclude>
+
{{safesubst:<noinclude>
 +
{{documentation}}
 +
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 +
</noinclude>

Latest revision as of 13:10, 22 February 2018

{{safesubst:

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 {{safesubst:a}} is not saved as {{safesubst:a}} if {{template:a}} exists, because safesubst: 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

"Safesubst" can be delayed with one save by creating and using {{delay safesubst}}.

template used template coding Paste or type Save Result
Template:Delay safesubst {{safesubst: {{safesubst:delay safesubst}}a|b}} save page {{safesubst:a|b}}

On the next save (with or without edits elsewhere on the page) results in substitution of template "a".

See also