Template:Template link with parameters/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Template link with parameters. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
40px | This template is used on 69,435 pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
This is the template link with parameters (or {{tlp}}) template.
It can be used in documentation and talk page discussions to show how a template name would be used in code.
Here is how this template looks. Code to the left and actual rendering to the right:
- Template:Tlc = {{name|parameters}}
Features of {{tlp}}:
- It shows a template name with a link to that template.
- It shows up to eight parameters.
- It also shows empty parameters. (See examples below.)
- It prevents line wraps in its output.
- It uses normal text style. ({{tlx}}, for instance, uses
<code></code>
text style.)
This template belongs to a whole family of similar templates. See the see also section below for some of them. For instance, when writing documentation you might want to avoid a lot of unnecessary links, since it decreases readability – i.e. on the first occurrence of a template name, use {{tl}}, {{tlp}} or {{Tlx}} and thereafter use {{tlf}}, Template:Tlc or {{tld}}
.
Examples
See also
- {{tl7}}
Template:Template-linking templates