Template:Button/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


=== 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 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}} <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>
 
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>


=== See also ===
=== See also ===

Revision as of 16:40, 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.

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