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

De Wiki Coolab
Ir para navegação Ir para pesquisar
NumBlk>Justin545
(+category 'Formatting template')
NumBlk>Justin545
(+prameters 'LnSty' & 'NoPr')
Linha 1: Linha 1:
<includeonly>{{{1}}}{| width="100%" border="0"
+
<includeonly>{{{1}}}{|style="border-collapse:collapse; background:none; width:100%; height:1px" border="0"
| {{{2}}}
+
|-
| width="10%" align="right" | ({{{3}}})
+
|nowrap rowspan="2"|{{{2}}}&nbsp;
 +
|style="padding-top:0pt; padding-bottom:0pt; font-size:1pt;"|&nbsp;
 +
|nowrap rowspan="2" align="right"|&nbsp;{{#if:{{{NoPr|}}}||(}}{{{3}}}{{#if:{{{NoPr|}}}||)}}
 +
|-
 +
|style="padding-top:0pt; padding-bottom:0pt; font-size:1pt; border-top:{{{LnSty|3px dotted black}}}; width:99%;"|&nbsp;
 +
|-
 
|}</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>
<pre>{{{1}}}{| width="100%" border="0"
 
| {{{2}}}
 
| width="10%" align="right" | ({{{3}}})
 
|}</pre>
 
 
== Parameter ==
 
== Parameter ==
 
All parameters of this template are required.<br>
 
All parameters of this template are required.<br>
 
'''<nowiki>{{{1}}}</nowiki>''': Specify indentation. The more colons (:) you put, the further indented the block will be. This parameter can be empty if no indentation is needed.<br>
 
'''<nowiki>{{{1}}}</nowiki>''': Specify indentation. The more colons (:) you put, the further indented the block will be. This parameter can be empty if no indentation is needed.<br>
 
'''<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.
+
'''<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>{{{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>
Linha 25: Linha 28:
 
{{NumBlk|:|<math>\mathbf{a}(t)=\lim_{\Delta t \to 0}\frac{\mathbf{v}(t+\Delta t)-\mathbf{v}(t)}{\Delta t}
 
{{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}}
 
=\frac{\mathrm{d}\mathbf{v}}{\mathrm{d}t}</math>|Eq. 5}}
<pre>{{NumBlk|:|''For any consistent formal, computably enumerable theory that proves basic arithmetical truths, an arithmetical statement that is true, but not provable in the theory, can be constructed. That is, any effectively generated theory capable of expressing elementary arithmetic cannot be both consistent and complete.''|6}}</pre>
+
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>}}</pre>
{{NumBlk|:|''For any consistent formal, computably enumerable theory that proves basic arithmetical truths, an arithmetical statement that is true, but not provable in the theory, can be constructed. That is, any effectively generated theory capable of expressing elementary arithmetic cannot be both consistent and complete.''|6}}
+
{{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>
[[Category:Formatting template]]
+
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.}}
 +
<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>
 +
{{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>{{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>
 +
{{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>{{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>
 +
{{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>{{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>
 +
{{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>{{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>
 +
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=0px solid green}}
 
</noinclude>
 
</noinclude>

Edição das 07h13min 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.
{{{NoPr}}}: 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}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]     {{#if: (}}3.5{{#if: )}}
 
{{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{{#if: )}}
 
{{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{{#if: )}}
 
{{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{{#if: )}}
 
{{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{{#if: )}}
 
{{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]{{#if: )}}
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]     {{#if:. (}}[3.5]{{#if:. )}}
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|NoPr=.|LnSty=1px dashed red}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]     {{#if:. (}}(3.5){{#if:. )}}
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|NoPr=.|LnSty=3px dashed #0a7392}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]     {{#if:. (}}(3.5){{#if:. )}}
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=3px solid green}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]     {{#if:. (}}[3.5]{{#if:. )}}
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=5px dotted blue}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]     {{#if:. (}}[3.5]{{#if:. )}}
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|NoPr=.|LnSty=0px solid green}}
[math]\bold{a}(t)=\frac{d}{dt}\bold{v}(t)[/math]     {{#if:. (}}[3.5]{{#if:. )}}