Template:Tlf/doc
Jump to navigation
Jump to search
This is the {{Tlf}} or template with parameters 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:
- {{Tlf|str len|parameters}} gives {{str len|parameters}}
Features of {{Tlf}}:
- It shows a template name.
- It shows up to eight parameters.
- It also shows empty parameters.
- It prevents line wraps in its output.
- It uses normal text style. (While for instance {{Tlx}} uses teletype text style.)
If you have equal signs in your template parameters then some find it simpler to code it using <nowiki>
tags, or the =
or =
character references. Here's how to do that. Code to the left and actual rendering to the right:
{{Tlf|str len|<nowiki>one=a|two=b</nowiki>}}
= {{str len|one=a|two=b}}- {{Tlf|str len|one=a|two=b}} = {{str len|one=a|two=b}}