ਫਰਮਾ:Template link general
ਦਿੱਖ
{{ਫਰਮਾ:Template link general}}
| 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.
Parameters
[ਸੋਧੋ]With the exception of ਫਰਮਾ:Mono, 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. | ਫਰਮਾ:Template link expanded | |
| _expand | Will add a link to the expanded template page. | ਫਰਮਾ:Template link expanded |
Unnamed (Positional)
[ਸੋਧੋ]This template can take any number of unnamed parameters as parameters accompanying the template link (or name); see Examples below.
Examples
[ਸੋਧੋ]| Code | Output |
|---|---|
| ਫਰਮਾ:Template link expanded | {{Long template name that would wrap to new line|This is a long value for the 1st parameter that would wrap}} |
| Code | Output |
|---|---|
| ਫਰਮਾ:Template link expanded | {{Long template name that would wrap to new line|Long value for the 1st parameter that would wrap}} |
| Code | Output |
|---|---|
| ਫਰਮਾ:Template link expanded | {{Long template name that would wrap to new line|Long value for the 1st parameter that would wrap}} |