Difference between revisions of "Template:Tlx/doc"
(Created page with "{{Quoted from other wikis|Wikipedia|Template:Tlx}} This template is similar to {{tl|tl}}, but can take up to 11 parameters separated by “|”. == Usage == ''(Note: In the...") |
(Added category and ZhMGP link) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
This template is similar to {{tl|tl}}, but can take up to 11 parameters separated by “|”. | This template is similar to {{tl|tl}}, but can take up to 11 parameters separated by “|”. | ||
Line 13: | Line 11: | ||
For more than ten parameters - with or without equals-signs - instead wrap the entire list of parameters and their values in {{tag|nowiki}} tags. When you do, you don't need to replace equals-signs. For instance: | For more than ten parameters - with or without equals-signs - instead wrap the entire list of parameters and their values in {{tag|nowiki}} tags. When you do, you don't need to replace equals-signs. For instance: | ||
: {{tlx|tlx|Template|<nowiki><nowiki>''first''|''second''|''third=value''|...|''999th''</nowiki></nowiki>}} produces: {{tlx|Template|<nowiki>first|second|third=value|...|999th</nowiki>}} | : {{tlx|tlx|Template|<nowiki><nowiki>''first''|''second''|''third=value''|...|''999th''</nowiki></nowiki>}} produces: {{tlx|Template|<nowiki>first|second|third=value|...|999th</nowiki>}} | ||
+ | |||
+ | <includeonly>[[zh:模板:Tlx]]</includeonly> | ||
+ | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 23:01, 15 March 2022
This template is similar to {{tl}}, but can take up to 11 parameters separated by “|”.
Usage
(Note: In the following examples, ellipses (groups of three dots) indicate where parameters have been omitted.)
{{tlx|Template|first parameter|second parameter|third parameter|...|tenth parameter}}
produces:{{Template|first parameter|second parameter|third parameter|...|tenth parameter}}
When you want to indicate setting a value to one or more parameters, you would normally use the equals-sign ("="). This doesn't work here; instead use Template:Tlf, like so:
{{tlx|Template|first{{=}}first value|second|third{{=}}third value}}
produces:{{Template|first=first value|second|third=third value}}
For more than ten parameters - with or without equals-signs - instead wrap the entire list of parameters and their values in Template:Tag tags. When you do, you don't need to replace equals-signs. For instance: