Pergi ke kandungan

Templat:Template link general/doc

Lua' Wikipidia

Ralat ungkapan: Pengendali < tidak dijangka Templat:Tsh Templat:Lua

This template, often abbreviated as Templat:Tlf, is used to provide stylized formatting to template displays without actually using the template itself. The code generated will be displayed inline. For a multi-line output, see {{tj}}.

Parameters

[nguba poon]

With the exception of Templat: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 for all alternate options.

Parameter Action Use with
{{example}}
Default active
Default (without accessory parameters) Templat:Tlg
brace Include braces as part of the template link Templat:Tlg {{tlw}}/{{tn}}
braceinside Include innermost braces as part of the template link Templat:Tlg
bold Renders the template link/name in bold Templat:Tlg {{tlb}}, {{tlxb}}
code Display output using HTML [[HTML element#code|Templat:Tag]] tags (monospaced font) Templat:Tlg {{tlc}}, {{Template link expanded}}, etc.
italic Display any parameters accompanying the template link/name in italics Templat:Tlg {{tlxi}}
kbd Display output using HTML [[HTML element#kbd|Templat:Tag]] tags (monospaced font) Templat:Tlg
nolink Don't render the template name as a link Templat:Tlg {{tlf}}, {{tnull}}
nowrap Prevent the insertion of line breaks (word wrap) in the output Templat:Tlg
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) Templat:Tlg
plaincode Uses Templat:Tag Templat:Tlg {{tltss}}
subst Include a subst: prefix before the template link/name Templat:Tlg {{tls}}, {{tlxs}}, etc
alttext=[text] Replace [text] with the actual label to be displayed for the template link Templat:Tlg {{tla}}
_show_result Will also display the result of the template Templat:Template link expanded
_expand Will add a link to the expanded template page Templat:Template link expanded

Unnamed (Positional)

[nguba poon]

This template can take any number of unnamed parameters as parameters accompanying the template link (or name); see Examples below.

Examples

[nguba poon]
Note
On the source sister projects, en.wikipedia and Meta, X0, X1, X2, ..., X9 are sandbox templates for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.

Templat:Aligned table

Wrapping of long names (default)
Code Output
Templat:Tji Templat:Tlg
Wrapping of long names (nowrap=on)
Code Output
Templat:Tji Templat:Tlg
Wrapping of long names (nowrapname=on)
Code Output
Templat:Tji Templat:Tlg

See also

[nguba poon]

Templat:Template-linking templates Templat:Semantic markup templates