Template:Template link with subst/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (Created documentation from talk page)
 
m (26 revisions imported)
 
(25 intermediate revisions by 23 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
{{used in system|in [[MediaWiki:Newuserlogpagetext]]}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{tl|{{PAGENAME}}}} is a variant of {{Tl|Tl}} for templates which should be [[Wikipedia:Template substitution|substituted]].
{{tl|{{PAGENAME}}}} is a variant of {{Tl|Tl}} for templates which should be [[Wikipedia:Template substitution|substituted]] ''without'' any parameters. For substituted templates ''with'' parameters, try {{tl|Tlsx}}.


== Usage ==
== Usage ==
<nowiki>{{subst:Tls|template name}}</nowiki>
<nowiki>{{Tls|template name}}</nowiki>

== Example ==
== Example ==
{| class="wikitable"
{| class="wikitable"
! Code
! Code
! Result
! Result
|-
|-
| {{Tlx|Tls|x4}}
| {{Tlx|Tls|x4}}
| {{Tls|x4}}
| {{Tls|x4}}
Line 15: Line 17:


== See also ==
== See also ==
* {{lts|subst}}: {{tlp|subst|foo}} prints {{subst|foo}}, without linking.
* {{lts|tls}} this template
* {{lts|tl}} unsubstituted version
* {{lts|tlu}} for outside of the Template space, unsubstituted, monospace font
* {{lts|tlsu}} for outside of the Template space, substituted, monospace font
* {{lts|tlx}} with parameters
* [[:Category:Internal link templates]]
* {{lts|tlsp}} substituted version, with parameters

* {{lts|tlsu}} for outside of the Template space, substituted
{{Template-linking templates}}
* {{lts|tlu}} for outside of the Template space, unsubstituted

* [[:Category:Internal link templates]]
<includeonly>{{Sandbox other||


<!-- ADD CATEGORIES BELOW THIS LINE, PLEASE: -->
<includeonly>
[[Category:Internal template-link templates]]
<!-- ADD CATEGORIES BELOW THIS LINE -->
{{DEFAULTSORT:{{PAGENAME}}}}
[[Category:Internal link templates]]
[[Category:Typing-aid templates]]
[[Category:Typing-aid templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[sl:Template:Tls]]


</includeonly>
}}</includeonly>

Latest revision as of 18:07, January 24, 2022

{{Template link with subst/doc}} is a variant of {{Tl}} for templates which should be substituted without any parameters. For substituted templates with parameters, try {{Tlsx}}.

Usage

{{Tls|template name}}

Example

Code Result
{{Tls|x4}} {{subst:x4}}

See also

Template:Template-linking templates