Unsubst
Revision as of 15:59, 29 June 2011 by Amalthea (Talk) (Protected Template:Unsubst: Highly visible template ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
This template should always be substituted – use {{subst:Unsubst}}. |
Helper template to facilitate a substituted template transform into a template transclusion.
Maintenance templates, such as {{Citation needed}} or {{Refimprove}}, should never be substituted. A trick to avoid that is make a template substitute to its transcluded form.
Usage
To turn a template into a self-substituting template, wrap the existing template code with:
{{ {{{|safesubst:}}}ifsubst|<includeonly>{{subst:Unsubst|TEMPLATENAME| 1|{{{1|¬}}} | 2|{{{2|¬}}} | named1|{{{named1|¬}}} }}</includeonly>| [ ... existing template code ... ] }}
The name of the template and all parameter names and values supported by the template must be listed in the first line, as parameters of this template.
This template currently supports ten parameters. A parameter value of ¬ is not supported and will be treated like an undefined parameter.
See also
- {{ifsubst}}
- {{issubst}}No:Mal:Unsubst
The above documentation is transcluded from Unsubst/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |