Mudanças entre as edições de "NumBlk"

De Wiki Coolab
Ir para navegação Ir para pesquisar
EquationNote>Justin545
(+prameters 'LnSty' & 'NoPr')
EquationNote>Justin545
(NoPr -> RowN. change default line style)
Linha 3: Linha 3:
 
|nowrap rowspan="2"|{{{2}}} 
 
|nowrap rowspan="2"|{{{2}}} 
 
|style="padding-top:0pt; padding-bottom:0pt; font-size:1pt;"| 
 
|style="padding-top:0pt; padding-bottom:0pt; font-size:1pt;"| 
|nowrap rowspan="2" align="right"| {{#if:{{{NoPr|}}}||(}}{{{3}}}{{#if:{{{NoPr|}}}||)}}
+
|nowrap rowspan="2" align="right"| {{#if:{{{RowN|}}}|{{{3}}}|'''({{{3}}})'''}}
 
|-
 
|-
|style="padding-top:0pt; padding-bottom:0pt; font-size:1pt; border-top:{{{LnSty|3px dotted black}}}; width:99%;"| 
+
|style="padding-top:0pt; padding-bottom:0pt; font-size:1pt; border-top:{{{LnSty|3px dotted #cccccc}}}; width:99%;"| 
 
|-
 
|-
 
|}</includeonly><noinclude>This template creates a numbered block which is usually used to number mathematical formulae.<br>
 
|}</includeonly><noinclude>This template creates a numbered block which is usually used to number mathematical formulae.<br>
Linha 13: Linha 13:
 
'''<nowiki>{{{2}}}</nowiki>''': The body or content of the block.<br>
 
'''<nowiki>{{{2}}}</nowiki>''': The body or content of the block.<br>
 
'''<nowiki>{{{3}}}</nowiki>''': Specify the block number.<br>
 
'''<nowiki>{{{3}}}</nowiki>''': Specify the block number.<br>
'''<nowiki>{{{NoPr}}}</nowiki>''': Assigned with a non-empty value to remove the parentheses surround the number.<br>
+
'''<nowiki>{{{RowN}}}</nowiki>''': Assigned with a non-empty value to remove the parentheses surround the number.<br>
 
'''<nowiki>{{{LnSty}}}</nowiki>''': Specify the line style.
 
'''<nowiki>{{{LnSty}}}</nowiki>''': Specify the line style.
 
== Example ==
 
== Example ==
Linha 30: Linha 30:
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>}}</pre>
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>}}
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>}}
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.}}</pre>
+
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.}}</pre>
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.}}
+
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.}}
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|NoPr=.|LnSty=1px dashed red}}</pre>
+
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RowN=.|LnSty=1px dashed red}}</pre>
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|NoPr=.|LnSty=1px dashed red}}
+
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RowN=.|LnSty=1px dashed red}}
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|NoPr=.|LnSty=3px dashed #0a7392}}</pre>
+
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RowN=.|LnSty=3px dashed #0a7392}}</pre>
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|NoPr=.|LnSty=3px dashed #0a7392}}
+
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RowN=.|LnSty=3px dashed #0a7392}}
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=3px solid green}}</pre>
+
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.|LnSty=3px solid green}}</pre>
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=3px solid green}}
+
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.|LnSty=3px solid green}}
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=5px dotted blue}}</pre>
+
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.|LnSty=5px dotted blue}}</pre>
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=5px dotted blue}}
+
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.|LnSty=5px dotted blue}}
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=0px solid green}}</pre>
+
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.|LnSty=0px solid green}}</pre>
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=0px solid green}}
+
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.|LnSty=0px solid green}}
 
</noinclude>
 
</noinclude>

Edição das 08h00min de 9 de maio de 2008

This template creates a numbered block which is usually used to number mathematical formulae.

Parameter

All parameters of this template are required.
{{{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.
{{{RowN}}}: Assigned with a non-empty value to remove the parentheses surround the number.
{{{LnSty}}}: Specify the line style.

Example

{{NumBlk||<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3.5}}

{{#if:|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:0px none #e5e5e5; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|3.5|({{ safesubst:#if:1|3.5}})}}

{{#if:|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|:|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:0px none #e5e5e5; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|1|({{ safesubst:#if:1|1}})}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|13.7}}

{{#if:::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:0px none #e5e5e5; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|13.7|({{ safesubst:#if:1|13.7}})}}

{{#if:::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|:::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1.2}}

{{#if::::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:0px none #e5e5e5; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|1.2|({{ safesubst:#if:1|1.2}})}}

{{#if::::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{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}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[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]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:0px none #e5e5e5; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|Eq. 5|({{ safesubst:#if:1|Eq. 5}})}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:0px none #e5e5e5; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|[3.5]|({{ safesubst:#if:1|[3.5]}})}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:0px none #e5e5e5; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|[3.5]|({{ safesubst:#if:1|[3.5]}})}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RowN=.|LnSty=1px dashed red}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:1px dashed red; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|(3.5)|({{ safesubst:#if:1|(3.5)}})}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RowN=.|LnSty=3px dashed #0a7392}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:3px dashed #0a7392; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|(3.5)|({{ safesubst:#if:1|(3.5)}})}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.|LnSty=3px solid green}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:3px solid green; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|[3.5]|({{ safesubst:#if:1|[3.5]}})}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.|LnSty=5px dotted blue}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:5px dotted blue; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|[3.5]|({{ safesubst:#if:1|[3.5]}})}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RowN=.|LnSty=0px solid green}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}

thin solid|none}}; padding:0.08em;" class="nowrap"|
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]
thin solid|none}}; padding:0.08em;"|
thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" rowspan="2"|

 

thin solid|none}}; border-top:0px solid green; border-right:{{#if:|thin solid|none}}; border-bottom:{{#if:|thin solid|none}}; padding:0.08em;"|

 

thin solid|none}}; padding:0.08em;" class="nowrap"|

{{#if:|[3.5]|({{ safesubst:#if:1|[3.5]}})}}

{{#if::|Erro de script: Nenhum módulo desse tipo "String".|}}