Template:Shortcut: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
(initial copy)
 
(move docs to subpage; code cleaning)
 
Line 1: Line 1:
<onlyinclude>{{#switch:
{{#switch:
| =
| =
{{Shortcut/layout
{{Shortcut/layout
|lang={{pagelang}}
  | lang = {{pagelang}}
|shortcut=shortcut
  | shortcut = shortcut
|shortcuts=shortcuts
  | shortcuts = shortcuts
|shortcuts2={{PLURAL:{{#if:{{{5|}}}|5|{{#if:{{{4|}}}|4|{{#if:{{{3|}}}|3|{{#if:{{{2|}}}|2|1}}}}}}}}|shortcut|shortcuts}}:
  | shortcuts2 = {{PLURAL:{{#if:{{{5|}}}|5|{{#if:{{{4|}}}|4|{{#if:{{{3|}}}|3|{{#if:{{{2|}}}|2|1}}}}}}}}|shortcut|shortcuts}}:
|1={{{1|}}}
  | 1 = {{{1|}}}
|2={{{2|}}}
  | 2 = {{{2|}}}
|3={{{3|}}}
  | 3 = {{{3|}}}
|4={{{4|}}}
  | 4 = {{{4|}}}
|5={{{5|}}}
  | 5 = {{{5|}}}
}}
}}
| #default=
| #default=
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Shortcut|noshift=1}}
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Shortcut|noshift=1}}
}}</onlyinclude>
}}<noinclude>
{{clear}}
{{Documentation}}
{{Documentation |content=
<!-- Add categories and interwikis to the /doc subpage, not here. Thanks. -->
== Usage ==
</noinclude>
{{Shortcut|RL2}}
<pre>{{Shortcut|RL2}}</pre>
 
{{clear}}
 
{{Shortcut|RL2|RL/V2SPEC}}
<pre>{{Shortcut|RL2|RL/V2SPEC}}</pre>
 
Supports up to 5 shortcuts.
}}

Latest revision as of 20:15, 11 December 2017

shortcut:
Template documentation[view] [edit] [history] [purge]

Usage

shortcut: Main Page
{{Shortcut|Main Page}}
shortcuts:
Main Page
Packs
{{Shortcut|Main Page|Packs}}

Supports up to 5 shortcuts.

Source

Code initially taken from Mediawiki - Template:Shortcut/en

Related pages