Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Button: Difference between revisions

Template page
mNo edit summary
Added a bit more details to the doc page
Line 1: Line 1:
<span style="font-size:95%; border:1px solid #505050; border-radius:5px; background-color:#222222; padding-left:2px; padding-right:2px; padding-bottom:2px; padding-top:0px;"><small><span style="text-transform: capitalize;">{{{1}}}</span></small></span><noinclude>
<includeonly><span style="font-size:95%; border:1px solid #505050; border-radius:5px; background-color:#222222; padding-left:2px; padding-right:2px; padding-bottom:2px; padding-top:0px;"><small><span style="text-transform: capitalize;">{{{1}}}</span></small></span></includeonly><noinclude>
;Description
:Use this template to indicate keyboard button presses.


'''Usage:''' <code><nowiki>{{ button | text }}</nowiki></code>
;Syntax
:<code><nowiki>{{ button | text }}</nowiki></code>


'''Result:''' {{button|Control}} + {{button|C}} will copy stuff!
;Sample output
:<code><nowiki>{{button|CTRL}} + {{button|C}}</nowiki></code> gives:
:{{button|CTRL}} + {{button|C}}
[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>

Revision as of 13:42, 8 January 2017

Description
Use this template to indicate keyboard button presses.
Syntax
{{ button | text }}
Sample output
{{button|CTRL}} + {{button|C}} gives:
CTRL + C