Template:Button/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:Button. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 20,000 pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
This template provides a "clickable button" formatting style for text. This button is not clickable, and care should be taken when using it to avoid readers thinking the result may be. (It has an explanatory tooltip for users hovering over it, but that may not always be displayed, or only displayed after too long a delay, so that it may not show up to people trying to click it.)
If you need a clickable button, use {{Clickable button}}.
Usage[edit source]
{{Button|text=button text}}
produces button text{{Button|text=button text|format=bold}}
produces button text{{Button|[[File:WikEd close.png]]|padTB=.1em|padLR=.1em}}
produces{{Button|text=button text|bgcolor=#FCC|bgcolor2=#FFC}}
produces button text
Alternatively, {{Button|button text}}
also produces button text
See also[edit source]
{{Key press}}
– used to illustrate keystrokes, including key combinations (e.g. Ctrl+x){{Key top}}
– produces a similar visual effect, but includes more symbols and does not directly support key combos (e.g. ⇬ Caps Lock){{PlayStation key press}}
– to simulate gamepad buttons (e.g. △){{Kbd}}
– to indicate user input (of any kind) without making it look like keys or buttons
External links[edit source]
- Template:Button/doc at Wikipedia, the free Terran encyclopedia that anyone can edit.