Pojdi na vsebino

Predloga:Kem

Iz Wikipedije, proste enciklopedije
(Preusmerjeno s strani Predloga:Chem)

Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]


Uporaba te predloge {{kem}} poenostavlja zapisovanje kemijskih formul. Npr,

{{kem|H|2|O}}

izpiše:

H
2
O

Algebraic expression as subscript

[uredi kodo]

Algebraic expressions are rendered as subscripts (but must not contain upper case letters).

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

izpiše

C
n
H
2n + 2

Charge

[uredi kodo]

Ion charge superscripts (for: +/-) are also supported:

{{kem|H|3|O|+}}

izpiše "+" nadpisano:

H
3
O+

Simultaneous subscripts/superscripts are automatically handled (use a hyphen for the minus sign):

{{kem|SO|4|2-}}

izpiše "2-" nadpisano:

SO2−
4
Note
The hyphen is converted to a true minus sign.

Atomic number and mass number

[uredi kodo]

The first parameter can be used for mass number.

{{kem|4|He}}

izpiše:

4
He

The first two parameters can be used for mass number and atomic number.

{{kem|4|2|He}}

izpiše:

4
2
He
Opomba
Only the first two parameters can handle two consecutive plain numbers (i.e. without a plus sign or a hyphen (+ or -) following). Otherwise the template will loop.

Povezovanje

[uredi kodo]

The optional parameter link changes the formula into a link. For example:

{{kem|link=voda|H|2|O}}

izpiše:

H
2
O

For linking individual elements can be linked in the following manner.

{{kem|[[Vodik|H]]|2|[[Kisik|O]]}} 

izpiše

H
2
O

Opombe

[uredi kodo]
  • Za vključitev "=" v formulo, uporabite = Npr.:, {{kem|CH|2|=CH|2}} izpiše CH
    2
    =CH
    2
    .
    • Ali, {{kem|CH|2}}={{kem|CH|2}}, izpiše CH
      2
      =CH
      2
      .
    • Ali, ne uporabite te predloge. Npr.: CH<sub>2</sub>=CH<sub>2</sub> izpiše CH2=CH2.
  • Za vključitev "≡" v formulo, uporabite "&#8801;" Npr.: "{{kem|HC&#8801;CH}}" izpiše HC≡CH.
  • Ta predloga sprejme do 24 parametrov poleg parametra link.
  • Ta predloga uporablja {{su}}.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy