Template:Chem

Template:Chem

Template:Chem

Info Istruzioni per l'uso
Le istruzioni che seguono sono contenute nella sottopagina Template:Chem/man (modifica · cronologia)
Sandbox: Template:Chem/Sandbox · TemplateStyles: Template:Chem/styles.css · Tutte le sottopagine: lista

Questo template, {{chem}}, è utilizzato per facilitare la scrittura di formule chimiche. Per esempio,

{{chem|H|2|O}}

verrà scritto come:

H2O

Espressioni algebriche come pedice

Le espressioni algebriche possono essere rese come pedice (ma non devono contenere lettere maiuscole).

{{chem|C|''n''|H|2''n'' + 2}}

diventa

CnH2n + 2

Carica

Supporta anche la carica degli ioni come apice (per: +/-):

{{chem|H|3|O|+}}

scrive un "+" come apice:

H3O+

Viene gestita automaticamente la presenza contemporanea di apici e pedici (usare un trattino come segno meno):

{{chem|SO|4|2-}}

scrive "2-" come apice:

SO2−4
Nota
Il trattino è convertito in un vero segno meno.

Numero atomico e numero di massa

Il primo parametro può essere usato per indicare il numero di massa.

{{chem|4|He}}

viene reso come:

4He

I primi due parametri possono essere usati per indicare il numero di massa ed il numero atomico.

{{chem|4|2|He}}

viene reso come:

42He
Nota
Solamente i primi due parametri possono gestire due numeri consecutivi (per esempio senza esser seguiti da un segno più o da un trattino (+ or -)). Altrimenti andrà in loop.

Collegamenti

Il parametro opzionale link trasforma la formula in un collegamento. Per esempio:

{{chem|link=acqua|H|2|O}}

diventa:

H2O

Per collegare i singoli elementi, si può fare così:

{{chem|[[Idrogeno|H]]|2|[[Ossigeno|O]]}} 

diventa

H2O

Note

  • Per includere = nella formula, usare = Per esempio, {{chem|CH|2|=CH|2}} diventa CH2=CH2.
    • O, {{chem|CH|2}}={{chem|CH|2}}, che diventa CH2=CH2.
    • Oppure non usare questo template. Per esempio, CH<sub>2</sub>=CH<sub>2</sub> diventa CH2=CH2.
  • Per includere nella formula, usare &#8801; Per esempio, {{chem|HC&#8801;CH}} diventa HC≡CH.
  • Il template accetta fino a 24 parametri oltre a link.
  • Questo template utilizza {{Apici e pedici}}.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.