|
|
| Строка 13: |
Строка 13: |
| | :<tt>{{{{PAGENAME}}|template name|param&#61;value}}</tt> | | :<tt>{{{{PAGENAME}}|template name|param&#61;value}}</tt> |
| | ''Up to three placeholders for parameters of the specified template'' | | ''Up to three placeholders for parameters of the specified template'' |
| − |
| |
| − | === Примеры ===
| |
| − | {| border="1" cellpadding="4" class="wikitable"
| |
| − | ! Code
| |
| − | ! Result
| |
| − | ! Remark
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x0}}
| |
| − | |{{Tlx|x0}}
| |
| − | || 
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x1|one}}
| |
| − | |{{Tlx|x1|one}}
| |
| − | || 
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x2|one|two}}
| |
| − | |{{Tlx|x2|one|two}}
| |
| − | || 
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x3|1<tt>|</tt>2<tt>|</tt>3}}
| |
| − | |{{Tlx|x3|1|2|3}}
| |
| − | || 
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x4|1<tt>|</tt>2<tt>|</tt>3|4}}
| |
| − | |{{Tlx|x4|1|2|3|4}}
| |
| − | |up to 3 parameters
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x4|1<tt>|</tt>2<tt>|</tt>3&#124;4}}
| |
| − | |{{Tlx|x4|1|2|3|4}}
| |
| − | |align="right"|<tt>&#124;</tt> for more
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x1|x=u}}
| |
| − | |{{Tlx|x1|x=u}}
| |
| − | |'''=''' won't work
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x1|x&#61;u}}
| |
| − | |{{Tlx|x1|x=u}}
| |
| − | |align="right"|<tt>&#61;</tt> is okay
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x1|<nowiki>x=u</nowiki>}}
| |
| − | |{{Tlx|x1|<nowiki>x=u</nowiki>}}
| |
| − | |align="right"|sticky nowiki is okay
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x2| |two}}
| |
| − | |{{Tlx|x2| |two}}
| |
| − | |empty won't work
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x2|&#32;|two}}
| |
| − | |{{Tlx|x2| |two}}
| |
| − | |align="right"|<tt>&#32;</tt> is okay
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x2|&nbsp;|two}}
| |
| − | |{{Tlx|x2| |two}}
| |
| − | |align="right"|<tt>&nbsp;</tt> is okay
| |
| − | |-
| |
| − | |{{Tlx|Tlx|x2| &#124; two}}
| |
| − | |{{Tlx|x2| | two}}
| |
| − | |align="right"|<tt>&#124;</tt> is okay
| |
| − | |-
| |
| − | || {{Tlx|Tlx|x2| {{!}} two}}
| |
| − | || {{Tlx|x2| {{!}} two}}
| |
| − | |align="right"|{{Tlx|!}} is dubious
| |
| − | |-
| |
| − | || {{Tlx|Tlx|x2|<nowiki>2=</nowiki>|<nowiki>3=two</nowiki>}}
| |
| − | || {{Tlx|x2|2=|3=two}}
| |
| − | |empty really doesn't work
| |
| − | |-
| |
| − | || {{Tlx|Tlx|x2|<nowiki>2=one</nowiki>|two}}
| |
| − | || {{Tlx|x2|2=one|two}}
| |
| − | |'''two''' clobbers '''2=one'''
| |
| − | |-
| |
| − | || {{Tlx|Tlx|x2|<nowiki>3=two</nowiki>|<nowiki>2=one</nowiki>}}
| |
| − | || {{Tlx|x2|3=two|2=one}}
| |
| − | |align="right"|right to left okay
| |
| − | |}{{-}}
| |
| − |
| |
| − | === Comparison ===
| |
| − |
| |
| − | :''As usual we got a zoo of similar templates,'' '''<sup>*</sup>''' ''marks redirects to {{Tlx|Tlx}}:''
| |
| − |
| |
| − | {| class="wikitable" border="1" cellspacing="2" cellpadding="2"
| |
| − | |-
| |
| − | ! Usage
| |
| − | ! Code
| |
| − | ! Result
| |
| − | |-
| |
| − | |0 Tlx
| |
| − | |<code>{{Tlx|Tlx|Tl}}</code>
| |
| − | |{{Tlx|Tl}}
| |
| − | |-
| |
| − | |0 Tl
| |
| − | |<code>{{Tlx|Tl|Tlx}}</code>
| |
| − | |{{Tl|Tlx}}
| |
| − | |-
| |
| − | |1 Tlx
| |
| − | |<code>{{Tlx|Tlx|Tlp|one}}</code>
| |
| − | |{{Tlx|Tlp|one}}
| |
| − | |-
| |
| − | |1 Tlp
| |
| − | |<code>{{Tlx|Tlp|Tlp|one}}</code>
| |
| − | |{{Tlp|Tlp|one}}
| |
| − | |-
| |
| − | |1 Tetl
| |
| − | |<code>{{Tlx|Tetl|Tlp|one}}</code>
| |
| − | ||{{Tetl|Tlp|one}}
| |
| − | |-
| |
| − | |2 Tlx
| |
| − | |<code>{{Tlx|Tlx|Tl2|one|two}}</code>
| |
| − | |{{Tlx|Tl2|one|two}}
| |
| − | |-
| |
| − | |2 Tlp2 '''<sup>*</sup>'''
| |
| − | |<code>{{Tlx|Tlp2|Tlp|Tl|param}}</code>
| |
| − | | |{{Tlp2|Tlp|Tl|param}}
| |
| − | |-
| |
| − | |2 Tl2 '''<sup>*</sup>'''
| |
| − | |<code>{{Tlx|Tl2|Tlp|Tl|param}}</code>
| |
| − | |{{Tl2|Tlp|Tl|param}}
| |
| − | |-
| |
| − | |3 Tlx
| |
| − | |<code>{{Tlx|Tlx|Tl3|1|2|3}}</code>
| |
| − | |{{Tlx|Tl3|1|2|3}}
| |
| − | |-
| |
| − | |3 Tlp3 '''<sup>*</sup>'''
| |
| − | |<code>{{Tlx|Tlp3|Tl3|1|2|3}}</code>
| |
| − | | |{{Tlp3|Tl3|1|2|3}}
| |
| − | |-
| |
| − | |3 Tl3 '''<sup>*</sup>'''
| |
| − | |<code>{{Tlx|Tl3|x3|1|2|3}}</code>
| |
| − | | |{{Tl3|x3|1|2|3}}
| |
| − | |}{{-}}
| |
| | | | |
| | == См. также == | | == См. также == |
| | * Шаблон {{tl|tl}} | | * Шаблон {{tl|tl}} |
Для указанного шаблона отображается до пяти параметров, остальные параметры отображаются как «| и т. д.».