Template:Button

From Xen
Revision as of 23:50, 22 June 2013 by Lars.kurth (talk | contribs)
Jump to navigationJump to search
{{{1}}}
[edit] [purge] Template documentation

Usage

Basic

Only use for mediwiki links : the CSS for external links does not (yet) work.

{{Button|[[Sandbox]]}}
{{Button|[[Sandbox|Another Link]]}}

These render as:

Changing the Button Style

You can change the button style, by using the style argument. Note this must be the second argument: the first is always the button text (which should be a link).

{{Button|[[Sandbox]]|style=btn-success}}
{{Button|[[Sandbox|Another Link]]|style=btn-big}}
{{Button|[[Sandbox]]|style=btn-small btn-success}}

These render as:

Available Styles

Button Sizes

Style Rendered Button
btn-small
(default)
btn-big

Button Colors

Style Rendered Button
(default)
btn-yellow
btn-green
btn-info
btn-success
btn-warning
btn-danger
btn-inverse
The above documentation is transcluded from Template:Button/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
A print version of this template exists at /Print. If you make a change to this template, please update the print version as well.