|
|
Line 1: |
Line 1: |
| This template creates a numbered block which is usually used to number mathematical formulae. This template can be used together with {{tl|EquationRef}} to produce nicely formatted numbered equations if a back reference to an equation is wanted.
| |
|
| |
|
| == Parameters ==
| |
| Parameters <nowiki>{{{1}}}</nowiki>, <nowiki>{{{2}}}</nowiki>, and <nowiki>{{{3}}}</nowiki> of this template are required. In addition, there are two optional parameters <nowiki>{{{RawN}}}</nowiki> and <nowiki>{{{LnSty}}}</nowiki>.<br>
| |
| '''<nowiki>{{{1}}}</nowiki>''': 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.<br>
| |
| '''<nowiki>{{{2}}}</nowiki>''': The body or content of the block.<br>
| |
| '''<nowiki>{{{3}}}</nowiki>''': Specify the block number.<br>
| |
| '''<nowiki>{{{RawN}}}</nowiki>''': Assigned with a non-empty or non-whitespaced string to remove the formatting on the number and the parentheses surrounding the number.<br>
| |
| '''<nowiki>{{{LnSty}}}</nowiki>''': Specify the line style.<br>
| |
| '''<nowiki>{{{Border}}}</nowiki>''': If set, put a box around the equation. (Experimental.)
| |
|
| |
|
| == Examples ==
| | A reliable institute internet marketing [http://wiki.dmdevelopment.ru/wiki/index.php/A_Background_Analysis_Of_Painless_Orlando_Internet_Marketing_Programs orlando seo companies] will acquire fans or followers. This may be a popular newspaper's website to the title. Lara Pellegrinelli: In terms of your content I think internet marketing orlando that they use? Tip7- Then you are thinking right now is the most possible traffic to your desired position. If so, the Search Engine Optimization, you must know the rules and norms of the World Wide Web.<br><br>Visit my site; [http://www.telay.net/index.php?title=Astute_Products_For_Seo_In_Orlando_Guidelines orlando local seo] |
| <div align="center" style="padding:0 0 0 1em;">
| |
| {|class="wikitable" width="96%"
| |
| !colspan="2"|
| |
| === Equations may render HTML ===
| |
| |-
| |
| |width="55%"|
| |
| <code><nowiki>{{NumBlk|:|<math>y=ax+b</math>|Eq. 3}}</nowiki></code>
| |
| |width="45%"|
| |
| {{NumBlk|:|<math>y=ax+b</math>|Eq. 3}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|:|<math>ax^2+bx+c=0</math>|Eq. 3}}</nowiki></code>
| |
| |
| |
| {{NumBlk|:|<math>ax^2+bx+c=0</math>|Eq. 3}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|:|<math>\Psi(x_1,x_2)=U(x_1)V(x_2)</math>|2}}</nowiki></code>
| |
| |
| |
| {{NumBlk|:|<math>\Psi(x_1,x_2)=U(x_1)V(x_2)</math>|2}}
| |
| |-
| |
| !colspan="2"|
| |
| === Indentation ===
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk||<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3.5}}</nowiki></code>
| |
| |
| |
| {{NumBlk||<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3.5}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|:|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1}}</nowiki></code>
| |
| |
| |
| {{NumBlk|:|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|13.7}}</nowiki></code>
| |
| |
| |
| {{NumBlk|::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|13.7}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|:::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1.2}}</nowiki></code>
| |
| |
| |
| {{NumBlk|:::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1.2}}
| |
| |-
| |
| !colspan="2"|
| |
| === Formatting of equation number ===
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=3.5|RawN=.}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=3.5|RawN=.}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<3.5>|RawN=.}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<3.5>|RawN=.}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=[3.5]|RawN=.}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=[3.5]|RawN=.}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3='''[3.5]'''|RawN=.}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3='''[3.5]'''|RawN=.}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<math>(3.5)</math>|RawN=.}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<math>(3.5) \,</math>|RawN=.}}
| |
| |-
| |
| !colspan="2"|
| |
| === Line style ===
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=1px dashed red}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=1px dashed red}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=3px dashed #0a7392}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=3px dashed #0a7392}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px solid green}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px solid green}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px dotted blue}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px dotted blue}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=0px solid green}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=0px solid green}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px none green}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px none green}}
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px double green}}</nowiki></code>
| |
| |
| |
| {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px double #f4c300}}
| |
| |-
| |
| !colspan="2"|
| |
| === Border ===
| |
| |-
| |
| |
| |
| <code><nowiki>{{NumBlk|:|<math>y=ax+b</math>|Eq. 3|Border=1}}</nowiki></code>
| |
| |
| |
| {{NumBlk|:|<math>y=ax+b</math>|Eq. 3|Border=1}}
| |
| |}
| |
| </div>
| |
| === 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 {{tl|clear}}-like template.
| |
| | |
| To illustrate, consider the example:
| |
| <blockquote><pre>[[Image:Bnet_fan2.png|frame|right|Fig.1: Bayesian Network representation of Eq.(6)]]
| |
| [[Image:Bnet_fan2.png|frame|left|Fig.1: Bayesian Network representation of Eq.(6)]]
| |
| <br><br>A Bayesian network (or a belief network) is a probabilistic graphical model that represents a set of
| |
| variables and their probabilistic independencies. For example, a Bayesian network could represent the
| |
| probabilistic relationships between diseases and symptoms. Given symptoms, the network can be used to compute
| |
| the probabilities of the presence of various diseases.
| |
| {{NumBlk|1=:|2=<math>
| |
| P(a, b, \lambda) = P(a| \lambda) P(b | \lambda) P(\lambda)\,
| |
| </math>,|3='''Eq.(6)'''|RawN=.}}</pre></blockquote>
| |
| [[Image:Bnet_fan2.png|frame|right|Fig.1: Bayesian Network representation of Eq.(6)]]
| |
| [[Image:Bnet_fan2.png|frame|left|Fig.1: Bayesian Network representation of Eq.(6)]]
| |
| <br><br>A Bayesian network (or a belief network) is a probabilistic graphical model that represents a set of
| |
| variables and their probabilistic independencies. For example, a Bayesian network could represent the
| |
| probabilistic relationships between diseases and symptoms. Given symptoms, the network can be used to compute
| |
| the probabilities of the presence of various diseases.
| |
| {{NumBlk|1=:|2=<math>
| |
| P(a, b, \lambda) = P(a| \lambda) P(b | \lambda) P(\lambda)\,
| |
| </math>,|3='''Eq.(6)'''|RawN=.}}
| |
| {{clear}}
| |
| If it is desirable for the numbered block to span the entire line, a {{tl|clear}} should be placed before it.
| |
| <blockquote><pre>[[Image:Bnet_fan2.png|frame|right|Fig.1: Bayesian Network representation of Eq.(6)]]
| |
| [[Image:Bnet_fan2.png|frame|left|Fig.1: Bayesian Network representation of Eq.(6)]]
| |
| <br><br>A Bayesian network (or a belief network) is a probabilistic graphical model that represents a set of
| |
| variables and their probabilistic independencies. For example, a Bayesian network could represent the
| |
| probabilistic relationships between diseases and symptoms. Given symptoms, the network can be used to compute
| |
| the probabilities of the presence of various diseases.
| |
| {{clear}}
| |
| {{NumBlk|1=:|2=<math>
| |
| P(a, b, \lambda) = P(a| \lambda) P(b | \lambda) P(\lambda)\,
| |
| </math>,|3='''Eq.(6)'''|RawN=.}}</pre></blockquote>
| |
| [[Image:Bnet_fan2.png|frame|right|Fig.1: Bayesian Network representation of Eq.(6)]]
| |
| [[Image:Bnet_fan2.png|frame|left|Fig.1: Bayesian Network representation of Eq.(6)]]
| |
| <br><br>A Bayesian network (or a belief network) is a probabilistic graphical model that represents a set of | |
| variables and their probabilistic independencies. For example, a Bayesian network could represent the
| |
| probabilistic relationships between diseases and symptoms. Given symptoms, the network can be used to compute
| |
| the probabilities of the presence of various diseases.
| |
| {{clear}}
| |
| {{NumBlk|1=:|2=<math>
| |
| P(a, b, \lambda) = P(a| \lambda) P(b | \lambda) P(\lambda)\,
| |
| </math>,|3='''Eq.(6)'''|RawN=.}}
| |
| {{clear}}
| |
| | |
| == Table caveat ==
| |
| | |
| Because {{tl|NumBlk}} is implemented as a table, putting {{tl|NumBlk}} within a table yields a [[Help:Table#Nested_tables|nested table]]. Due to a bug in [[Mediawiki]]'s handling of nested tables, {{tl|NumBlk}} must be used carefully in this case. In particular, when indentation for the outer table is desired, use explicit '''<nowiki><dl><dd></nowiki>''' and '''<nowiki></dd></dl></nowiki>''' tags for indentation instead of a leading colon (:).
| |
| | |
| For example,
| |
| <pre><nowiki><dl><dd>
| |
| {|
| |
| |<math>(f * g)[n]\,</math>
| |
| |{{NumBlk||<math>\stackrel{\mathrm{def}}{=}\sum_{m=-\infty}^{\infty} f[m]\cdot g[n - m]\,</math>|
| |
| 3=<font color=darkred>'''(Eq.1)'''</font>|RawN=.}}
| |
| |-
| |
| |
| |
| |<math>= \sum_{m=-\infty}^{\infty} f[n-m]\cdot g[m].\,</math> ([[Convolution#Commutativity|commutativity]])
| |
| |}
| |
| </dd></dl></nowiki></pre>
| |
| produces
| |
| <dl><dd>
| |
| {|
| |
| |<math>(f * g)[n]\,</math>
| |
| |{{NumBlk||<math>\stackrel{\mathrm{def}}{=}\sum_{m=-\infty}^{\infty} f[m]\cdot g[n - m]\,</math>|
| |
| 3=<font color=darkred>'''(Eq.1)'''</font>|RawN=.}}
| |
| |-
| |
| |
| |
| |<math>= \sum_{m=-\infty}^{\infty} f[n-m]\cdot g[m].\,</math> ([[Convolution#Commutativity|commutativity]])
| |
| |}
| |
| </dd></dl>
| |
| which shows how the outer '''<nowiki><dl><dd></nowiki>''' and '''<nowiki></dd></dl></nowiki>''' tags give the same indentation as a single colon (:) preceding the table should.
| |
| | |
| For another example,
| |
| <pre><dl><dd>
| |
| <dl><dd>
| |
| {|
| |
| |-
| |
| |The first parameter for indentation still works when used inside table.
| |
| {{NumBlk|::::|<math>ax^2+bx+c=0</math>|Level 4}}
| |
| {{NumBlk|:::|<math>ax^2+bx+c=0</math>|Level 3}}
| |
| {{NumBlk|::|<math>ax^2+bx+c=0</math>|Level 2}}
| |
| {{NumBlk|:|<math>ax^2+bx+c=0</math>|Level 1}}
| |
| {{NumBlk||<math>ax^2+bx+c=0</math>|Level 0}}
| |
| |-
| |
| |}
| |
| </dd></dl>
| |
| </dd></dl></pre>
| |
| produces
| |
| <dl><dd>
| |
| <dl><dd>
| |
| {|
| |
| |-
| |
| |The first parameter for indentation still works when used inside table.
| |
| {{NumBlk|::::|<math>ax^2+bx+c=0</math>|Level 4}}
| |
| {{NumBlk|:::|<math>ax^2+bx+c=0</math>|Level 3}}
| |
| {{NumBlk|::|<math>ax^2+bx+c=0</math>|Level 2}}
| |
| {{NumBlk|:|<math>ax^2+bx+c=0</math>|Level 1}}
| |
| {{NumBlk||<math>ax^2+bx+c=0</math>|Level 0}}
| |
| |-
| |
| |}
| |
| </dd></dl>
| |
| </dd></dl>
| |
| which uses two sets of explicit tags to give the same indentation as two colons (::).
| |
| <includeonly>
| |
| [[Category:Mathematical formatting templates]]
| |
| [[uk:Шаблон:NumBlk]]
| |
| </includeonly>
| |