ထႅမ်းပလဵတ်ႉ:Template link code
Appearance
(လုၵ်ႉတီး ထႅမ်းပလဵတ်ႉ:Tld ၼႆႈသေ ၶိုၼ်းပိၼ်ႇဝၢႆႇမႃး)
This template uses Lua: |
This template, often abbreviated as {{Tlg}}, 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 |
{{tlc|Banner}} | {{Banner}} | Banner template does not exist. Be aware with linking to non-existing templates. |
{{tlc|Ok}} | ထႅမ်းပလဵတ်ႉ:Tlc | Ok template does exist |
{{tlc|Convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}} | ထႅမ်းပလဵတ်ႉ:Tlc | Unlimited parameters as one <nowiki>...</nowiki>
string |
{{tlc|Abbr}} | ထႅမ်းပလဵတ်ႉ:Tlc | |
{{tlc|AbbR}} | {{AbbR}} | Template names are case-sensitive. |
{{tlc|abbr}} | ထႅမ်းပလဵတ်ႉ:Tlc | The first letter in template names is case-insensitive, though. |
{{tlc|Abbr|{{Spaces}}tlc{{Spaces}}}} | ထႅမ်းပလဵတ်ႉ:Tlc | Using {{Spaces}} before and after {{{1}}} parameter. |
{{tlc|XCode}} | ထႅမ်းပလဵတ်ႉ:Tlc | |
{{tlc|XCode|code=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | <code> style |
{{tlc|XCode|plaincode=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | Plaincode style |
{{tlc|XCode|kbd=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | <kbd> style |
{{tlc|XCode|bold=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | Bold link/name |
{{tlc|XCode|one|italic=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | Parameter(s) in italics |
{{tlc|XCode|nolink=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | |
{{tlc|XCode|subst=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | |
{{tlc|XCode|brace=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | All braces in link |
{{tlc|XCode|braceinside=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | Only inside braces in link |
{{tlc|XCode|alttext=XCode link}} | ထႅမ်းပလဵတ်ႉ:Tlc | |
{{tlc|XCode|bold=on|code=on|brace=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | No reason you can't combine multiple parameter settings. |
{{tlc|XCode|one}} | ထႅမ်းပလဵတ်ႉ:Tlc | |
{{tlc|XCode|one|two}} | ထႅမ်းပလဵတ်ႉ:Tlc | |
{{tlc|XCode|bold=on|code=on|one|two}} | ထႅမ်းပလဵတ်ႉ:Tlc | Can combine named and positional/unnamed parameters without issue… |
{{tlc|XCode|one|two|bold=on|code=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | …in any order… |
{{tlc|XCode|one|code=on|two|bold=on|three}} | ထႅမ်းပလဵတ်ႉ:Tlc | …even intermixed… |
{{tlc|XCode|one|code=on|two|bold=on|three|italic=on}} | ထႅမ်းပလဵတ်ႉ:Tlc | …with many different configurations. |
{{tlc|XCode|1|2|3|4|5|6|7|8|9|10}} | ထႅမ်းပလဵတ်ႉ:Tlc | |
{{tlc}} | tlc | With no arguments, the current page name is substituted. |
{{tlc|XCode|x=u}} | ထႅမ်းပလဵတ်ႉ:Tlc | Using = won't work. |
{{tlc|XCode|x=u}} | ထႅမ်းပလဵတ်ႉ:Tlc | But = works fine. |
{{tlc|XCode|x{{=}}u}} | ထႅမ်းပလဵတ်ႉ:Tlc | The common shortcut {{=}} is okay too. (See Template equal sign) |
{{tlc|XCode|x<nowiki>=</nowiki>u}} | ထႅမ်းပလဵတ်ႉ:Tlc | Sticky nowiki is okay, too. |
{{tlc|XCode||two||}} | ထႅမ်းပလဵတ်ႉ:Tlc | Empty parameters work too, even at the end! |
{{tlc|XCode|3=two|2=one}} | ထႅမ်းပလဵတ်ႉ:Tlc | Even right-to-left is A-okay. |
Code | Output |
---|---|
{{tlc|Long template name that would wrap to new line|This is a long value for the 1st parameter that would wrap}}
|
ထႅမ်းပလဵတ်ႉ:Tlc |
Code | Output |
---|---|
{{tlc|nowrap=on|Long template name that would wrap to new line|Long value for the 1st parameter that would wrap}}
|
ထႅမ်းပလဵတ်ႉ:Tlc |
Code | Output |
---|---|
{{tlc|nowrapname=on|Long template name that would wrap to new line|Long value for the 1st parameter that would wrap}}
|
ထႅမ်းပလဵတ်ႉ:Tlc |