Template:Key: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (Mvg bot moved page Template:Kk to Template:Key without leaving a redirect: GM name-restructure: Update Key template.)
(GM name-restructure: Fix Outdated call name.)
 
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#if:{{{1|}}}|{{k|{{{1}}}}}<!--
-->{{#if:{{{1|}}}|{{key/box|{{{1}}}}}<!--
-->{{#if:{{{2|}}}|<b>+</b>{{k|{{{2}}}}}<!--
-->{{#if:{{{2|}}}|<b>+</b>{{key/box|{{{2}}}}}<!--
-->{{#if:{{{3|}}}|<b>+</b>{{k|{{{3}}}}}<!--
-->{{#if:{{{3|}}}|<b>+</b>{{key/box|{{{3}}}}}<!--
-->{{#if:{{{4|}}}|<b>+</b>{{k|{{{4}}}}}<!--
-->{{#if:{{{4|}}}|<b>+</b>{{key/box|{{{4}}}}}<!--
-->{{#if:{{{5|}}}|<b>+</b>{{k|{{{5}}}}}<!--
-->{{#if:{{{5|}}}|<b>+</b>{{key/box|{{{5}}}}}<!--
-->}}}}}}}}|(?)}}</includeonly><noinclude
-->}}}}}}}}|(?)}}</includeonly><noinclude
>{{documentation}}</noinclude>
>{{documentation}}</noinclude>

Latest revision as of 15:27, 13 September 2024

Template documentation (for the template shown above, sometimes hidden or invisible)

Keyboard Key(s)

Updated {{Key|<key-string-1>|<key-string-2>|...}} specifically for targeting keyboard key-combination.
Allows multiple key-string inputs(5). So the whole key-combination can be done in a single call.

Usage:

abc {{Key|Aaa|Bbb Bbb|Ccc|Ddd}} xyz, or
abc {{k|Aaa|Bbb Bbb|Ccc|Ddd}} xyz

Result:

abc Aaa+Bbb Bbb+Ccc+Ddd xyz

Visit Template:Key/doc to edit this text! (How does this work?)