Template:Equation box: Difference between revisions
Jump to navigation
Jump to search
(Added parameters for bordered/left.) |
No edit summary |
||
Line 1: | Line 1: | ||
{| style="margin: 1em; padding: 0.5em; background:#F5FAFF; border: 1px solid #CEE0F2;" |
|||
{| style="border-collapse: collapse; {{#ifeq:{{{bordered|}}}|{{{bordered|-}}}| border: 1px solid black; | }} {{#ifeq:{{{left|}}}|{{{left|-}}}| margin-left: 2em; | margin: auto; }} {{{table-style|}}}" |
|||
|- |
|||
|- style="vertical-align: text-top;" |
|||
| {{{1}}} |
|||
| <div<includeonly></includeonly> style="padding: 7px 10px; background: #F5FAFF; font-size: 110%; font-weight: bold;"><!-- |
|||
-->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Sample text</noinclude>}}<!-- |
|||
--></div> |
|||
|}<noinclude> |
|}<noinclude> |
||
== Template == |
== Template == |
||
Line 15: | Line 13: | ||
"1 =" is only necessary when the message contains an equality symbol (=), due to wiki parameter parsing rules. |
"1 =" is only necessary when the message contains an equality symbol (=), due to wiki parameter parsing rules. |
||
By default the box is centered within its allowed area (using "margin: auto"). This can be overridden with the "left" parameter. |
|||
''Editor's note: This should be updated if/when GSWiki supports TeX functionality.'' |
|||
[[Category:Templates]] |
[[Category:Templates]] |
Revision as of 14:02, 2 September 2016
{{{1}}} |
Template
{{Equation box |1 = Sample text}}
This template is designed to be used on spell pages or similar layouts with right-aligned navigation boxes. The message is contained in a table and adjusts width to avoid collision with other boxes.
"1 =" is only necessary when the message contains an equality symbol (=), due to wiki parameter parsing rules.