টেমপ্লেট:NumBlk
This template creates a numbered block which is usually used to number mathematical formulae. This template can be used together with {{EquationRef}} and {{EquationNote}} to produce nicely formatted numbered equations if a back reference to an equation is wanted.
Parameters
সম্পাদনাCommand: {{NumBlk|<1>|<2>|<3>|RawN=<>|LnSty=<>|Border=<>}}
Parameters {{{1}}}, {{{2}}}, and {{{3}}} of this template are required. In addition, there are three optional parameters {{{RawN}}}, {{{LnSty}}} and {{{Border}}}.
- {{{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}}}: If a non-empty non-whitespace value, no extra formatting will be applied to the block number.
- {{{LnSty}}}: Specify the line style.
- {{{Border}}}: If set, put a box around the equation. (Experimental.)
Examples
সম্পাদনা
Equations may render HTMLসম্পাদনা | ||||||||
---|---|---|---|---|---|---|---|---|
|
| |||||||
|
| |||||||
|
| |||||||
Indentationসম্পাদনা | ||||||||
|
| |||||||
|
| |||||||
|
| |||||||
|
| |||||||
Formatting of equation numberসম্পাদনা | ||||||||
|
| |||||||
|
| |||||||
|
| |||||||
|
| |||||||
|
| |||||||
|
| |||||||
|
| |||||||
Line styleসম্পাদনা | ||||||||
|
| |||||||
|
| |||||||
|
| |||||||
|
| |||||||
|
| |||||||
|
| |||||||
|
| |||||||
Borderসম্পাদনা | ||||||||
|
|
Positioning relative to surrounding images
সম্পাদনাNumbered blocks should be able to be placed around images that take up space on the left or right side of the screen. To ensure numbered block has access to the entire line, consider using a {{clear}}-like template.
To illustrate, consider the example: টেমপ্লেট:Markupv
If it is desirable for the numbered block to span the entire line, a {{clear}} should be placed before it. টেমপ্লেট:Markupv
Table caveat
সম্পাদনাBecause {{NumBlk}} is implemented as a table, putting {{NumBlk}} within a table yields a nested table. Due to a bug in MediaWiki's handling of nested tables, {{NumBlk}} must be used carefully in this case. In particular, when indentation for the outer table is desired, use explicit <dl>
tags for indentation instead of a leading colon (:).
<dd>...</dd>
</dl>
For example,
টেমপ্লেট:Markupv
which shows how the outer <dl>
tags give the same indentation as a single colon (:) preceding the table should.
<dd>...</dd>
</dl>
For another example,
Markup |
| ||||||||||||||||||||||||||||||||||||
Renders as |
|
which uses two sets of explicit tags to give the same indentation as two colons (::).