Template:Button/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
(→‎Usage: no longer applies)
Line 6: Line 6:
=== Usage ===
=== Usage ===
* {{tlx|1=Button|2=text=button text}} produces {{Button|text=button text}}
* {{tlx|1=Button|2=text=button text}} produces {{Button|text=button text}}
* {{tlx|1=Button|2=text=button&nbsp;text|3=format=bold}} produces {{Button|text=button text|format=bold}} <small>(note that the button uses the standard <nowiki>'''</nowiki> 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)</small>
* {{tlx|1=Button|2=text=button&nbsp;text|3=format=bold}} produces {{Button|text=button text|format=bold}}


Note: to prevent the button breaking across lines, spaces within the button text should be replaced by the [[Non-breaking space|non-breaking-space]] character <code>&amp;nbsp;</code>, i.e. <code><nowiki>{{Button|text=button&amp;nbsp;text}}</nowiki></code>
Note: to prevent the button breaking across lines, spaces within the button text should be replaced by the [[Non-breaking space|non-breaking-space]] character <code>&amp;nbsp;</code>, i.e. <code><nowiki>{{Button|text=button&amp;nbsp;text}}</nowiki></code>

Revision as of 16:59, 3 October 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: 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