Changes

Jump to navigation Jump to search
2,198 bytes added ,  12:00, 3 November 2019
use live template in examples
{{TemplateBox
|1 = 1
|1label-en= shortcut 1
|1d-en = Name of the first shortcut
|1type = wiki-page-name
|1def = <!-- default value for the parameter -->
|1stat = required

|2 = 2
|2label-en= shortcut 2
|2d-en = Name of the second shortcut
|2type = wiki-page-name
|2def =
|2stat = optional-

|3 = 3
|3label-en= shortcut 3
|3d-en = Name of the third shortcut
|3type = wiki-page-name
|3def =
|3stat = optional-

|4 = 4
|4label-en= shortcut 4
|4d-en = Name of the fourth shortcut
|4type = wiki-page-name
|4def =
|4stat = optional-

|5 = lang
|5label-en= language
|5d-en = Language of the language-dependent output of the template (e.g. “de”). Useful in other templates and translated Commons pages to provide consistent language throughout the template/page
|5type = line
|5def =
|5stat = optional-

|name = shortcut
|desc-en = This template shows the shortcuts of the current page.
|namespace =
|usergroup =
|placement = top
|example-value =
|mustbesubst =
|relieson =
|usage-notes =
|shorthand =
|setscats =
|seealso =
* {{tl|Shortcut2}} to produce a box floating right suited for shortcuts to sections
* {{tl|Redirects}} for redirects to templates
|type =
|i18n-method = switch
|i18n-desc = Localization by {{tl|Shortcut text}}.
|i18n-subpage =
|i18n-mediawiki-msg =
|example =
|print =
|useTemplateData = only
}}
{| class="wikitable"
|+ Usage
|-
!input
!result
|-
|<code style="font-size:smaller">{{tlx|shortcut|COM:COM}}</code>
|{{shortcut|demo=1|COM:COM}}
|-
|<code style="font-size:smaller">{{tlx|shortcut|COM:COM|CAT:CAT}}</code>
|{{shortcut|demo=1|COM:COM|CAT:CAT}}
|}

The output is shown with <code>class="coordinates"</code>, see [[mediawikiwiki:Help:Page status indicators]] for details.<includeonly>
[[Category:Header templates]]
[[Category:Internationalised header templates]]
</includeonly>

Navigation menu