Template:Subst: Difference between revisions
Appearance
Content deleted Content added
Pathoschild (talk | contribs) minor changes; standardising (compatibility with lists, list format, HTML comment) |
Make parameter optional |
||
(33 intermediate revisions by 27 users not shown) | |||
Line 1: | Line 1: | ||
{{subst:{{#if:{{{1|}}}|[[Template:{{{1}}}|{{{1}}}]]}}}}<noinclude> |
|||
# <div style="background-color:#F9F9F9; border:1px solid #AAA; padding:5px;"> [[Image:Info-pictogram.png|30px|left]] When using template tags on talk pages, don't forget to [[Wikipedia:Template substitution|substitute with text]] by adding '''subst:''' to the template tag. For example, use {{subst:test}} instead of {{test}}. This reduces server load and prevents accidental blanking of the template. <!-- {{subst}} --></div> <noinclude>{{shortcut|[[TP:SUB]]}}[[Category:User warning templates]]</noinclude> |
|||
{{Documentation}} |
|||
<!-- Please add categories to the /doc subpage; interwikis go to Wikidata --> |
|||
</noinclude> |
Latest revision as of 07:14, 16 April 2021
{{subst:}}
NOTE: This template is for documentation, and does not actually perform template substitution. For information about templates which appear prefixed with subst: , see WP:SUBST. |
Usage
This template is used to help display the wiki code for template substitution. It takes one parameter specifying the name of a template:
Example:
To substitute that template, use {{subst|Medicine}}.
produces:
To substitute that template, use {{subst:Medicine}}.
See also
- {{tls}} - {{tls|foo}} produces {{subst:foo}}.
- {{tlxs}} - similar to tls but allows for multiple parameters
- {{Substitution}} - says whether the template should be substituted or not
This template has not been added to any categories. Please help out by adding categories to it so that it can be listed with similar templates. |