Veidne:Template link expanded with bold

Vikipēdijas lapa
Dokumentācijas ikona Veidnes dokumentācija

Izteiksmes kļūda: Negaidīts < operators.

Veidne:Tsh

This template, often abbreviated as {{tlxb}}, is used to provide stylized links to templates without expanding the template itself.

Parameters[labot pirmkodu]

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

Unnamed (Positional)[labot pirmkodu]

This template takes up to ten unnamed parameters as parameters accompanying the template link (or name); see Examples below.

Examples[labot pirmkodu]

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
{{tlxb|Termometro}} Veidne:Tlxb Termometro template does not exist. Be aware with linking to non-existing templates, although desired.
{{tlxb|ok}} Veidne:Tlxb ok template does exist
{{tlxb|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}} Veidne:Tlxb Unlimited parameters as one <nowiki>...</nowiki> string
{{tlxb|Abc}} Veidne:Tlxb
{{tlxb|abC}} Veidne:Tlxb template names are case-sensitive
{{tlxb|abc}} Veidne:Tlxb first letter is case-insensitive though
{{tlxb|abc|{{spaces}}tlxb{{spaces}}}} Veidne:Tlxb Using {{spaces}} before and after {{{1}}} parameter.
{{tlxb|x0}} Veidne:Tlxb
{{tlxb|x0|code=on}} Veidne:Tlxb <code> style
{{tlxb|x0|plaincode=on}} Veidne:Tlxb plaincode style
{{tlxb|x0|kbd=on}} Veidne:Tlxb <kbd> style
{{tlxb|x0|bold=on}} Veidne:Tlxb bold link/name
{{tlxb|x1|one|italic=on}} Veidne:Tlxb parameter/s in italics
{{tlxb|x0|nolink=on}} Veidne:Tlxb
{{tlxb|x0|subst=on}} Veidne:Tlxb
{{tlxb|x0|brace=on}} Veidne:Tlxb all braces in link
{{tlxb|x0|braceinside=on}} Veidne:Tlxb inside braces in link
{{tlxb|x0|alttext=x0 link}} Veidne:Tlxb
{{tlxb|x0|bold=on|code=on|brace=on}} Veidne:Tlxb No reason you can't combine multiple parameter settings
{{tlxb|x1|one}} Veidne:Tlxb
{{tlxb|x2|one|two}} Veidne:Tlxb
{{tlxb|x2|bold=on|code=on|one|two}} Veidne:Tlxb Can combine named and anonymous parameters …
{{tlxb|x2|one|two|bold=on|code=on}} Veidne:Tlxb … in any order …
{{tlxb|x2|one|code=on|two|bold=on|three}} Veidne:Tlxb … even intermixed …
{{tlxb|x2|one|code=on|two|bold=on|three|italic=on}} Veidne:Tlxb … with many different configurations.
{{tlxb|x3|1|2|3|4|5|6|7|8|9|...}} Veidne:Tlxb
{{tlg|x4|1|2|3|4|5|6|7|8|9|10|11}} Veidne:Tlxb up to 10 parameters, then …
{{tlg|x5|1|2|3|4|5|6|7|8|9|10&#124;11}} Veidne:Tlxb
&#124; for more
{{tlxb}} tlxb with no arguments, the current page name is substituted
{{tlxb|x1|x=u}} Veidne:Tlxb = won't work
{{tlxb|x1|x&#61;u}} Veidne:Tlxb
&#61; is okay
{{tlxb|x1|x{{=}}u}} Veidne:Tlxb
{{=}} is okay (see template equal sign)
{{tlxb|x1|x<nowiki>=</nowiki>u}} Veidne:Tlxb
sticky nowiki is okay
{{tlxb|x2||two||}} Veidne:Tlxb empty parameters work too, even at the end
{{tlxb|x2|3=two|2=one}} Veidne:Tlxb
right to left okay
Wrapping of long names (default)
Code Output
{{tlxb|long template name that would wrap to new line|this is a long value for the 1st parameter that would wrap}} Veidne:Tlxb
Wrapping of long names (nowrap=on)
Code Output
{{tlxb|nowrap=on|long template name that would wrap to new line|long value for the 1st parameter that would wrap}} Veidne:Tlxb
Wrapping of long names (nowrapname=on)
Code Output
{{tlxb|nowrapname=on|long template name that would wrap to new line|long value for the 1st parameter that would wrap}} Veidne:Tlxb

See also[labot pirmkodu]

Veidne:Template-linking templates

Veidne:Sandbox other