Mudanças entre as edições de "Predefinição:NumBlk"
NumBlk>Silly rabbit |
NumBlk>Silly rabbit m (oops Undid revision 226249874 by Silly rabbit (talk)) |
||
Linha 1: | Linha 1: | ||
− | <includeonly>{{{1}}}{|style="border-collapse:collapse; background:none; width:100%;" border= | + | <includeonly>{{{1}}}{|style="border-collapse:collapse; background:none; width:100%;" border="0" |
|-style="height:3pt" | |-style="height:3pt" | ||
|nowrap rowspan="2"|<p style="margin:0pt 0pt 0pt 0pt;">{{{2}}} </p> | |nowrap rowspan="2"|<p style="margin:0pt 0pt 0pt 0pt;">{{{2}}} </p> | ||
− | |<p style="font-size:1pt; margin:0pt 0pt 0pt 0pt; | + | |<p style="font-size:1pt; margin:0pt 0pt 0pt 0pt;"> </p> |
|nowrap rowspan="2" align="right"|<p style="margin:0pt 0pt 0pt 0pt;"> {{#if:{{{RawN|}}}|{{{3}}}|'''({{{3}}})'''}}</p> | |nowrap rowspan="2" align="right"|<p style="margin:0pt 0pt 0pt 0pt;"> {{#if:{{{RawN|}}}|{{{3}}}|'''({{{3}}})'''}}</p> | ||
|-style="height:2pt" | |-style="height:2pt" | ||
Linha 15: | Linha 15: | ||
'''<nowiki>{{{RawN}}}</nowiki>''': Assigned with a non-empty or non-whitespaced string to remove the formatting on the number and the parentheses surround the number.<br> | '''<nowiki>{{{RawN}}}</nowiki>''': Assigned with a non-empty or non-whitespaced string to remove the formatting on the number and the parentheses surround the number.<br> | ||
'''<nowiki>{{{LnSty}}}</nowiki>''': Specify the line style. | '''<nowiki>{{{LnSty}}}</nowiki>''': Specify the line style. | ||
− | |||
== Example == | == Example == | ||
Linha 64: | Linha 63: | ||
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px double green}}</pre> | <pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px double green}}</pre> | ||
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px double #f4c300}} | {{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px double #f4c300}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Wikipedia formatting templates]] | [[Category:Wikipedia formatting templates]] | ||
[[Category:Templates using ParserFunctions]] | [[Category:Templates using ParserFunctions]] | ||
</noinclude> | </noinclude> |
Edição das 14h47min de 17 de julho de 2008
This template creates a numbered block which is usually used to number mathematical formulae.
Parameter
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. 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 surround the number.
{{{LnSty}}}: Specify the line style.
Example
{{NumBlk|:|<math>y=ax+b</math>|Eq. 3}}
[math]y=ax+b[/math]
{{#if:|Eq. 3|(Eq. 3)}}
{{NumBlk|:|<math>ax^2+bx+c=0</math>|Eq. 3}}
[math]ax^2+bx+c=0[/math]
{{#if:|Eq. 3|(Eq. 3)}}
{{NumBlk|:|<math>\Psi(x_1,x_2)=U(x_1)V(x_2)</math>|2}}
[math]\Psi(x_1,x_2)=U(x_1)V(x_2)[/math]
{{#if:|2|(2)}}
{{NumBlk||<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3.5}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math] |
|
{{#if:|3.5|(3.5)}} |
|
{{NumBlk|:|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:|1|(1)}}
{{NumBlk|::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|13.7}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:|13.7|(13.7)}}
{{NumBlk|:::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1.2}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:|1.2|(1.2)}}
{{NumBlk|:|<math>\mathbf{a}(t)=\lim_{\Delta t \to 0}\frac{\mathbf{v}(t+\Delta t)-\mathbf{v}(t)}{\Delta t} =\frac{\mathrm{d}\mathbf{v}}{\mathrm{d}t}</math>|Eq. 5}}
[math]\mathbf{a}(t)=\lim_{\Delta t \to 0}\frac{\mathbf{v}(t+\Delta t)-\mathbf{v}(t)}{\Delta t} =\frac{\mathrm{d}\mathbf{v}}{\mathrm{d}t}[/math]
{{#if:|Eq. 5|(Eq. 5)}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=3.5}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:|3.5|(3.5)}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=3.5|RawN=.}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|3.5|(3.5)}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<3.5>|RawN=.}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|<3.5>|(<3.5>)}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=[3.5]|RawN=.}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|[3.5]|([3.5])}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3='''[3.5]'''|RawN=.}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|[3.5]|([3.5])}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:|[3.5]|([3.5])}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|[3.5]|([3.5])}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=1px dashed red}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|(3.5)|((3.5))}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=3px dashed #0a7392}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|(3.5)|((3.5))}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px solid green}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|[3.5]|([3.5])}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px dotted blue}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|[3.5]|([3.5])}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=0px solid green}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|[3.5]|([3.5])}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px none green}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|[3.5]|([3.5])}}
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px double green}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
{{#if:.|[3.5]|([3.5])}}