Difference between revisions of "Template:Key"
Line 1: | Line 1: | ||
+ | <span class="keyboard-key" style="border: 0.2em outset #cecbc7; background: #f0ece8; padding: 0 0.4em 0.1em 0.3em; font-size: 0.8em; white-space: nowrap;">{{{1}}}</span> | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | <noinclude> | ||
+ | [[Category:Templates]] | ||
+ | |||
+ | We're going to need to update our version of MediaWiki and install the [http://www.mediawiki.org/wiki/Extension:ParserFunctions Parser Functions Extension] before we can use the awesomeness. | ||
+ | |||
+ | Copied from [http://en.wikipedia.org/wiki/Template:Keypress Wikipedia] | ||
{{keypress/core| {{{1}}} }}<!-- | {{keypress/core| {{{1}}} }}<!-- | ||
-->{{#if:{{{2|}}}| +{{keypress/core| {{{2}}} }} }}<!-- | -->{{#if:{{{2|}}}| +{{keypress/core| {{{2}}} }} }}<!-- | ||
Line 5: | Line 17: | ||
-->{{#if:{{{5|}}}| +{{keypress/core| {{{5}}} }} }}<!-- | -->{{#if:{{{5|}}}| +{{keypress/core| {{{5}}} }} }}<!-- | ||
-->{{#if:{{{6|}}}| [[Category:Wikipedia keypress template parameter needs fixing]] }}<noinclude> | -->{{#if:{{{6|}}}| [[Category:Wikipedia keypress template parameter needs fixing]] }}<noinclude> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
The guts of this template are transcluded from [[Template:keypress/core]]. | The guts of this template are transcluded from [[Template:keypress/core]]. | ||
</noinclude> | </noinclude> |
Revision as of 11:35, 6 April 2010
{{{1}}}
We're going to need to update our version of MediaWiki and install the Parser Functions Extension before we can use the awesomeness.
Copied from Wikipedia {{#switch:{{{1}}} | shift = ⇧
Shift
| enter = ↵
Enter
| cmd = ⌘
Cmd
| opt = ⌥
Opt
| tab = Tab ⇆
| backspace = ← Backspace
| win
| up = ↑
| down = ↓
| left = ←
| right = →
| #default = {{{1}}}
}}
</br>
{{#if:| +{{#switch:{{{2}}} | shift = ⇧
Shift
| enter = ↵
Enter
| cmd = ⌘
Cmd
| opt = ⌥
Opt
| tab = Tab ⇆
| backspace = ← Backspace
| win
| up = ↑
| down = ↓
| left = ←
| right = →
| #default = {{{2}}}
}}
</br>
}}{{#if:| +{{#switch:{{{3}}}
| shift = ⇧
Shift
| enter = ↵
Enter
| cmd = ⌘
Cmd
| opt = ⌥
Opt
| tab = Tab ⇆
| backspace = ← Backspace
| win
| up = ↑
| down = ↓
| left = ←
| right = →
| #default = {{{3}}}
}}
</br>
}}{{#if:| +{{#switch:{{{4}}}
| shift = ⇧
Shift
| enter = ↵
Enter
| cmd = ⌘
Cmd
| opt = ⌥
Opt
| tab = Tab ⇆
| backspace = ← Backspace
| win
| up = ↑
| down = ↓
| left = ←
| right = →
| #default = {{{4}}}
}}
</br>
}}{{#if:| +{{#switch:{{{5}}}
| shift = ⇧
Shift
| enter = ↵
Enter
| cmd = ⌘
Cmd
| opt = ⌥
Opt
| tab = Tab ⇆
| backspace = ← Backspace
| win
| up = ↑
| down = ↓
| left = ←
| right = →
| #default = {{{5}}}
}}
</br>
}}{{#if:| }}
The guts of this template are transcluded from Template:keypress/core.