Difference between revisions of "Template:Button/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Mdaniels5757
(+hatnote as alternative to implementing TPER)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{Hatnote|This template is a non-clickable button. For the most common clickable button, see [[Template:Clickable button 2]].}}
 
{{High use|20,000+}}
 
{{High use|20,000+}}
 
{{used in system}}
 
{{used in system}}

Revision as of 21:44, 17 June 2020

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

  • {{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 File:WikEd close.png
  • {{Button|text=button text|bgcolor=#EEF|bgcolor2=#BBE}} produces button text

Alternatively, {{Button|button text}} also produces button text

See also

  • {{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. Template:Playstation key press)
  • {{Kbd}} – to indicate user input (of any kind) without making it look like keys or buttons