Template:Shortcut/doc
This is a documentation subpage for Template:Shortcut. It contains usage information, categories, and other content that is not part of the original template page. |
This template uses TemplateStyles: |
Usage
[edit]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.
{{Shortcut|[[WM:DP]]}}
You may specify several shortcuts, with up to 5 parameters.
Note
[edit]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.
{{Shortcut|2005}}
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 is the these same language, that in the current page.
However, the floating side is dependent on the direction of the script used in the language of the current page content, and independent of the user's language.