Template:Button/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
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.)
<!-- 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.
== Usage ==
* {{tlx|1=Button|2=text=button&nbsp;text}} produces {{Button|text=button text}}
* {{tlx|1=Button|2=text=button&nbsp;text|3=format=bold}} produces {{Button|text=button text|format=bold}}
Alternatively, {{tlx|1=Button|2=button&nbsp;text}} also produces {{Button|button text}}


=== Usage ===
== See also ==
* {{tlx|1=Button|2=text=button text}} produces {{Button|text=button text}}
*[[Template:Key press]]
* {{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>
 
=== See also ===


<includeonly>
<includeonly>
<!-- Categories and interwikis go here: -->
[[Category:Formatting templates]]
[[Category:Wikipedia formatting and function templates]]
</includeonly>
</includeonly>

Latest revision as of 02:32, 22 May 2013

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

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

See also