Template:Template link expanded

From HandWiki Stage
Revision as of 01:04, 27 November 2020 by WikiHarold (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{Template:Template link expanded}}

Template documentation[view] [edit] [history] [purge]

Template:Tsh

This template, often abbreviated as Template:Tlf, 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
Template:T
Default active
brace Include braces as part of the template link Template:Tlg Template:Tl/Template:Tl
braceinside Include innermost braces as part of the template link Template:Tlg
bold Renders the template link/name in bold Template:Tlg Template:Tl, Template:Tl
code Display output using HTML <code>...</code> tags (monospaced font) Template:Tlg Template:Tl, Template:Tl, etc.
italic Display any parameters accompanying the template link/name in italics Template:Tlg Template:Tl
kbd Display output using HTML <kbd>...</kbd> tags (monospaced font) Template:Tlg
nolink Don't render the template name as a link Template:Tlg Template:Tl, Template:T, Template:T
nowrap Prevent the insertion of line breaks (word wrap) in the output Template:Tlg
nowrapname Prevent word wrapping in the output of template name/link (parameters will wrap if needed) Template:Tlg
plaincode Uses <code style="border:none; background:transparent;">...</code> Template:Tlg Template:Tl
subst Include a subst: prefix before the template link/name Template:Tlg Template:Tl, Template:Tl, etc
|alttext=[text] Use [text] as the label for the template link Template:Tlg Template:Tl

Unnamed (Positional)

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

Examples

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.
Code Output Remarks
Template:Tlx Template:Tlx Banner template does not exist. Be aware with linking to non-existing templates, although desired.
Template:Tlx Template:Tlx ok template does exist
Template:Tlx Template:Tlx Unlimited parameters as one <nowiki>...</nowiki> string
Template:Tlx Template:Tlx
Template:Tlx Template:Tlx template names are case-sensitive
Template:Tlx Template:Tlx first letter is case-insensitive though
Template:Tlx Template:Tlx Using Template:Tl before and after {{{1}}} parameter.
Template:Tlx Template:Tlx
Template:Tlx Template:Tlx <code> style
Template:Tlx Template:Tlx plaincode style
Template:Tlx Template:Tlx <kbd> style
Template:Tlx Template:Tlx bold link/name
Template:Tlx Template:Tlx parameter/s in italics
Template:Tlx Template:Tlx
Template:Tlx Template:Tlx
Template:Tlx Template:Tlx all braces in link
Template:Tlx Template:Tlx inside braces in link
Template:Tlx Template:Tlx
Template:Tlx Template:Tlx No reason you can't combine multiple parameter settings
Template:Tlx Template:Tlx
Template:Tlx Template:Tlx
Template:Tlx Template:Tlx Can combine named and anonymous parameters …
Template:Tlx Template:Tlx … in any order …
Template:Tlx Template:Tlx … even intermixed …
Template:Tlx Template:Tlx … with many different configurations.
Template:Tlx Template:Tlx
Template:Tlx tlx with no arguments, the current page name is substituted
Template:Tlx Template:Tlx = won't work
Template:Tlx Template:Tlx
&#61; is okay
Template:Tlx Template:Tlx
{{=}} is okay (see template equal sign)
Template:Tlx Template:Tlx
sticky nowiki is okay
Template:Tlx Template:Tlx empty parameters work too, even at the end
Template:Tlx Template:Tlx
right to left okay
Wrapping of long names (default)
Code Output
Template:Tlx Template:Tlx
Wrapping of long names (nowrap=on)
Code Output
Template:Tlx Template:Tlx
Wrapping of long names (nowrapname=on)
Code Output
Template:Tlx Template:Tlx

See also

Template:Tlg