Template:Button: Difference between revisions
Jump to navigation
Jump to search
Red Leader (talk | contribs) (Copy from http://en.wikipedia.org/wiki/Template:Button, with a slight changes.) |
Red Leader (talk | contribs) m (Typo) |
||
Line 24: | Line 24: | ||
Press the {{button|Next}} button. | Press the {{button|Next}} button. | ||
<nowiki>{{button|[[File:Tick_32px.png]]|padTB=.4em|padLR=.4em}}</nowiki> | <nowiki>{{button|[[File:Tick_32px.png|16px|link=]]|padTB=.4em|padLR=.4em}}</nowiki> | ||
{{button|[[File:Tick_32px.png|16px]]|padTB=.4em|padLR=.4em}} | {{button|[[File:Tick_32px.png|16px|link=]]|padTB=.4em|padLR=.4em}} | ||
<nowiki>{{button|Bold button|style=font-weight: bold}}</nowiki> | <nowiki>{{button|Bold button|style=font-weight: bold}}</nowiki> |
Latest revision as of 11:40, 10 March 2015
Button
The following template description is not displayed when the template is inserted in an article.
Goal
This template provides a "button" formatting style for text.
Note This button is not clickable.
Usage
{{button|text|padTB=|padLR=|style=}}
All parameters are optional.
- text
- Text to display on the button. Defaults to
Button
.
- padTB
- Amount of padding above and below the text. Defaults to
.1em
.
- padLR
- Amount of padding either side of the text. Defaults to
.4em
.
- style
- Any additional styling you may want to add.
Examples
Press the {{button|Next}} button.
Press the Next button.
{{button|[[File:Tick_32px.png|16px|link=]]|padTB=.4em|padLR=.4em}}
{{button|Bold button|style=font-weight: bold}}
Bold button
See also
- {{key press}} – Used to illustrate keystrokes.