User:Anomie/Nosubst/doc
This is a documentation subpage for User:Anomie/Nosubst. It may contain usage information, categories and other content that is not part of the original user template page. |
This template is intended to be used as a wrapper within other templates that should not be substituted, to cause the output of "{{subst:example}}
" to be "{{example}}
".
Usage
[edit]A template that needs to output its own invocation on substitution should be structured something like this:
{{{{{|safesubst:}}}nosubst|TEMPLATENAME|1|{{{1|¬}}}|2|{{{2|¬}}}|content= ... existing template content, to be output when not substed ... }}
The name of the template must be passed as the first unnamed parameter, and the actual content of the template must be passed as the named parameter content
. Up to 10 optional parameters to the parent template may be supported by passing the name of each to the second, fourth, etc. unnamed parameters and the passed value of the parameter as the third, fifth, etc. unnamed parameter. Note that an explicit parameter value of ¬
will be treated the same as an unspecified parameter, i.e. the parameter will not be output.
See also
[edit]