Template:NumFormula/man

Da testwiki.
Vai alla navigazione Vai alla ricerca

Questo template serve per creare un blocco testuale numerato solitamente utilizzato per numerare le formule matematiche.

Parametri

Sintassi: {{NumFormula|<1>|<2>|<3>|RawN=<>|stilelinea=<>|bordo=<>}}

I parametri {{{1}}}, {{{2}}} e {{{3}}} sono obbligatori e ad essi si aggiungono i tre parametri opzionali {{{RawN}}}, {{{stilelinea}}} e {{{bordo}}}.

{{{1}}}: Specifica l'indentazione. Più caratteri ":" vengono inseriti, fino a un massimo di 20, e più l'inizio del blocco testuale sarà spostato verso sinistra. Se non è necessaria alcuna indentazione, il parametro può essere lasciato vuoto
{{{2}}}: Il testo del blocco testuale.
{{{3}}}: Il numero del blocco.
{{{RawN}}}: Se lasciato vuoto, la parte inserita come "numero del blocco" sarà sempre indicata fra parentesi tonde, se invece RawN viene posto uguale a un valore non nullo, allora le parentesi tonde non verranno mostrate.
{{{stilelinea}}}: Specifica lo stile della linea.
{{{bordo}}}: Se posto uguale a un valore non nullo, crea una cornice attorno all'equazione.

Esempi

Equazioni

{{NumFormula|:|<math>y=ax+b</math>|Eq. 3}}

Template:NumFormula

{{NumFormula|:|<math>ax^2+bx+c=0</math>|Eq. 3}}

Template:NumFormula

{{NumFormula|:|<math>\Psi(x_1,x_2)=U(x_1)V(x_2)</math>|2}}

Template:NumFormula

Indentazione

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

Template:NumFormula

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

Template:NumFormula

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

Template:NumFormula

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

Template:NumFormula

Formattazione dei numeri del blocco

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=3.5|RawN=.}} [L'aver posto RawN uguale a un valore non nullo fa sì che il numero venga mostrato senza parentesi tonde predefinite ma esattamente come scritto nel parametro "3".]

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=<3.5>|RawN=.}}

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=[3.5]|RawN=.}}

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3='''[3.5]'''|RawN=.}}

Template:NumFormula

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

Template:NumFormula

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

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=<math>(3.5)</math>|RawN=.}}

Template:NumFormula

Stile della linea

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|stilelinea=1px dashed red}} [I nomi dei parametri "1", "2" e "3" possono essere esplicitati, come in questo caso, o meno, come nei casi precedenti, in cui non venivano indicati.]

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=<Big>'''(3.5)'''</Big>|RawN=.|stilelinea=3px dashed #0a7392}}

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|stilelinea=3px solid green}}

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|stilelinea=5px dotted blue}}

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|stilelinea=0px solid green}}

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|stilelinea=5px none green}}

Template:NumFormula

{{NumFormula|1=:|2=<math>\mathbf{a}(t)=\frac{d}{dt}\mathbf{v}(t)</math>|3=<Big>'''[3.5]'''</Big>|RawN=.|stilelinea=3px double green}}

Template:NumFormula

Bordo

{{NumFormula|:|<math>y=ax+b</math>|Eq. 3|bordo=1}}

Template:NumFormula

Tabelle

Poiché il template Template:Tl è implementato come una tabella, inserirlo all'interno di un'altra tabella fa sì che si vengano a creare delle tabelle cosiddette "nested", ossia annidate. In questo caso l'utilizzo di Template:Tl cambia lievemente, in particolare, quando si desidera un'indentazione anche della tabella esterna, bisogna usare, per quest'ultima il tag Template:Tag invece del carattere ":".

Per esempio nel seguente esempio,

Codice
<dl><dd>
<dl><dd>
{|
|-
|Il primo parametro che definisce l'indentazione funziona se utilizzato nella tabella interna.
{{NumFormula|::::|<math>ax^2+bx+c=0</math>|Livello 4}}
{{NumFormula|:::|<math>ax^2+bx+c=0</math>|Livello 3}}
{{NumFormula|::|<math>ax^2+bx+c=0</math>|Livello 2}}
{{NumFormula|:|<math>ax^2+bx+c=0</math>|Livello 1}}
|-
|}
</dd></dl>
</dd></dl>
Risultato
Il primo parametro che definisce l'indentazione funziona se utilizzato nella tabella interna.

Template:NumFormula Template:NumFormula Template:NumFormula Template:NumFormula

si vede che l'utilizzo di due set di tag permette di ottenere la stessa indentazione data dalla successione "::".