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

De Wiki Coolab
Ir para navegação Ir para pesquisar
NumBlk>TedPavlic
(Added caveat about 100% wide table usage.)
NumBlk>Silly rabbit
(moved documentation to Template:NumBlk/doc)
Linha 7: Linha 7:
 
|style="border-top:{{{LnSty|3px dotted #e5e5e5}}}; width:99%;"|<p style="font-size:1pt; margin:0pt 0pt 0pt 0pt;">&nbsp;</p>
 
|style="border-top:{{{LnSty|3px dotted #e5e5e5}}}; width:99%;"|<p style="font-size:1pt; margin:0pt 0pt 0pt 0pt;">&nbsp;</p>
 
|-
 
|-
|}</includeonly><noinclude>This template creates a numbered block which is usually used to number mathematical formulae.
+
|}</includeonly><noinclude>{{Documentation}}</noinclude>
 
 
'''Beware''' that this template makes use of a [[Help:Table|Mediawiki Table]] with 100% width. As a consequence, numbered blocks may not generate the desired results when placed around images that take up space on the left or right side of the screen. Consider using a {{tl|clear}}-like template to ensure that the numbered block has access to the entire line.<br>
 
 
 
== Parameter ==
 
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. 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 surround the number.<br>
 
'''<nowiki>{{{LnSty}}}</nowiki>''': Specify the line style.
 
'''<nowiki>{{{Border}}}</nowiki>''': If set, put a box around the equation. (Experimental.)
 
 
 
== Example ==
 
<pre>{{NumBlk|:|<math>y=ax+b</math>|Eq. 3}}</pre>
 
{{NumBlk|:|<math>y=ax+b</math>|Eq. 3}}
 
<pre>{{NumBlk|:|<math>ax^2+bx+c=0</math>|Eq. 3}}</pre>
 
{{NumBlk|:|<math>ax^2+bx+c=0</math>|Eq. 3}}
 
<pre>{{NumBlk|:|<math>\Psi(x_1,x_2)=U(x_1)V(x_2)</math>|2}}</pre>
 
{{NumBlk|:|<math>\Psi(x_1,x_2)=U(x_1)V(x_2)</math>|2}}
 
<pre>{{NumBlk||<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3.5}}</pre>
 
{{NumBlk||<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3.5}}
 
<pre>{{NumBlk|:|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1}}</pre>
 
{{NumBlk|:|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1}}
 
<pre>{{NumBlk|::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|13.7}}</pre>
 
{{NumBlk|::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|13.7}}
 
<pre>{{NumBlk|:::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1.2}}</pre>
 
{{NumBlk|:::|<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|1.2}}
 
<pre>{{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}}</pre>
 
{{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}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=3.5}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=3.5}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=3.5|RawN=.}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=3.5|RawN=.}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<3.5>|RawN=.}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<3.5>|RawN=.}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=[3.5]|RawN=.}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=[3.5]|RawN=.}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3='''[3.5]'''|RawN=.}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3='''[3.5]'''|RawN=.}}
 
<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>}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=1px dashed red}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=1px dashed red}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=3px dashed #0a7392}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|LnSty=3px dashed #0a7392}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px solid green}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=3px solid green}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px dotted blue}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px dotted blue}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=0px solid green}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=0px solid green}}
 
<pre>{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px none green}}</pre>
 
{{NumBlk|1=:|2=<math>\bold{a}(t)=\frac{d}{dt}\bold{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|LnSty=5px none 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 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}}
 
 
 
<pre>{{NumBlk|:|<math>y=ax+b</math>|Eq. 3|Border=1}}</pre>
 
{{NumBlk|:|<math>y=ax+b</math>|Eq. 3|Border=1}}
 
 
 
 
 
[[Category:Mathematical formatting templates]]
 
 
 
</noinclude>
 

Edição das 14h00min de 30 de janeiro de 2009

Erro de script: Nenhum módulo desse tipo "documentation".