Template:Shortcut/doc

From Wikimania 2016 • Esino Lario, Italy
This documentation subpage contains instructions, categories, or other information that is not part of the template. To view the Template page itself, see Template:Shortcut.

The following was imported from meta; use for local purposes as applicable.

Usage

This template is primarily used on Meta process and policy pages to show the shortest alias of a given page.

For usage within other templates, no parameter results in no output.

The optional parameter is typically a link to a shortcut. For example, WM:DP redirects to Meta:Deletion policy, where the following code could be placed.

[[Special:MyLanguage/Meta:Shortcut|Shortcut caption]]:
WM:DP
{{Shortcut|[[WM:DP]]}}

You may specifiy several shortcuts, with up to 5 parameters.

Note

This behaviour is inconsistent with Wikipedia, which expects different parameter (you would use {{Shortcut|WM:DP}} on Wikipedia, and its local template would generate and format the link, instead of the code above where the parameter sometimes contains plain text without any link, or sometimes other formats for template shortcuts). An example is used to document historic/archived versions without linking them anywhere.

[[Special:MyLanguage/Meta:Shortcut|Shortcut caption]]:
2005
{{Shortcut|2005}}

Internationalisation

This template has its header name "Shortcut" or "Shortcuts" translated with the Translate too whose link is present at top of this template page. The colon, word separators (usually space) and list separator (usually a comma) are translated in {{colon}} and {{comma}}.

The language used is the user's current language for the MediaWiki UI.

However the floating side is dependant of the direction for the script used in the language of the current page content, and independant of the user's language.