Template:Tlx
The {{tlx}} (template link expanded) template is a simple macro template used to display a template name as a link surrounded by braces within <code>...</code>
, thus showing the template name as code rather than actually invoking it. Its primary use is in instruction and documentation where it is used to refer to a template by name without invoking it.
Usage
(Note: In the following examples, ellipses (groups of three dots) indicate where parameters have been omitted.)
{{tlx|Nihongo|first parameter|second parameter|third|...|twentieth}}
produces:{{Nihongo|first parameter|second parameter|third|...|twentieth}}
Where parameters might contain one or more equals-signs ("="), replace each equals-sign with {{=}}:
{{tlx|Nihongo|first{{=}}something|second|third{{=}}something|...|twentieth}}
produces:{{Nihongo|first=something|second|third=something|...|twentieth}}
For more than ten parameters, possibly also containing equals-signs, use <nowiki>...</nowiki>
thus:
{{tlx|Nihongo|<nowiki>''first''|''second''|''third=something''|...|''999th''</nowiki>}}
produces:{{Nihongo|first|second|third=something|...|999th}}
This template allows an example of calling a template, accompanied by one or more parameters, to be displayed without also causing the template to be called.
Up to 20 of the template's parameters (numbered or nowiki-keywords) may be displayed as placeholders, while more than over 20 parameters can be displayed using a coded vertical bar (pipe) symbol, as in |
. A keyword parameter can be used with equals code = or {{=}} or in nowiki-text: "<nowiki>size=10</nowiki>
" or all parameters as a string in "<nowiki>
" tags. See Wikipedia:Template:Tlx for full, in-depth details about the technicality to the template.
See also
The above documentation is transcluded from Template:Tlx/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |