Difference between revisions of "Template:Button"

Template page
(Adding support for DS buttons. Let's hope this works.)
Tag: Reverted
(Undo revision 22323 by HerrHulaHoop (talk))
Tag: Undo
Line 1: Line 1:
<includeonly>{{#switch: {{{1|}}}
<includeonly><!--
| kbd = {{#if: {{{2|}}} | <kbd>{{{2|}}}</kbd> }}<!--
-->{{#if: {{{1|}}} | <kbd>{{{1|}}}</kbd> }}<!--
-->{{#if: {{{2|}}} | +<kbd>{{{2|}}}</kbd> }}<!--
-->{{#if: {{{3|}}} | +<kbd>{{{3|}}}</kbd> }}<!--
-->{{#if: {{{3|}}} | +<kbd>{{{3|}}}</kbd> }}<!--
-->{{#if: {{{4|}}} | +<kbd>{{{4|}}}</kbd> }}<!--
-->{{#if: {{{4|}}} | +<kbd>{{{4|}}}</kbd> }}<!--
-->{{#if: {{{5|}}} | +<kbd>{{{5|}}}</kbd> }}<!--
-->{{#if: {{{5|}}} | +<kbd>{{{5|}}}</kbd> }}<!--
-->{{#if: {{{6|}}} | +<kbd>{{{6|}}}</kbd> }}
--></includeonly><noinclude><!--
| ds  = {{#if: {{{2|}}} | <span class="ds-button">{{{2|}}}</span> }}<!--
-->This is a template to illustrate keys and keystrokes on a computer keyboard. With additional parameters, a single template can be used to illustrate a combination of multiple keystrokes. For now, up to 5 keystrokes can be recorded in a single parameter.
-->{{#if: {{{3|}}} | +<span class="ds-button">{{{3|}}}</span> }}<!--
-->{{#if: {{{4|}}} | +<span class="ds-button">{{{4|}}}</span> }}<!--
-->{{#if: {{{5|}}} | +<span class="ds-button">{{{5|}}}</span> }}<!--
-->{{#if: {{{6|}}} | +<span class="ds-button">{{{6|}}}</span> }}
}}</includeonly><!--
--><noinclude>This is a template to illustrate keys and keystrokes on a computer keyboard. With additional parameters, a single template can be used to illustrate a combination of multiple keystrokes. For now, up to 5 keystrokes can be recorded in a single parameter.


== Syntax ==
== Syntax ==
'''<nowiki>{{button</nowiki>''' | ''key'' | ''key'' | ''key'' | ''key'' | ''key'' '''}}'''
'''<nowiki>{{button</nowiki>''' | ''key'' | ''key'' | ''key'' | ''key'' | ''key'' '''}}'''
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 15:25, 20 September 2021

This is a template to illustrate keys and keystrokes on a computer keyboard. With additional parameters, a single template can be used to illustrate a combination of multiple keystrokes. For now, up to 5 keystrokes can be recorded in a single parameter.

Syntax

{{button | key | key | key | key | key }}