Template:Button: Difference between revisions
Jump to navigation
Jump to search
(Hey! It works :-) |
Red Leader (talk | contribs) m (Typo) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style=" | <span class="nowrap" title="This is not a clickable button; it illustrates the button one should find." style="padding:{{{padTB|.1em}}} {{{padLR|.4em}}}; border:1px solid; border-color:#AAA #555 #555 #AAA; {{border-radius|3px}} background-color: {{{bgcolor|#F2F2F2}}}; {{linear-gradient|top|#FCFCFC, #E0E0E0}} {{{style|}}}">{{{1|Button}}}</span><noinclude>{{Informative template|1= | ||
{{Informative template|1= | |||
__NOTOC__ | __NOTOC__ | ||
== Goal == | == Goal == | ||
This template | This template provides a "button" formatting style for text. | ||
{{inote|This button is '''not''' clickable.}} | |||
== Usage == | == Usage == | ||
<nowiki>{{</nowiki>'''button''' | <nowiki>{{</nowiki>'''button'''{{!}}''text''{{!}}''padTB=''{{!}}''padLR=''{{!}}''style=''<nowiki>}}</nowiki> | ||
All parameters are optional. | |||
; text: Button | ; text: Text to display on the button. Defaults to <code>Button</code>. | ||
; | ; padTB: Amount of padding above and below the text. Defaults to <code>.1em</code>. | ||
; | ; padLR: Amount of padding either side of the text. Defaults to <code>.4em</code>. | ||
; | ; style: Any additional styling you may want to add. | ||
== Examples == | |||
<nowiki>Press the {{button|Next}} button.</nowiki> | |||
Press the {{button|Next}} button. | |||
<nowiki>{{button|[[File:Tick_32px.png|16px|link=]]|padTB=.4em|padLR=.4em}}</nowiki> | |||
{{button|[[File:Tick_32px.png|16px|link=]]|padTB=.4em|padLR=.4em}} | |||
<nowiki>{{button| | <nowiki>{{button|Bold button|style=font-weight: bold}}</nowiki> | ||
{{button|Bold button|style=font-weight: bold}} | |||
== | == See also == | ||
* | * {{tl|key press}} – ''Used to illustrate keystrokes.'' | ||
}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
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.