Template:Template shortcut

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This template can be used to show the names of shortcuts to a template. It can take up to six shortcuts as parameters.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
first shortcut prefixpre

Prefix to be used for the first shortcut

Example
subst:
Lineoptional
first shortcut1

The first shortcut’s title, without namespace prefix

Example
uw-v1
Templaterequired
second shortcut prefixpre2

Prefix to be used for the second shortcut

Example
subst:
Lineoptional
second shortcut2

The second shortcut’s title, without namespace prefix

Example
uw-vand1
Templateoptional
third shortcut prefixpre3

Prefix to be used for the third shortcut

Example
subst:
Lineoptional
third shortcut3

The third shortcut’s title, without namespace prefix

Example
uw-vandal1
Templateoptional
fourth shortcut prefixpre4

Prefix to be used for the fourth shortcut

Example
subst:
Lineoptional
fourth shortcut4

The fourth shortcut’s title, without namespace prefix

Example
uw-test1
Templateoptional
fifth shortcut prefixpre5

Prefix to be used for the fifth shortcut

Example
subst:
Lineoptional
fifth shortcut5

The fifth shortcut’s title, without namespace prefix

Example
vand1
Templateoptional
sixth shortcut prefixpre6

Prefix to be used for the sixth shortcut

Example
subst:
Lineoptional
sixth shortcut6

The sixth shortcut’s title, without namespace prefix

Example
vand1
Templateoptional
languageuselang

Language to display the “shortcut” text in; it also affects on which side of the page the box appears (in case of right-to-left languages). By default the language of the page.

Example
ar
Lineoptional

Usage[edit]

If you want to indicate that {{test1}} has shortcuts named {{vand1}}, {{uw-vandal1}}, and {{uw-test1}}, then you could use one of:

{{template shortcut|uw-v1}}
{{template shortcut|uw-v1|uw-vand1}}
{{template shortcut|uw-v1|uw-vand1|uw-vandal1}}

Internationalisation[edit]

This template has its header name "Shortcut" or "Shortcuts" translated with the {{Shortcut caption}}. The colon, word separators (usually space) and list separator (usually a comma) are translated in {{colon}} and {{comma}}.

The language used (both for text and the box’s floating side) is by default the language of the current page, but it can be overridden using the |uselang=language code parameter.

See also[edit]