Template:Shortcut: Difference between revisions
Jump to navigation
Jump to search
(initial copy) |
(move docs to subpage; code cleaning) |
||
Line 1: | Line 1: | ||
{{#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}} | ||
}}< | }}<noinclude> | ||
{{Documentation}} | |||
{{Documentation | <!-- Add categories and interwikis to the /doc subpage, not here. Thanks. --> | ||
</noinclude> | |||
< | |||
< | |||
Latest revision as of 20:15, 11 December 2017
shortcut:
Usage
shortcut: Main Page
{{Shortcut|Main Page}}
{{Shortcut|Main Page|Packs}}
Supports up to 5 shortcuts.
Source
Code initially taken from Mediawiki - Template:Shortcut/en
Related pages
- {{Shortcut}} - main page
- {{Shortcut/layout}} - responsible for styling
The above documentation is transcluded from Template:Shortcut/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |