Template:Equation box: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
mNo edit summary
(Added parameters for bordered/left.)
Line 1: Line 1:
{| style="border-collapse: collapse; {{{table-style|margin: auto;}}}"
{| 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;"
|- style="vertical-align: text-top;"
| <div<includeonly></includeonly> style="padding: 7px 10px; background: #F5FAFF; font-size: 110%; font-weight: bold;"><!--
| <div<includeonly></includeonly> style="padding: 7px 10px; background: #F5FAFF; font-size: 110%; font-weight: bold;"><!--
Line 16: Line 16:
"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 table-style parameter.
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.''
''Editor's note: This should be updated if/when GSWiki supports TeX functionality.''

Revision as of 14:13, 16 February 2016

Sample text

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.

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.