ထႅမ်းပလဵတ်ႉ:Tlf
This template uses Lua: |
This template, often abbreviated as {{Tlf}}, is used to provide stylized formatting to template displays without actually using the template itself.
ပႃႇရႃႇမီႇတႃႇ
မႄးထတ်းWith the exception of alttext, the named parameters are toggles that are either omitted (default in most cases) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below). Certain templates have the parameter "on" by default; see the main table below for all alternate options.
Parameter | Action | Use with {{Example}} |
Default active |
---|---|---|---|
Default (without accessory parameters) | {{Example}} | ||
brace | Include braces as part of the template link | {{Example}} | |
braceinside | Include innermost braces as part of the template link | {{Example}} | |
bold | Renders the template link/name in bold | {{Example}} | |
code | Display output using HTML <code>...</code>
tags (monospaced font) || {{Example}} || {{Template link expanded}}
| ||
italic | Display any parameters accompanying the template link/name in italics | {{Example|param}} | |
kbd | Display output using HTML <kbd>...</kbd>
tags (monospaced font) || {{Example}} ||
| ||
nolink | Don't render the template name as a link | {{Example}} | {{Tlf}} |
nowrap | Prevent the insertion of line breaks (word wrap) in the output | {{Example}} | |
nowrapname | Prevent word wrapping in the output of template name/link (parameters will wrap if needed) | {{Example}} | |
plaincode | Uses <code style="background: transparent; border: none;">...</code>
|
{{Example}} |
|
subst | Include a subst: prefix before the template link/name | {{subst:Example}} | {{Tls}}, {{Tlxs}}, etc. |
|alttext=[text] |
Use [text] as the label for the template link | {{Other}} | |
_show_result | Will also display the result of the template. | {{Min|7|-5}} → -5 |
|
_expand | Will add a link to the expanded template page. | {{Min|7|-5}} [1] |
Unnamed (Positional)
မႄးထတ်းThis template can take any number of unnamed parameters as parameters accompanying the template link (or name); see Examples below.
တူဝ်ယၢင်ႇ
မႄးထတ်းCode | Output | Remarks |
{{Tlf|Banner}} | {{Banner}} | Banner template does not exist. Be aware with linking to non-existing templates. |
{{Tlf|Ok}} | {{Ok}} | Ok template does exist |
{{Tlf|Convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}} | {{Convert|14|m|ftin|abbr=out|sp=us}} | Unlimited parameters as one <nowiki>...</nowiki>
string |
{{Tlf|Abbr}} | {{Abbr}} | |
{{Tlf|AbbR}} | {{AbbR}} | Template names are case-sensitive. |
{{Tlf|abbr}} | {{abbr}} | The first letter in template names is case-insensitive, though. |
{{Tlf|Abbr|{{Spaces}}Tlf{{Spaces}}}} | {{Abbr| Tlf }} | Using {{Spaces}} before and after {{{1}}} parameter. |
{{Tlf|XCode}} | {{XCode}} | |
{{Tlf|XCode|code=on}} | {{XCode}} | <code> style |
{{Tlf|XCode|plaincode=on}} | {{XCode}} | Plaincode style |
{{Tlf|XCode|kbd=on}} | {{XCode}} | <kbd> style |
{{Tlf|XCode|bold=on}} | {{XCode}} | Bold link/name |
{{Tlf|XCode|one|italic=on}} | {{XCode|one}} | Parameter(s) in italics |
{{Tlf|XCode|nolink=on}} | {{XCode}} | |
{{Tlf|XCode|subst=on}} | {{XCode}} | |
{{Tlf|XCode|brace=on}} | XCode | All braces in link |
{{Tlf|XCode|braceinside=on}} | XCode | Only inside braces in link |
{{Tlf|XCode|alttext=XCode link}} | {{XCode}} | |
{{Tlf|XCode|bold=on|code=on|brace=on}} | XCode | No reason you can't combine multiple parameter settings. |
{{Tlf|XCode|one}} | {{XCode|one}} | |
{{Tlf|XCode|one|two}} | {{XCode|one|two}} | |
{{Tlf|XCode|bold=on|code=on|one|two}} | {{XCode|one|two}} | Can combine named and positional/unnamed parameters without issue… |
{{Tlf|XCode|one|two|bold=on|code=on}} | {{XCode|one|two}} | …in any order… |
{{Tlf|XCode|one|code=on|two|bold=on|three}} | {{XCode|one|two|three}} | …even intermixed… |
{{Tlf|XCode|one|code=on|two|bold=on|three|italic=on}} | {{XCode|one|two|three}} | …with many different configurations. |
{{Tlf|XCode|1|2|3|4|5|6|7|8|9|10}} | {{XCode|1|2|3|4|5|6|7|8|9|10}} | |
{{Tlf}} | Tlf | With no arguments, the current page name is substituted. |
{{Tlf|XCode|x=u}} | {{XCode}} | Using = won't work. |
{{Tlf|XCode|x=u}} | {{XCode|x=u}} | But = works fine. |
{{Tlf|XCode|x{{=}}u}} | {{XCode|x=u}} | The common shortcut {{=}} is okay too. (See Template equal sign) |
{{Tlf|XCode|x<nowiki>=</nowiki>u}} | {{XCode|x=u}} | Sticky nowiki is okay, too. |
{{Tlf|XCode||two||}} | {{XCode|two}} | Empty parameters work too, even at the end! |
{{Tlf|XCode|3=two|2=one}} | {{XCode|one|two}} | Even right-to-left is A-okay. |
Code | Output |
---|---|
{{Tlf|Long template name that would wrap to new line|This is a long value for the 1st parameter that would wrap}}
|
{{Long template name that would wrap to new line|This is a long value for the 1st parameter that would wrap}} |
Code | Output |
---|---|
{{Tlf|nowrap=on|Long template name that would wrap to new line|Long value for the 1st parameter that would wrap}}
|
{{Long template name that would wrap to new line|Long value for the 1st parameter that would wrap}} |
Code | Output |
---|---|
{{Tlf|nowrapname=on|Long template name that would wrap to new line|Long value for the 1st parameter that would wrap}}
|
{{Long template name that would wrap to new line|Long value for the 1st parameter that would wrap}} |