Template:Shortcut: Difference between revisions
Jump to navigation
Jump to search
Created page with ": " |
No edit summary |
||
| Line 1: | Line 1: | ||
/ | <includeonly>{{tsl|Template:Shortcut/styles.css}}<!-- | ||
--><div class="toc toccolours shortcut-box" style="clear: {{{align|right}}}; float: {{{align|right}}}; margin: {{{margin|0 0 1em 1em}}};"><!-- | |||
--><div class="shortcut-box-title>{{ #if: {{{redirect|}}} | Redirect | Shortcut }}{{ #if: {{{2|}}} | s }}</div><!-- | |||
--><div class="shortcut-box-row">{{fullurl|{{transclude|{{{1}}}}}|redirect{{=}}no|text={{{1}}}}}</div><!-- | |||
-->{{ #if: {{{2|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{2}}}}}|redirect{{=}}no|text={{{2}}}}}</div> }}<!-- | |||
-->{{ #if: {{{3|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{3}}}}}|redirect{{=}}no|text={{{3}}}}}</div> }}<!-- | |||
-->{{ #if: {{{4|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{4}}}}}|redirect{{=}}no|text={{{4}}}}}</div> }}<!-- | |||
-->{{ #if: {{{5|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{5}}}}}|redirect{{=}}no|text={{{5}}}}}</div> }}<!-- | |||
-->{{ #if: {{{6|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{6}}}}}|redirect{{=}}no|text={{{6}}}}}</div> }}<!-- | |||
-->{{ #if: {{{7|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{7}}}}}|redirect{{=}}no|text={{{7}}}}}</div> }}<!-- | |||
-->{{ #if: {{{8|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{8}}}}}|redirect{{=}}no|text={{{8}}}}}</div> }}<!-- | |||
-->{{ #if: {{{9|}}} | <div class="shortcut-box-row">{{fullurl|{{transclude|{{{9}}}}}|redirect{{=}}no|text={{{9}}}}}</div> }}<!-- | |||
--></div></includeonly><noinclude> | |||
=== Documentation === | |||
{{shortcut|short|shc}} | |||
Used to show up to 9 shortcut redirects for templates. | |||
{{-}} | |||
== Usage == | |||
{{shortcut|cmd}} | |||
<code><nowiki>{{shortcut|cmd}}</nowiki></code> | |||
{{-}} | |||
{{shortcut|v|cmd|verlink}} | |||
<code><nowiki>{{shortcut|v|cmd|verlink}}</nowiki></code> | |||
{{-}} | |||
{{shortcut|redirect=yes|a}} | |||
<code><nowiki>{{shortcut|redirect=yes|a}}</nowiki></code> | |||
{{-}} | |||
== TemplateData == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "First shortcut", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Second shortcut", | |||
"type": "wiki-page-name" | |||
}, | |||
"3": { | |||
"label": "Third shortcut", | |||
"type": "wiki-page-name" | |||
}, | |||
"4": { | |||
"label": "Fourth shortcut", | |||
"type": "wiki-page-name" | |||
}, | |||
"5": { | |||
"label": "Fifth shortcut", | |||
"type": "wiki-page-name" | |||
}, | |||
"6": { | |||
"label": "Sixth shortcut", | |||
"type": "wiki-page-name" | |||
}, | |||
"7": { | |||
"label": "Seventh shortcut", | |||
"type": "wiki-page-name" | |||
}, | |||
"8": { | |||
"label": "Eighth shortcut", | |||
"type": "wiki-page-name" | |||
}, | |||
"9": { | |||
"label": "Ninth shortcut", | |||
"type": "wiki-page-name" | |||
}, | |||
"align": { | |||
"label": "Force alignment", | |||
"description": "Overrides the default alignment (right-aligned).", | |||
"example": "left", | |||
"type": "string" | |||
}, | |||
"margin": { | |||
"label": "Margins", | |||
"description": "Override the default margins (default: 0em 0em 1em 1em)", | |||
"type": "string" | |||
}, | |||
"redirect": { | |||
"label": "Redirect?", | |||
"description": "Changes the title from 'Shortcut' to 'Redirect' if set", | |||
"type": "string", | |||
"autovalue": "yes" | |||
} | |||
}, | |||
"description": "Shows a floating box that will list the shortcuts to the page or section.", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3", | |||
"4", | |||
"5", | |||
"6", | |||
"7", | |||
"8", | |||
"9", | |||
"align", | |||
"margin", | |||
"redirect" | |||
], | |||
"format": "inline" | |||
}</templatedata> | |||
[[Category:Documentation templates]] | |||
[[ru:Шаблон:Краткий вызов]] | |||
</noinclude> | |||
Revision as of 16:44, 15 January 2026
Documentation
Used to show up to 9 shortcut redirects for templates.
Usage
Shortcut
{{shortcut|cmd}}
{{shortcut|v|cmd|verlink}}
Redirect
{{shortcut|redirect=yes|a}}
TemplateData
Shows a floating box that will list the shortcuts to the page or section.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| First shortcut | 1 | no description | Page name | required |
| Second shortcut | 2 | no description | Page name | optional |
| Third shortcut | 3 | no description | Page name | optional |
| Fourth shortcut | 4 | no description | Page name | optional |
| Fifth shortcut | 5 | no description | Page name | optional |
| Sixth shortcut | 6 | no description | Page name | optional |
| Seventh shortcut | 7 | no description | Page name | optional |
| Eighth shortcut | 8 | no description | Page name | optional |
| Ninth shortcut | 9 | no description | Page name | optional |
| Force alignment | align | Overrides the default alignment (right-aligned).
| String | optional |
| Margins | margin | Override the default margins (default: 0em 0em 1em 1em) | String | optional |
| Redirect? | redirect | Changes the title from 'Shortcut' to 'Redirect' if set
| String | optional |