Template:Button/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
<!-- Categories and interwikis go at the bottom of this page. -->
<!-- Categories and interwikis go at the bottom of this page. -->


This template provides a "clickable button" formatting style for text. It is '''''not''''' clickable, and care should be taken when using it to avoid readers thinking the result may be.
This template provides a "clickable button" formatting style for text. It 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.)


=== Usage ===
=== Usage ===

Revision as of 21:30, 24 May 2011


This template provides a "clickable button" formatting style for text. It 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.)

Usage

  • {{Button|text=button text}} produces button text
  • {{Button|text=button text|format=bold}} produces button text (note that the button uses the standard ''' formatting marks, so that, as usual, if the button is contained within text that is already bold, "format=bold" will negate the existing formatting, and make it not bold)

Note: to prevent the button breaking across lines, spaces within the button text should be replaced by the non-breaking-space character &nbsp;, i.e. {{Button|text=button&nbsp;text}}

See also