Template:Button

From Wazeopedia

Revision as of 16:34, 5 July 2017 by PesachZ (talk | contribs) (add template data)

the button

Documentation icon Template documentation[view] [edit] [history] [purge]

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.)

If you need a clickable button, use {{Clickable button}}.

Usage

  • {{Button|text=button text}} produces button text
  • {{Button|text=button text|format=bold}} produces button text
  • {{Button|[[File:WikEd close.png]]|padTB=.1em|padLR=.1em}} produces CloseSquare.png

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

Parameters

This template will accept the following parameters, all are optional except for the text which does not need to be named.

  • |text=button text This is the text that will be shown in the button. This can also be used with the name as shown above by simply adding |button text
  • |padTB=.1em Set the padding for the top and bottom in em units
  • |padLR=.1em Set the padding for the sides in em units
  • |bgcolor= Set the background color of the button
  • |fomat=bold Use this to make the button text bold
  • |style= Use to add any CSS style codes

See also

  • {{key press}} – used to illustrate keystrokes


Add a non-functioning button to a page as an illustration

Template parameters

ParameterDescriptionTypeStatus
the text in the buttontext

no description

Default
empty
Example
empty
Auto value
empty
Stringsuggested
alternate method to add text to the button1

no description

Default
empty
Example
empty
Auto value
empty
Stringsuggested
background colorbgcolor

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
use this to make text boldformat

no description

Default
bold
Example
empty
Auto value
empty
Booleanoptional
vertical padding in em unitspadTB

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
horizontal (side) padding in em unitspadLR

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
CSS style codesstyle

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
The above documentation is transcluded from Template:Button/doc.
Please add categories to the /doc subpage.
Subpages of this template.


Add a non-functioning button to a page as an illustration

Template parameters

ParameterDescriptionTypeStatus
the text in the buttontext

no description

Default
empty
Example
empty
Auto value
empty
Stringsuggested
alternate method to add text to the button1

no description

Default
empty
Example
empty
Auto value
empty
Stringsuggested
background colorbgcolor

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
use this to make text boldformat

no description

Default
bold
Example
empty
Auto value
empty
Booleanoptional
vertical padding in em unitspadTB

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
horizontal (side) padding in em unitspadLR

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
CSS style codesstyle

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional