Template:Subst: Difference between revisions
Appearance
Content deleted Content added
align |
Make parameter optional |
||
(39 intermediate revisions by 29 users not shown) | |||
Line 1: | Line 1: | ||
{{subst:{{#if:{{{1|}}}|[[Template:{{{1}}}|{{{1}}}]]}}}}<noinclude> |
|||
<div align="center"> |
|||
{{Documentation}} |
|||
<div style="background-color:#F9F9F9; border:1px solid #AAA; padding:5px; width: 90%;">[[Image:Info-pictogram.png|left]] |
|||
<!-- Please add categories to the /doc subpage; interwikis go to Wikidata --> |
|||
When using template tags on talk pages, don't forget to [[Wikipedia:Subst|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.</div></div> |
|||
</noinclude> |
|||
<noinclude>{{shortcut|[[TP:SUB]]}}</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. |