మూస:Chem

వికీపీడియా నుండి
ఇక్కడికి గెంతు: మార్గసూచీ, వెతుకు
Documentation icon Template documentation[view] [edit] [history] [purge]


Template instructions[మార్చు]

This template, {{chem}}, serves to simplify the writing of chemical formulae. For example,

{{chem|H|2|O}}

will yield:

H
2
O

Algebraic expression as subscript[మార్చు]

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

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

gives

C
n
H
2n + 2

Charge[మార్చు]

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

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

yields a "+" as superscript:

H
3
O+

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

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

gives "2-" as superscript:

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

Atomic number and mass number[మార్చు]

The first parameter can be used for mass number.

{{chem|4|He}}

gives:

4
He

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

{{chem|4|2|He}}

gives:

4
2
He
Note
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.

Linking[మార్చు]

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

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

will yield:

H
2
O

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

{{chem|[[Hydrogen|H]]|2|[[Oxygen|O]]}} 

gives

H
2
O

Notes[మార్చు]

  • To include "=" in the formula, use = For example, {{chem|CH|2|=CH|2}} yields CH
    2
    =CH
    2
    .
    • Or, {{chem|CH|2}}={{chem|CH|2}}, which yields CH
      2
      =CH
      2
      .
    • Or, don't use this template. For example, CH<sub>2</sub>=CH<sub>2</sub> yields CH2=CH2.
  • To include "≡" in the formula, use "&#8801;" For example, "{{chem|HC&#8801;CH}}" yields HC≡CH.
  • The template accepts up to twenty-four parameters in addition to link.
  • This template uses {{su}}.

TemplateData[మార్చు]

This is the TemplateData documentation for the template used by the new VisualEditor.

Chem

Encodes a chemical formula. This template make use of overloading so it cannot be easily documented for VisualEditor. Each parameter can be a chemical element symbol like 'Si'; a number or algebraic expressions (2''n''&nbsp;+&nbsp;2) – rendered as subscripts; charges '+', '-', '2+' etc. – rendered as superscripts. Additionally the first parameters can be mass number and atomic weight.

మూస పరామితులు
పేరు వివరణ Type అప్రమేయం Auto value స్థితి
1 1 Either a chemical symbol 'H' rendered normally, or a mass number rendered as a superscript. string empty empty required
2 2 Either a chemical symbol 'H' rendered normally, or a numeric atomic weight rendered as a subscript. string empty empty optional
3 3 Either a chemical symbol 'H' rendered normally, a number or formula rendered as a subscript, or a charge renderer as a superscript. string empty empty optional
4 4 string empty empty optional
5 5 string empty empty optional
6 6 string empty empty optional
7 7 string empty empty optional
8 8 string empty empty optional
9 9 string empty empty optional
10 10 string empty empty optional
11 11 string empty empty optional
12 12 string empty empty optional
13 13 string empty empty optional
14 14 string empty empty optional
15 15 string empty empty optional
16 16 string empty empty optional
17 17 string empty empty optional
18 18 string empty empty optional
19 19 string empty empty optional
20 20 string empty empty optional
21 21 string empty empty optional
22 22 string empty empty optional
23 23 string empty empty optional
24 24 string empty empty optional
link link A page to link to eg 'Water'. string empty empty optional
"http://te.wikipedia.org/w/index.php?title=మూస:Chem&oldid=973274" నుండి వెలికితీశారు