మూస:Chem

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

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 this template used by VisualEditor and other tools; see the monthly error report for this template.

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.

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

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

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

Stringrequired
22

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

Stringoptional
33

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

Stringoptional
44

Stringoptional
55

Stringoptional
66

Stringoptional
77

Stringoptional
88

Stringoptional
99

Stringoptional
1010

Stringoptional
1111

Stringoptional
1212

Stringoptional
1313

Stringoptional
1414

Stringoptional
1515

Stringoptional
1616

Stringoptional
1717

Stringoptional
1818

Stringoptional
1919

Stringoptional
2020

Stringoptional
2121

Stringoptional
2222

Stringoptional
2323

Stringoptional
2424

Stringoptional
linklink

A page to link to eg 'Water'.

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