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

Content deleted Content added
m Added the Arabic page
add template
 
(10 intermediate revisions by 9 users not shown)
Line 1:
{{Documentation subpage}}
{{Tlx|{{PAGENAME}}Tlsp}} is used in template lists. Unlike
 
{{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.
 
=== Usage ===
 
;Up to five placeholders for parameters of the specified template name:
:{{Tlx|{{PAGENAME}}Tlsp|template name}}
:{{Tlx|{{PAGENAME}}Tlsp|template name|param}}
:{{Tlx|{{PAGENAME}}Tlsp|template name|1|2|3|4|5}}
:{{Tlx|{{PAGENAME}}Tlsp|template name|3=2=param=value}} Note: start from 2 because the "name" is parameter 1. Or...
:{{Tlx|{{PAGENAME}}Tlsp|template name|param=value}}
;For templates supporting [[Help:Substitution#Optional_substitution|optional substitution]] just add <ttcode>subst=subst:</ttcode>
:{{Tlx|{{PAGENAME}}Tlsp|template name|1|2|3|6=subst=subst:}}
 
=== Example ===
<!-- some magic here where Tlx talks about Tlsp,
Tlx has the same limitations wrt parameters -->
Line 48 ⟶ 46:
''For similar examples see [[Template talk:Tlx#Example|Tlx]].''
 
=== Comparison ===
{|
| '''Code'''
Line 72 ⟶ 70:
|}{{-}}
 
=== See also ===
* {{Lts|{{PAGENAME}}Tlsp}} up to fourfive parameters
 
* {{Lts|{{PAGENAME}}}} up to four parameters
* {{Lts|Tl}} no parameter and no subst
* {{Lts|Tlp}} Tl + parameter
Line 81 ⟶ 78:
* {{Lts|Tlx}} like Tlsp without subst
 
{{Template-linking templates}}
<includeonly>
[[Category:Internal link templates|Tlsp]]
 
<includeonly>{{Sandbox other||
[[ar:قالب:Tlsp]]
[[Category:Internal template-link templates|Tlsp]]
[[pt:Predefinição:Lpsp]]
}}</includeonly>
[[uk:Шаблон:Tlsp]]
</includeonly>