Difference between revisions of "Template:Button/doc"
From Xen
Lars.kurth (talk | contribs) m |
Lars.kurth (talk | contribs) m (→Button Colors) |
||
Line 50: | Line 50: | ||
|- |
|- |
||
|btn-yellow |
|btn-yellow |
||
− | |{{Button|[ |
+ | |{{Button|[[Sandbox]]|style=btn-yellow}} |
|- |
|- |
||
|btn-green |
|btn-green |
Revision as of 22:46, 22 June 2013
Contents
Usage
Basic
{{Button|[[Sandbox]]}} {{Button|[[Sandbox|Another Link]]}} {{Button|[http://www.mediawiki.org]}} {{Button|[http://www.mediawiki.org/ External Link]}}
These render as:
Sandbox
Another Link
[1]
External Link
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|[http://www.mediawiki.org External]|style=btn-small btn-success}}
These render as:
Sandbox
Another Link
External
Available Styles
Button Sizes
Style | Rendered Button |
btn-small | External |
(default) | External |
btn-big | External |
Button Colors
Style | Rendered Button |
(default) | External |
btn-yellow | Sandbox |
btn-green | External |
btn-info | Sandbox |
btn-success | External |
btn-warning | External |
btn-danger | Sandbox |
btn-inverse | External |