Template:Tlsp/doc: Difference between revisions

From FamilySearch Wiki
(Created page with '{{Documentation subpage}} {{Tlx|{{PAGENAME}}}} is used in template lists. Unlike {{Tlx|Tlp}} it includes "subst". Unlike {{Tlx|Tls}} it allow…')
 
m (→‎Comparison: remove { from template)
Line 61: Line 61:
| {{tlsp|x3|1st|2nd|3rd|4th|5th}}
| {{tlsp|x3|1st|2nd|3rd|4th|5th}}
|-
|-
| {{Tlx|tlu|template:x3|1st<tt>&#124;</tt>2nd<tt>&#124;</tt>3rd}} &#160;
| Tlx tlu template:x3 1st<tt>&#124;</tt>2nd<tt>&#124;</tt>3rd &#160;
| {{tlu|template:x3|1st|2nd|3rd}}
| tlu template:x3 1st 2nd 3rd
|-
|-
| {{Tlx|tlx|x3|1st<tt>&#124;</tt>2nd<tt>&#124;</tt>3rd}}
| {{Tlx|tlx|x3|1st<tt>&#124;</tt>2nd<tt>&#124;</tt>3rd}}

Revision as of 11:58, 10 January 2019

{{Tlsp/doc{{{2}}}{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} is used in template lists. Unlike {{Tlp{{{2}}}{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} it includes "subst". Unlike {{Tls{{{2}}}{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} it allows to specify a parameter. These features are hints how to use the specified template.

Usage[edit source]

Up to five placeholders for parameters of the specified template name:
{{Tlsp/doc{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
{{Tlsp/doc{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
{{Tlsp/doc{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
{{Tlsp/doc{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}
For templates supporting optional substitution just add subst=subst:
{{Tlsp/doc{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}

Example[edit source]

Code Result
{{tlsp{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} {{subst:template{{{2}}}{{{3}}}{{{4}}}{{{5}}}{{{6}}}subst={{{subst}}}}}
{{tlsp{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} {{subst:templatesubst={{{subst}}}}}
{{tlsp{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} {{subst:template{{{3}}}{{{4}}}{{{5}}}{{{6}}}subst={{{subst}}}}}
{{tlsp{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} {{subst:template{{{5}}}{{{6}}}subst={{{subst}}}}}
{{tlsp{{{9}}}{{{10}}}{{{11}}}...}} {{subst:templatesubst={{{subst}}}}}{{tlsp}} only supports up to 5 template parameters
{{tlsp{{{9}}}{{{10}}}{{{11}}}...}} {{subst:template}}

For similar examples see Tlx.

Comparison[edit source]

Code Result
{{tl{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} {{x0}}
{{tlp{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} {{x1{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}}}
{{tls{{{3}}}{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} {{subst:x0}}
{{tlsp{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} {{subst:x3subst={{{subst}}}}}
2nd|3rd   tlu template:x3 1st 2nd 3rd
{{tlx{{{4}}}{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}} {{x3{{{5}}}{{{6}}}{{{7}}}{{{8}}}{{{9}}}{{{10}}}{{{11}}}...}}




See also[edit source]