On November 27th, 2022, the 8,000th article was added to the SuccuWiki!

Template:Tlsp/doc: Difference between revisions

From SuccuWiki - The Wiki of the Succubi
Jump to navigation Jump to search
mNo edit summary
 
Line 48: Line 48:
''For similar examples see [[Template talk:Tlx#Example|Tlx]].''
''For similar examples see [[Template talk:Tlx#Example|Tlx]].''


=== Comparison ===
{|
| '''Code'''
| '''Result'''
|-
| {{Tlx|tl|x0}}
| {{tl|x0}}
|-
| {{Tlx|tlp|x1|param}}
| {{tlp|x1|param}}
|-
| {{Tlx|tls|x0}}
| {{tls|x0}}
|-
| {{Tlx|tlsp|x3|1st|2nd|3rd|4th|5th}}
| {{tlsp|x3|1st|2nd|3rd|4th|5th}}
|-
| {{Tlx|tlu|template:x3|1st|2nd|3rd}}  
| {{tlu|template:x3|1st|2nd|3rd}}
|-
| {{Tlx|tlx|x3|1st|2nd|3rd}}
| {{tlx|x3|1st|2nd|3rd}}
|}{{-}}


<includeonly>
<includeonly>
[[Category:Internal link templates|Tlsp]]
[[Category:Internal link templates|Tlsp]]
</includeonly>
</includeonly>

Latest revision as of 20:38, 9 October 2012

{{Tlsp/doc}} is used in template lists. Unlike {{Tlp}} it includes "subst". Unlike {{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:
{{Tlsp/doc|template name}}
{{Tlsp/doc|template name|param}}
{{Tlsp/doc|template name|1|2|3|4|5}}
{{Tlsp/doc|template name|2=param=value}} Note: start from 2 because the "name" is parameter 1. Or...
{{Tlsp/doc|template name|param&#61;value}}
For templates supporting optional substitution just add subst=subst:
{{Tlsp/doc|template name|1|2|3|subst=subst:}}

Example

Code Result
{{tlsp|template}} {{subst:template}}
{{tlsp|template|1st|2nd|3rd|4th|5th}} {{subst:template|1st|2nd|3rd|4th|5th}}
{{tlsp|template|2=param=value}} {{subst:template|param=value}}
{{tlsp|template|param&#61;value}} {{subst:template|param=value}}
{{tlsp|template|1|2|3&#124;okay}} {{subst:template|1|2|3|okay}}
{{tlsp|template|1|2|3|4|5|too many}} {{subst:template|1|2|3|4|5}}{{tlsp}} only supports up to 5 template parameters
{{tlsp|template|1|2|3|4|5|subst=subst:}} {{subst:template|1|2|3|4|5|subst=subst:}}

For similar examples see Tlx.