Content deleted Content added
m Already four. |
Funandtrvl (talk | contribs) add template |
||
(16 intermediate revisions by 15 users not shown) | |||
Line 1:
{{Documentation subpage}}
▲{{Tlx|{{PAGENAME}}}} is used in template lists. Unlike
{{Tlx|Tlp}} it includes "[[WP:SUBST|subst]]". Unlike
{{Tlx|Tls}} it allows to specify a parameter. These
features are hints how to use the specified template.
▲;Up to three placeholders for parameters of the specified template name:
:{{Tlx|
:{{Tlx|
:{{Tlx|Tlsp|template name|3=2=param=value}} Note: start from 2 because the "name" is parameter 1. Or...
:{{Tlx|
;For templates supporting [[Help:Substitution#Optional_substitution|optional substitution]] just add <
▲:{{Tlx|{{PAGENAME}}|template name|param&#61;value}}
▲;For templates supporting [[Help:Substitution#Optional_substitution|optional substitution]] just add <tt>subst=subst:</tt>
▲:{{Tlx|{{PAGENAME}}|template name|1<tt>|</tt>2<tt>|</tt>3|4=subst=subst:}}
<!-- some magic here where Tlx talks about Tlsp,
Tlx has the same limitations wrt parameters -->
Line 27 ⟶ 25:
| {{tlsp|template}}
|-
| {{Tlx|tlsp|template|1st|2nd
| {{tlsp|template|1st|2nd|3rd|4th|5th}}
|-
| {{Tlx|tlsp|template|3=2=param=value}}
|-
| {{Tlx|tlsp|template|param&#61;value}}
| {{tlsp|template|param=value}}
|-
| {{Tlx|tlsp|template|1
| {{tlsp|template|1|2|3|okay}}
|-
| {{Tlx|tlsp|template|1
| {{tlsp|template|1|2|3|4|5|too
|-
| {{Tlx|tlsp|template|1
| {{tlsp|template|1|2|3|4|5|subst=subst:}}
|}
''For similar examples see [[Template talk:Tlx#Example|Tlx]].''
{|
| '''Code'''
Line 59 ⟶ 60:
| {{tls|x0}}
|-
| {{Tlx|tlsp|x3|1st
| {{tlsp|x3|1st|2nd|3rd|4th|5th}}
|-
| {{Tlx|tlu|template:x3|1st
| {{tlu|template:x3|1st|2nd|3rd}}
|-
| {{Tlx|tlx|x3|1st
| {{tlx|x3|1st|2nd|3rd}}
|}{{-}}
▲* {{Lts|{{PAGENAME}}}} up to four parameters
* {{Lts|Tl}} no parameter and no subst
* {{Lts|Tlp}} Tl + parameter
Line 78:
* {{Lts|Tlx}} like Tlsp without subst
{{Template-linking templates}}
<includeonly>▼
[[Category:Internal link templates|Tlsp]]▼
<includeonly>{{Sandbox other||
▲}}</includeonly>
▲{{Pp-template|small=yes}}
▲</includeonly>
|