Difference between revisions of "Template:Button/doc"

From Summertime Saga Wiki
Jump to: navigation, search
(Created page with "This template provides a "clickable button" formatting style for text. '''This button is not clickable''', and care should be taken when using it to avoid readers thinking the...")
 
m (Usage)
Line 3: Line 3:
 
== Usage ==
 
== Usage ==
  
* {{tlx|1=Button|2=text=button text}} produces {{Button|text=button text}}
+
* {{tlx|Button|button text}} produces {{Button|button text}}
* {{tlx|1=Button|2=text=button text|3=format=bold}} produces {{Button|text=button text|format=bold}}
 
* {{tlx|1=Button|2=<nowiki>[[File:WikEd close.png]]</nowiki>|3=padTB=.1em|4=padLR=.1em}} produces {{Button|[[File:WikEd close.png]]|padTB=.1em|padLR=.1em}}
 
* {{tlx|1=Button|2=text=button&nbsp;text|3=bgcolor=#FCC|4=bgcolor2=#FFC}} produces {{Button|text=button text|bgcolor1=#EEF|bgcolor2=#BBE}}
 
Alternatively, {{tlx|1=Button|2=button&nbsp;text}} also produces {{Button|button text}}
 
  
 
== See also ==
 
== See also ==

Revision as of 17:56, 9 June 2019

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

See also

  • Template:Tl – used to illustrate keystrokes, including key combinations
  • HTML Keyboard Input element <kbd>...</kbd> – to indicate any kind of user input without making it look like keys or buttons