Template:Substituted/doc: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{Documentation subpage}} {{nosubst}} <!--- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE ---> {{tlf|Subst only}} produces the following notice: <div style..." |
Caleb Cooper (talk | contribs) No edit summary |
||
| Line 5: | Line 5: | ||
{{tlf|Subst only}} produces the following notice: |
{{tlf|Subst only}} produces the following notice: |
||
<div style="padding-top:0.5em;padding-bottom:0.6em;">{{Subst only|actualtemplate={{tlg|foo|subst=on}}}}</div> |
<div style="padding-top:0.5em;padding-bottom:0.6em;">{{Subst only|actualtemplate={{tlg|foo|subst=on}}}}</div> |
||
(but {{tlf|Subst only}} itself should '''''not''''' be [[Help:Substitution|substituted]].) |
(but {{tlf|Subst only}} itself should '''''not''''' be [[Wikipedia:Help:Substitution|substituted]].) |
||
=== Usage === |
=== Usage === |
||
<code><nowiki>{{Subst only}}</nowiki></code> |
<code><nowiki>{{Subst only}}</nowiki></code> |
||
{{tlf|Subst only}} should be placed on the {{strong|[[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpage|subpage]]}} of any template that requires [[Help:Substitution|substitution]] rather than [[Wikipedia:Transclusion|transclusion]] (i.e. not on the template's own page itself). |
{{tlf|Subst only}} should be placed on the {{strong|[[Wikipedia:Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpage|subpage]]}} of any template that requires [[Wikipedia:Help:Substitution|substitution]] rather than [[Wikipedia:Transclusion|transclusion]] (i.e. not on the template's own page itself). |
||
Pages that include {{tlf|Subst only}} are added to [[:Category:Wikipedia substituted templates]]. |
Pages that include {{tlf|Subst only}} are added to [[:Category:Wikipedia substituted templates]]. |
||
| Line 16: | Line 16: | ||
=== Parameters === |
=== Parameters === |
||
{{para|auto}} |
{{para|auto}} |
||
: If set as "yes", the template to which the notice refers will be subst:ed automatically unless the {{para|demo|yes}} parameter is set. The notice is amended to state this. Default is "no". Setting this parameter to "yes" places the template in {{cl|Wikipedia templates to be automatically substituted}}; see [[User:AnomieBOT/docs/TemplateSubster]] for more information. |
: If set as "yes", the template to which the notice refers will be subst:ed automatically unless the {{para|demo|yes}} parameter is set. The notice is amended to state this. Default is "no". Setting this parameter to "yes" places the template in {{cl|Wikipedia templates to be automatically substituted}}; see [[Wikipedia:User:AnomieBOT/docs/TemplateSubster]] for more information. |
||
{{para|alt}} |
{{para|alt}} |
||
: Use to set an alternate and transcludable name for the template. |
: Use to set an alternate and transcludable name for the template. |
||
| Line 25: | Line 25: | ||
* {{tl|substituted}} |
* {{tl|substituted}} |
||
* {{tl|substonly}} |
* {{tl|substonly}} |
||
{{List of subst helper templates}} |
|||
<includeonly>{{sandbox other|| |
<includeonly>{{sandbox other|| |
||
Latest revision as of 13:48, 22 October 2020
| This template should not be substituted. |
{{Subst only}} produces the following notice:
| This template should always be substituted (i.e., use {{subst:foo}}). |
(but {{Subst only}} itself should not be substituted.)
Usage
{{Subst only}}
{{Subst only}} should be placed on the documentation subpage of any template that requires substitution rather than transclusion (i.e. not on the template's own page itself).
Pages that include {{Subst only}} are added to Category:Wikipedia substituted templates.
Parameters
|auto=
- If set as "yes", the template to which the notice refers will be subst:ed automatically unless the
|demo=yesparameter is set. The notice is amended to state this. Default is "no". Setting this parameter to "yes" places the template in Category:Wikipedia templates to be automatically substituted; see Wikipedia:User:AnomieBOT/docs/TemplateSubster for more information.
|alt=
- Use to set an alternate and transcludable name for the template.
Redirects
- {{substed}}
- {{substitute}}
- {{substituted}}
- {{substonly}}