Template:Shortcut: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<div style="float: right;"> {| class="wikitable" | style="text-align: center; font-size: 85%;" | {{#if: {{{1|}}} <!-- Is there a shortcut parameter? --> | <!-- Yes, there is...") |
Red Leader (talk | contribs) m (Add clear:right) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div style="float: right;"> | <div style="float: right; clear: right;"> | ||
{| class="wikitable" | {| class="wikitable" | ||
| style="text-align: center; font-size: 85%;" | | | style="text-align: center; font-size: 85%;" | | ||
Line 6: | Line 6: | ||
-->{{#if: {{{2|}}} <!-- Plural or singular? --> | -->{{#if: {{{2|}}} <!-- Plural or singular? --> | ||
| <!-- Plural --> <!-- | | <!-- Plural --> <!-- | ||
-->'''[[Help: | -->'''[[Help:Shortcuts|Shortcuts]]</br><!-- | ||
-->[[{{{1}}}]]</br><!-- | -->[[{{{1}}}]]</br><!-- | ||
-->[[{{{2}}}]] | -->[[{{{2}}}]] | ||
| <!-- Singular --> <!-- | | <!-- Singular --> <!-- | ||
-->'''[[Help: | -->'''[[Help:Shortcuts|Shortcut]]</br><!-- | ||
-->[[{{{1}}}]] | -->[[{{{1}}}]] | ||
}}'''<!-- | }}'''<!-- | ||
Line 17: | Line 17: | ||
}} | }} | ||
| <!-- No, there is no shortcut parameter. Throw an error. --> <!-- | | <!-- No, there is no shortcut parameter. Throw an error. --> <!-- | ||
-- | -->{{error|No '''shortcut''' parameter given|shortcut}} | ||
}} | }} | ||
|} | |} | ||
</div><noinclude> | </div><noinclude> | ||
{{-}} | |||
{{Informative template|1= | {{Informative template|1= | ||
__NOTOC__ | __NOTOC__ | ||
Line 33: | Line 34: | ||
== Usage == | == Usage == | ||
Add the template to the top of the page. | Add the template to somewhere at the top of the page. | ||
{{obr}}'''shortcut'''{{!}}shortcut{{!}}''shortcut'' {{!}}''msg=''{{cbr}} | {{obr}}'''shortcut'''{{!}}shortcut{{!}}''shortcut'' {{!}}''msg=''{{cbr}} | ||
The first shortcut parameter is mandatory. All other parameters are optional. | |||
; shortcut: | ; shortcut | ||
: Name of the shortcut. The first one should preferably be an abbreviation. | |||
: The second one can be a little bit longer, for example a word instead of an abbreviation. | |||
; msg: A very short message. | ; msg: A very short message. |
Latest revision as of 17:00, 31 October 2015
{{shortcut}}: No shortcut parameter given |
The following template description is not displayed when the template is inserted in an article.
Goal
This template will add a box with shortcuts on the top right of a page.
With shortcuts you need less typing to get to a page.
Note Use shortcuts only in the Help and FlightGear Wiki namespaces.
Tip Remember to actually add a shortcut to that page. For details, see Help:Shortcuts#Creating shortcuts.
Usage
Add the template to somewhere at the top of the page.
{{shortcut|shortcut|shortcut |msg=}}
The first shortcut parameter is mandatory. All other parameters are optional.
- shortcut
- Name of the shortcut. The first one should preferably be an abbreviation.
- The second one can be a little bit longer, for example a word instead of an abbreviation.
- msg
- A very short message.
Examples
{{shortcut|FGW:VP}}
{{shortcut|FGW:VP|FGW:PUMP}}
{{shortcut|FGW:VP|msg=Wiki</br>discussion}}