Template:Shortcut/doc: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
m fixed typos and grammar
 
{{Meta-Wiki duplicate content|documentation=true}}
Tag: 2017 source edit
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{Uses TemplateStyles|Template:Shortcut/styles.css}}
{{Uses TemplateStyles|Template:Shortcut/styles.css}}


{{Meta-Wiki duplicate content|documentation=true}}
== 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.

{{Shortcut|[[WM:DP]]}}
<syntaxhighlight lang="html5">
{{Shortcut|[[WM:DP]]}}
</syntaxhighlight>
{{clear}}

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

== Note ==
This behaviour is ''inconsistent with Wikipedia'', which expects different parameter (you would use ''<code><nowiki>{{Shortcut|WM:DP}}</nowiki></code>'' 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}}
<syntaxhighlight lang="html5">
{{Shortcut|2005}}
</syntaxhighlight>
{{clear}}

== Internationalisation ==
This template has its header name "Shortcut" or "Shortcuts" translated with the {{tl|Shortcut caption}}. The colon, word separators (usually space) and list separator (usually a comma) are translated in {{tl|colon}} and {{tl|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.


== See also ==
== See also ==
* {{tl|Template shortcut}}
* {{tl|Template shortcut}}

<includeonly><!-- template categories and interwiki links -->
<includeonly><!-- template categories and interwiki links -->

[[Category:Miscellaneous templates{{#translation:}}|Shortcut]]
[[Category:Miscellaneous templates{{#translation:}}|Shortcut]]
</includeonly>
</includeonly>

Latest revision as of 22:19, 26 March 2024


See also