More actions
No edit summary |
No edit summary |
||
| Line 27: | Line 27: | ||
| || Default (without accessory parameters) || {{tlg|example}} || | | || Default (without accessory parameters) || {{tlg|example}} || | ||
|- | |- | ||
| brace || Include braces as part of the template link || {{tlg|brace=yes|example}} || | | brace || Include braces as part of the template link || {{tlg|brace=yes|example}} || | ||
|- | |- | ||
| braceinside || Include innermost braces as part of the template link || {{tlg|example|braceinside=yes}} || | | braceinside || Include innermost braces as part of the template link || {{tlg|example|braceinside=yes}} || | ||
|- | |- | ||
| bold || Renders the template link/name in '''bold''' || {{tlg|bold=yes|example}} || | | bold || Renders the template link/name in '''bold''' || {{tlg|bold=yes|example}} || | ||
|- | |- | ||
| code || Display output using HTML {{tag|code}} tags (monospaced font) || {{tlg|code=yes|example}} || {{tl|tlc}}, {{tl|Template link expanded}}, etc. | | code || Display output using HTML {{tag|code}} tags (monospaced font) || {{tlg|code=yes|example}} || {{tl|tlc}}, {{tl|Template link expanded}}, etc. | ||
|- | |- | ||
| italic || Display any parameters accompanying the template link/name in ''italics'' ||| {{tlg|italic=yes|example|param}} || | | italic || Display any parameters accompanying the template link/name in ''italics'' ||| {{tlg|italic=yes|example|param}} || | ||
|- | |- | ||
| kbd || Display output using HTML {{tag|kbd}} tags (monospaced font) || {{tlg|kbd=yes|example}} || | | kbd || Display output using HTML {{tag|kbd}} tags (monospaced font) || {{tlg|kbd=yes|example}} || | ||
|- | |- | ||
| nolink || Don't render the template name as a link || {{tlg|nolink=yes|example}} || {{tl|tlf | | nolink || Don't render the template name as a link || {{tlg|nolink=yes|example}} || {{tl|tlf}} | ||
|- | |- | ||
| nowrap || Prevent the insertion of line breaks (word wrap) in the output || {{tlg|nowrap=yes|example}} || | | nowrap || Prevent the insertion of line breaks (word wrap) in the output || {{tlg|nowrap=yes|example}} || | ||
| Line 45: | Line 45: | ||
| nowrapname || Prevent word wrapping in the output of template name/link (parameters will wrap if needed) || {{tlg|nowrapname=yes|example}} || | | nowrapname || Prevent word wrapping in the output of template name/link (parameters will wrap if needed) || {{tlg|nowrapname=yes|example}} || | ||
|- | |- | ||
| plaincode || Uses {{tag|code|params=style="border:none; background:transparent;"}} || {{tlg|plaincode=yes|example}} || | | plaincode || Uses {{tag|code|params=style="border:none; background:transparent;"}} || {{tlg|plaincode=yes|example}} || | ||
|- | |- | ||
| subst || Include a subst: prefix before the template link/name || {{tlg|subst=yes|example}} || | | subst || Include a subst: prefix before the template link/name || {{tlg|subst=yes|example}} || | ||
|- | |- | ||
| {{para|alttext|[text]}} || Use [text] as the label for the template link || {{tlg|alttext=Other|example}} || | | {{para|alttext|[text]}} || Use [text] as the label for the template link || {{tlg|alttext=Other|example}} || | ||
|} | |} | ||
Latest revision as of 00:48, 13 March 2025
message_subpage_title
message_subpage_desc
This template, often abbreviated as {{tlg}}, is used to provide stylized formatting to template displays without actually using the template itself.
Parameters
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 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}} |
{{tlc}}, {{Template link expanded}}, etc. |
| 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="border:none; background:transparent;">...</code> |
{{example}} |
|
| subst | Include a subst: prefix before the template link/name | {{subst:example}} | |
| alttext=[text] | Use [text] as the label for the template link | {{Other}} |