Jump to content

Template:Tlg/doc

Ibat king Wikipedia
Ini ing documentation subpage para king Template:Tlg (see that page for the template itself).
Atin yang kabaluan (impormasyun), deng kategorya ampo reng aliwang laman tungkul king pamaggamit a yali parti ning original template page.

{{tlg}} (abbreviating "[t]emplate [l]ink (with) [g]eneral (options)") is a generalised version of the {{tl}} ("template link") template. It can be used to replace or implement {{tl}} and related templates such as {{tlb}}, {{tlx}}, etc.

With the exception of alttext, {{tlg}}'s named parameters are toggles that are either omitted (default) or activated (by being assigned a value such as "on", "yes", "true", "include", etc.). They may be included in any order (see Examples below):

ParameterActionAs in
braceInclude braces as part of the template link
braceinsideInclude innermost braces as part of the template link{{tlw}}
bold
boldlink
boldname
Renders the template link/name in bold{{tlb}}, {{tlx}}, etc.
codeDisplay output using HTML [[HTML element#code|Template:Tag]] tags (monospaced font){{tlc}}, {{tlx}}, etc.
plaincodeUses Template:Tag
kbdDisplay output using HTML [[HTML element#kbd|Template:Tag]] tags (monospaced font){{tltt}}, {{tltt2}}, etc.
italic
italics
Display any parameters accompanying the template link/name in italic/s{{tlxi}}
nolinkDon't render the template name as a link{{tlf}}
nowrapPrevent the insertion of line breaks (word wrap) in the output{{tlp}}, {{tlf}}, etc.
nowrapnamePrevent word wrapping in the output of template name/link (parameters will wrap if needed)
substInclude a subst: prefix before the template link/name{{tls}}
|alttext=[text]Use [text] as the label for the template link{{tla}}

Unnamed (Positional)

[alilan ya ing pikuwanan]

{{tlg}} may take up to ten unnamed parameters as parameters accompanying the template link (or name); see Examples below.

Template:Aligned table

Wrapping of long names (default)
Code Output
{{tlg|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}}
Wrapping of long names (nowrap=on)
Code Output
{{tlg|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}}
Wrapping of long names (nowrapname=on)
Code Output
{{tlg|nowrapname=on|long template name that would wrap to new line|long value for the 1st parameter that would wrap}} long value for the 1st parameter that would wrap}}

Template:Template-linking templates