Template:Button: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Mind the changes parameter format!)
m (Protected "Template:Button" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span class="nowrap" title="this is not a clickable button, it illustrates the button to look for" style="padding:.23em .6em; {{border-radius|.4em}}; {{linear-gradient|top|#fcfcfc, #dfdfdf}}; border:.1em solid #555; {{#ifeq:{{{format|}}}|bold|font-weight:bold;}}{{{style|}}}">{{{text|the button}}}</span><noinclude>
<span class="nowrap" title="this is not a clickable button, it illustrates the button to look for" style="padding:.2em .6em; border:1px solid; border-color:#aaa #555 #555 #aaa; {{border-radius|3px}} background-color:#f2f2f2; {{linear-gradient|top|#fcfcfc, #e0e0e0}} {{#ifeq:{{{format|}}}|bold|font-weight:bold;}} {{{style|}}}">{{{text|{{{1|the button}}}}}}</span><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 20:21, 27 July 2013

the button

[edit] Template documentation

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