Difference between revisions of "Template:Button"
From Twilight Heroes Wiki
(Added inline option) |
|||
Line 1: | Line 1: | ||
<includeonly>{| cellspacing="0" align={{#ifeq:{{{2}}}|center|center|left}} style="margin-left: auto; margin-right: auto; border: 2px black solid; padding-right: 8px; padding-left: 8px; background-color: #EEEEEE" | <includeonly>{| cellspacing="0" align={{#ifeq:{{{2}}}|center|center|left}} style="margin-left: auto; margin-right: auto; border: 2px black solid; padding-right: 8px; padding-left: 8px; background-color: #EEEEEE" | ||
| {{{1}}} | | {{{1}}} | ||
− | |}<br clear=all></includeonly><noinclude> | + | |}{{#ifeq:{{{2}}}|inline||<br clear=all>}}</includeonly><noinclude> |
==Usage== | ==Usage== | ||
Line 15: | Line 15: | ||
{{button|text|center}} | {{button|text|center}} | ||
+ | |||
+ | Use <nowiki>{{button|text|inline}}</nowiki> if you want to manually add line breaks rather than the default behavior. | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 13:17, 9 February 2010
Usage
{{button|text}}
yields
text |
{{button|text|center}}
yields
text |
Use {{button|text|inline}} if you want to manually add line breaks rather than the default behavior.