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
Just a template to "buttonize" text, to make it stand out a bit.
 
Remove background color.
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<span style="border:1px solid #505050; border-radius:5px; background-color:#222222; padding-left:3px; padding-right:3px; padding-bottom:2px;"><small><span style="text-transform: capitalize;">{{{1}}}</span></small></span>
<includeonly><span style="border: 1px solid LightGrey; border-radius: 5px; padding: 2px; padding-top: 0; font-size: 95%; text-transform: capitalize;">{{{1}}}</span></includeonly><noinclude>
<noinclude>
{{documentation}}
'''Usage:''' <nowiki>{{ button | text }}</nowiki>
 
'''Result:''' {{button|Control}} + {{button|C}} will paste stuff!
</noinclude>
</noinclude>

Latest revision as of 17:29, 14 May 2025

Template documentation (for the above template, sometimes hidden or invisible)
Description
Use this template to indicate keyboard button presses.
Usage
{{button|text}}
Example
{{button|CTRL}} + {{button|C}} gives:
CTRL + C
Visit Template:Button/doc to edit this text! (How does this work?) (Refresh this text - why?)