Template:Tlf
Jump to navigation
Jump to search
{{tlf|...}}
Template documentation (for the above template, sometimes hidden or invisible)[view] [edit] [history] [refresh]
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}}
The above text is transcluded from Template:Tlf/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?) Please add categories and interwikis to Template:Tlf/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text. (Why?) Please add categories and interwikis to Template:Tlf/doc. (View all subpages of this page.)