Template:Tlx/doc

< Template:Tlx
自由之民讨论 | 贡献2020年7月4日 (六) 21:21的版本 (创建页面,内容为“<includeonly>Category:模板{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DO…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
这是 Template:Tlx模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。


{{Tlx|<参数1>|<参数2>|<参数3>|<参数4>|<参数5>|<参数……>}}

请看:wikipedia:Template:Tlx


例子

代码 结果 说明
{{tlx|t}} {{t}}  
{{tlx|tl}} {{tl}}  
{{tlx|tlx}} {{tlx}}  
{{tlx|Tlx}} {{Tlx}}  
{{tlx|template|one}} {{template|one}}  
{{tlx|tl|one|two}} {{tl|one|two}}  
{{tlx|tlx|1|2|3|4|5|6|7|8|9|10}} {{tlx|1|2|3|4|5|6|7|8|9|10}}  
{{tlx|tlx|1|2|3|4|5|6|7|8|9|10|11}} {{tlx|1|2|3|4|5|6|7|8|9|10|11}} up to 10 parameters...
{{tlx|tlx|1|2|3|4|5|6|7|8|9|10&#124;11}} {{tlx|1|2|3|4|5|6|7|8|9|10|11}} ...&#124; for more
{{tlx|template|x=u}} {{template}} the straightforward equals-sign won't work...
{{tlx|template|x&#61;u}} {{template|x=u}} ...but &#61; is okay
{{tlx|template|x{{=}}u}} {{template|x=u}} ...and {{=}} is okay
{{tlx|template|<nowiki>x=u</nowiki>}} {{template|x=u}} sticky nowiki also okay
{{tlx|tl| |two}} {{tl|two}} empty won't work...
{{tlx|tl|&#32;|two}} {{tl| |two}} ...but &#32; is okay
{{tlx|tl|&nbsp;|two}} {{tl| |two}} ...&nbsp; is also okay
{{tlx|tl| < nowiki /> |two}} {{tl||two}} nowiki handles the space
{{tlx|tl| &#124; two}} {{tl| | two}} &#124; is okay
{{tlx|tl| {{!}} two}} {{tl | | two}} {{!}} is dubious
{{tlx|tl|2=|3=two}} {{tl|two}} empty really doesn't work
{{tlx|tl|2=one|two}} {{tl|two}} "two" overrides "2=one"
{{tlx|tl|3=two|2=one}} {{tl|one|two}} irregular parameter order is okay