Template:Template link spaced: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#Invoke:Template link general|main|nolink=yes|kbd=yes|nowrap=yes}}</includeonly><noinclude> {{Documentation}} <!-- Add categories to the /doc subpage, not here! --> </noinclude>") |
m (Protected "Template:Template link spaced" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
(No difference)
|
Latest revision as of 03:23, 19 June 2023
This template uses Lua: |
This template uses TemplateStyles: |
Purpose and naming
This template, often abbreviated as {{tls}}, is used to provide a monospaced
formatting to template displays without actually using the template itself. The code generated will be displayed inline.
Basic operation
Here is how this template looks. Code is to the left; actual rendering to the right:
- {{tls
|name |parameters}} → {{name|parameters}}
Usage
{{Tls
Examples
Code | Result | Comment |
---|---|---|
{{tls |
{{name}} | |
{{tls |
{{name|one}} | |
{{tls |
{{name|one|two}} | |
{{tls |
{{name|1|2|3|4|5|6|7|8|9|10}} | Ten parameters |
{{tls |
{{name|three|four}} | Empty parameters are discared. |
{{tls |
{{name}} | The use of equal signs is a problem, but there is a fix; see next row. |
{{tls |
{{name|one=a|two=b}} | Use {{=}} in place of an equal sign, so that it gets rendered properly.
|
See Also
- {{Template link}}
- {{Template link code}}
- {{Template link with bold}}
- {{Template link with link off}}
TemplateData
This template is to provide a monospaced formatting template displays without actually using the template itself. Its primary use is in instruction and documentation.
Parameter | Description | Type | Status | |
---|---|---|---|---|
template name | 1 | positional parameter: the template name without the namespace prefix “Template:”, which is added automatically | Template | required |