Difference between revisions of "Template:NumBlk"

From SEG Wiki
Jump to: navigation, search
(try bottom margin)
(no harm in trying)
 
Line 1: Line 1:
{{#if:{{{1|}}}|:|}}{|style="border-collapse:collapse; background:none; margin:0 0 2em 0; border:none;"
+
{{#if:{{{1|}}}|:|}}{|style="border-collapse:collapse; background:none; margin:-1em 0 1.5em 0; border:none;"
 
|style="vertical-align:middle; padding:0.08em;" nowrap|{{{2}}}
 
|style="vertical-align:middle; padding:0.08em;" nowrap|{{{2}}}
 
|style="vertical-align:middle; width:99%; padding:0.08em;"|
 
|style="vertical-align:middle; width:99%; padding:0.08em;"|
 
|style="vertical-align:middle; padding:0.08em;" nowrap|'''({{{3}}})'''
 
|style="vertical-align:middle; padding:0.08em;" nowrap|'''({{{3}}})'''
 
|}<noinclude>{{Documentation}}</noinclude>
 
|}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 13:30, 17 April 2014

{{{2}}} ({{{3}}})
[edit] [history] [purge] Documentation icon Template documentation

This template creates a numbered block which is usually used to number mathematical formulae. This template can be used together with {{EquationRef}} to produce nicely formatted numbered equations if a back reference to an equation is wanted.

Parameters

Parameters {{{1}}}, {{{2}}}, and {{{3}}} of this template are required. In addition, there are two optional parameters {{{RawN}}} and {{{LnSty}}}.
{{{1}}}: Specify indentation. The more colons (:) you put, the further indented the block will be, up to a limit of 20. This parameter can be empty if no indentation is needed.
{{{2}}}: The body or content of the block.
{{{3}}}: Specify the block number.
{{{RawN}}}: Assigned with a non-empty or non-whitespaced string to remove the formatting on the number and the parentheses surrounding the number.
{{{LnSty}}}: Specify the line style.
{{{Border}}}: If set, put a box around the equation. (Experimental.)