Template:Equation box: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{| style="margin: 1em; padding: 0.5em; background:#F5FAFF; border: 1px solid #CEE0F2;"
{| style="border-collapse: collapse; {{{table-style|margin: auto;}}}"
|-
|- 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 16: Line 14:
"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.


[[Category:Math templates]]
By default the box is centered within its allowed area (using "margin: auto"). This can be overridden with the table-style parameter.

''Editor's note: This should be updated if/when GSWiki supports TeX functionality.''

[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 09:52, 6 March 2020

{{{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.