Template:Shortcut: Difference between revisions

No edit summary
(Updated and added documentation)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| align="right" class="toccolours" cellspacing="2" style="border: 2px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"  
{| width="150px" align="right" cellspacing="2" style="border: 2px solid #{{bulba color dark}}; {{roundy|10px}} margin-left: 5px; margin-bottom: 5px;"  
| align="center" | '''Shortcuts'''<br>{{#switch: {{{1|1}}}|1=[[{{{2}}}]]|2=[[{{{2}}}]]<br>[[{{{3}}}]]|3=[[{{{2}}}]]<br>[[{{{3}}}]]<br>[[{{{4}}}]]|4=[[{{{2}}}]]<br>[[{{{3}}}]]<br>[[{{{4}}}]]<br>[[{{{5}}}]]}}
| align="center" | '''Shortcut{{#if: {{{3|}}}|s| }}'''<br>{{#switch: {{{1|1}}}|1=[[{{{2}}}]]|2=[[{{{2}}}]]<br>[[{{{3}}}]]|3=[[{{{2}}}]]<br>[[{{{3}}}]]<br>[[{{{4}}}]]|4=[[{{{2}}}]]<br>[[{{{3}}}]]<br>[[{{{4}}}]]<br>[[{{{5}}}]]}}
|}<noinclude>[[Category:Table templates]]</noinclude>
|}<noinclude>
{{Documentation}}
[[Category:Navigation templates]]</noinclude>

Latest revision as of 11:53, 15 October 2022

Shortcut
[[{{{2}}}]]



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

This template is used on pages within the Bulbapedia and Help namespaces to show shortcuts that can be used on talk pages to direct other users to official help or guidence.

This template, and the links shown within it, should not be used on articles within the mainspace.

How to use

This template should be placed at the beginning of the page or section the shortcut(s) link to. It supports up to four shortcuts.

The template uses the following syntax:

{{shortcut|<<number of shortcuts>>|<<shortcut 1>>|<<shortcut 2>>|<<shortcut 3>>|<<shortcut 4>>}}

Shortcuts should not include [[ ]].


For example,

{{shortcut|2|B:EXAMPLE|H:EXAMPLE}}

Will create:

Shortcuts
B:EXAMPLE
H:EXAMPLE