Mudanças entre as edições de "Predefinição:NumBlk"

De Wiki Coolab
Ir para navegação Ir para pesquisar
NumBlk>Justin545
(NoPr -> RowN. change default line style)
NumBlk>Justin545
(→‎Parameter: re-explain 'RowN')
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>{{{RowN}}}</nowiki>''': Assigned with a non-empty value to remove the parentheses surround the number.<br>
+
'''<nowiki>{{{RowN}}}</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 ==
 
<pre>{{NumBlk||<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3.5}}</pre>
 
<pre>{{NumBlk||<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3.5}}</pre>

Edição das 08h11min 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 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>\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=<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>|RowN=.}}
[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>|RowN=.|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>|RowN=.|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>|RowN=.|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>|RowN=.|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>|RowN=.|LnSty=0px solid green}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]     {{#if:.|[3.5]|([3.5])}}