Difference between revisions of "Template:Button/doc"
From Xen
Lars.kurth (talk | contribs) m (→Changing the style) |
Lars.kurth (talk | contribs) |
||
Line 14: | Line 14: | ||
{{Button|[http://www.mediawiki.org/ External Link]}} |
{{Button|[http://www.mediawiki.org/ External Link]}} |
||
− | === Changing the |
+ | === Changing the Button Style === |
+ | You can change the button style, by using the <em>style</em> argument. Note this must be the <em>second</em> argument: the first is always the button text (which should be a link). |
||
<pre> |
<pre> |
||
{{Button|[[Sandbox]]|style=btn-success}} |
{{Button|[[Sandbox]]|style=btn-success}} |
||
Line 24: | Line 25: | ||
{{Button|[[Sandbox|Another Link]]|style=btn-big}} |
{{Button|[[Sandbox|Another Link]]|style=btn-big}} |
||
{{Button|[http://www.mediawiki.org External]|style=btn-small btn-success}} |
{{Button|[http://www.mediawiki.org External]|style=btn-small btn-success}} |
||
+ | |||
+ | == Available Styles === |
||
+ | === Button Sizes === |
||
+ | {| |
||
+ | ! Style |
||
+ | |- |
||
+ | |btn-small |
||
+ | |{{Button|[http://www.mediawiki.org External]|style=btn-small}} |
||
+ | |- |
||
+ | |(default, no argument) |
||
+ | |{{Button|[http://www.mediawiki.org External]}} |
||
+ | |- |
||
+ | |btn-big |
||
+ | |{{Button|[http://www.mediawiki.org External]|style=btn-big}} |
||
+ | |} |
Revision as of 15:17, 22 June 2013
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 | |
---|---|
btn-small | External |
(default, no argument) | External |
btn-big | External |