Jump to content
šŸ—³ļøšŸ–„ļø The Wikimedia Foundation December 2024 Developer Satisfaction Survey closes on the 2025-01-03. This survey helps us measure developer satisfaction, and prioritize work on tools and platforms for our technical contributors.

Template:Button

From wikiNonStop
Revision as of 03:13, 25 October 2022 by en>Izno (rm unnecessary vendor specifics)
(diff) ā† Older revision | Latest revision (diff) | Newer revision ā†’ (diff)

Hello, World!

Template documentation


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
  • {{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)
  • {{Kbd}} ā€“ to indicate user input (of any kind) without making it look like keys or buttons