మూస:Chem/doc

వికీపీడియా నుండి
Jump to navigation Jump to search


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 for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Chem in articles based on its TemplateData.

TemplateData for 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.

మూస పరామితులు

పరామితివివరణరకంస్థితి
11

Either a chemical symbol 'H' rendered normally, or a mass number rendered as a superscript.

స్ట్రింగుతప్పనిసరి
22

Either a chemical symbol 'H' rendered normally, or a numeric atomic weight rendered as a subscript.

స్ట్రింగుఐచ్చికం
33

Either a chemical symbol 'H' rendered normally, a number or formula rendered as a subscript, or a charge renderer as a superscript.

స్ట్రింగుఐచ్చికం
44

స్ట్రింగుఐచ్చికం
55

స్ట్రింగుఐచ్చికం
66

స్ట్రింగుఐచ్చికం
77

స్ట్రింగుఐచ్చికం
88

స్ట్రింగుఐచ్చికం
99

స్ట్రింగుఐచ్చికం
1010

స్ట్రింగుఐచ్చికం
1111

స్ట్రింగుఐచ్చికం
1212

స్ట్రింగుఐచ్చికం
1313

స్ట్రింగుఐచ్చికం
1414

స్ట్రింగుఐచ్చికం
1515

స్ట్రింగుఐచ్చికం
1616

స్ట్రింగుఐచ్చికం
1717

స్ట్రింగుఐచ్చికం
1818

స్ట్రింగుఐచ్చికం
1919

స్ట్రింగుఐచ్చికం
2020

స్ట్రింగుఐచ్చికం
2121

స్ట్రింగుఐచ్చికం
2222

స్ట్రింగుఐచ్చికం
2323

స్ట్రింగుఐచ్చికం
2424

స్ట్రింగుఐచ్చికం
linklink

A page to link to eg 'Water'.

స్ట్రింగుఐచ్చికం


"https://te.wikipedia.org/w/index.php?title=మూస:Chem/doc&oldid=1359395" నుండి వెలికితీశారు