Template:Math templates: Difference between revisions

explained {{convert}}; added {{cvt}} abbreviated form
m (1 revision: What an ugly messy way to do this!)
(explained {{convert}}; added {{cvt}} abbreviated form)
Line 4:
| bodyclass = plainlist
| title = Math templates
| liststyle = font-size:110%;<!--(as some templates' descriptions include links)-->
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}}
 
|<!-------------- group1Functions =/ {{hlist|Functions|Numeral systems}} -------------->
| abbr1 = FN
| group1 = {{hlist|Functions|Numeral systems}}
| list1 =
{{Navbox |child |listclass=hlist
| group1 = Functions
| list1 =
*{{tltlbare|elementary arithmetic}}
*{{tltlbare|precision}}
*{{tltlbare|precision1value}}
*{{tl|value}}
| group2 = Numeral systems
| list2 =
*{{tltlbare|base 36}}
*{{tltlbare|binary}}
*{{tltlbare|dec2hex}}
*{{tltlbare|decimal2Base}}
*{{tltlbare|duodecimal}}
*{{tltlbare|hex2dec}}
*{{tltlbare|hexadecimal}}
*{{tltlbare|octal}}
*{{tltlbare|quaternary}}
*{{tltlbare|quinary}}
*{{tltlbare|rn}}
*{{tltlbare|roman}}
*{{tltlbare|senary}}
*{{tltlbare|ternary}}
*{{tltlbare|vigesimal}}
}}
 
<!---------------------- Conversions ---------------------->
| group2 = Conversions
| abbr2 = conversions
| group2 = Conversions
| list2 =
{{Aligned table |style=margin:0 auto 0;text-align:left;
|style=margin:0 auto 0;text-align:left;
| {{Aligned table |style=padding-right:2.5em;
| {{Aligned table
|col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;
| {{Aligned table |style=padding-right:2.5em;
| {{tl|bbl to t}} | barrels of oil to tonnes
|col1style=text-align:right;white-space:nowrap;padding-right:01.75em; |col2style=font-style:italic0em;
| {{tl|convert}} |
|col2style=font-size:90%;<!--(see liststyle above)--> vertical-align:middle;line-height:1.3em;font-style:italic;
| {{tl|convert/scale}} | to convert any linearly related units
| {{tltlbare|convert/CwtQtrLbbbl to kgt}} | long hundredweights, quarters and pounds| barrels of oil to kilogramstonnes
| {{tltlbare|convert/TonCwt to t}} | long tons and hundredweights to pounds| andmany metricunits tonnes(see: [[Template:Convert/list_of_units |list]])
| {{tltlbare|convinfoboxcvt}} | formany useunits; inabbreviated infoboxes{{tl|convert}}
| {{tlbare|long ton}} | long hundredweights, quarters and pounds to kilograms;<br/>long tons and hundredweights to pounds and metric tonnes
| {{tlbare|convinfobox}} | for use in infoboxes
| {{tltlbare|decdeg}} | degrees, minutes, and seconds to [[decimal degrees]]
}}
| {{Aligned table
|col1style=text-align:right;white-space:nowrap;padding-right:01.75em; |col2style=font-style:italic0em;
|col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic;
| {{tl|decdeg}} | degrees, minutes and seconds to [[decimal degrees]]
| {{tltlbare|hms2deg}} | [[hour angle]]s (given in hours, minutes, and seconds) to decimal degrees
| {{tltlbare|inflationdeg2dms}} | to calculate| inflationdecimal ofdegrees to Consumerdegrees, Priceminutes, Index-relatedand pricesseconds
| {{tlbare|deg2hms}} | decimal degrees to [[hour angle]] (in hours, minutes, and seconds)
| {{tl|miles-chains}} | miles and chains to kilometres linking "chains"
| {{tltlbare|pop densityinflation}} | densityto ofcalculate ainflation of populationConsumer inPrice anIndex-related areaprices
| {{tltlbare|track gaugemiles-chains}} | railwaymiles and chains to kilometres tracklinking gauges"chains"
| {{tlbare|pop density}} | density of a population in an area
| {{tlbare|track gauge}} | railway track gauges
}}
}}
 
<!----------------------- Notation ------------------------>
| group3 = Notation
| abbr3 = notation
| list3 =
{{Aligned table |style=margin:0 auto 0;text-align:left;
|style=margin:0 auto 0;text-align:left;
| {{Aligned table |style=padding-right:2.5em;
| {{Aligned table
|col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;
| {{Aligned table |style=padding-right:2.5em;
| {{tl|bigmath}} | for stand-alone formulas, using a bigger font to match PNG-rendered {{noitalic|[[TeX|{{TeX}}]]}} formulas
|col1style=text-align:right;white-space:nowrap;padding-right:01.75em; |col2style=font-style:italic0em;
| {{hlist|{{tl|bra-ket}}|{{tl|braket}}}} {{hlist|{{tl|bra}}|{{tl|ket}}}} |style2.2=vertical-align:middle;| [[bra–ket notation]]
|col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic;
| {{tl|frac}} |
| {{tltlbare|bigmath}} | for stand-alone formulas, using a bigger font to match {{noitalic|<tt><nowiki>\</nowiki>displaystyle</tt>}} PNG-rendered {{noitalic|[[TeX|{{TeX}}]]}} formulas
| {{tl|intmath}} | [[integral symbol]]s
| {{hlist|{{tltlbare|langlebra-ket}}|{{tltlbare|ranglebraket}}}} {{hlist|{{tlbare|bra}}|{{tlbare|ket}}}} | [[angularbra–ket bracketnotation]]s
| {{tlbare|frac}} | for creating fractions (not for use in science or mathematical articles; instead, use {{noitalic|{{tlx|sfrac}}}})
| {{hlist|{{tl|ldelim}}|{{tl|rdelim}}}} | multiline delimiters (2-5 lines inclusive)
| {{tltlbare|mathintmath}} | [[integral | symbol]]s
| {{hlist|{{tlbare|langle}}|{{tlbare|rangle}}}} | [[angular bracket]]s
| {{tl|mathcal}} |
| {{hlist|{{tltlbare|ldelim}}|{{tltlbare|rdelim}}}} | multiline delimiters (2-52–5 lines inclusive)
| {{tlbare|math}} | for inline formulas, to get a better matching font size and vertical alignment than with {{noitalic|<tt><nowiki>\</nowiki>textstyle</tt>}} (or the {{noitalic|<tt><nowiki>\</nowiki>scriptstyle</tt>}} kludge) PNG-rendered {{noitalic|[[TeX]]}} formulas
| {{tlbare|mathcal}} | [mathematical] calligraphic font for use in mathematical formulas, as an alternative to {{noitalic|<tt><nowiki>\</nowiki>mathcal{...}</tt>}} in {{noitalic|[[LaTeX]]}} markup
}}
| {{Aligned table
|col1style=text-align:right;white-space:nowrap;padding-right:01.75em; |col2style=font-style:italic0em;
|col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic;
| {{tltlbare|mvar}} | a short form to refer to individual italicized maths variables in normal text
| {{hlist|{{tltlbare|overset}}|{{tltlbare|underset}}}} | arbitrary characters/diacritics set above/below one another
| {{tl|radic}} |
| {{tltlbare|sfracradic}} |
| {{tlbare|sfrac}} | for creating fractions (this template should be used in science or mathematical articles instead of {{noitalic|{{tlx|frac}}}})
| {{tl|sqrt}} |
| {{hlisttlbare|{{tl|su}}|{{tl|sub}}|{{tl|sup}}sqrt}} |
| {{tlhlist|tmath{{tlbare|su}} | wraps a {{noitalictlbare|sub}}|{{TeXtlbare|sup}}}} math expression in <code>&lt;math></code>| tags
 
| {{tl|val}} |
|style7.1=vertical-align:middle;text-align:right;padding-right:1.0em;| {{tlbare|tmath}}
| {{tl|vec}} | for various overarrows, underarrows, pointing left, right or both ways
| wraps a {{noitalic|[[TeX]]}} math expression in {{noitalic|<nowiki><math></nowiki>}} tags
 
| {{tlbare|val}} | to report measurement values, uncertainties and units
| {{tltlbare|vec}} | for various overarrows, underarrows, pointing left, right or both ways
}}
}}
 
<!---------------- Boxes / Tags / Notices ----------------->
| group4 = {{hlist|Boxes|Tags|Notices}}
| abbr4 = BTN
| group4 = {{hlist|Boxes|Tags|Notices}}
| list4 =
{{Navbox with columns |child
Line 95 ⟶ 111:
| col1header = Boxes
| col1 = {{startflatlist}}
*{{tltlbare|calculation results}}
*{{tltlbare|calculus}}
*{{tltlbare|Infobox mathematics function}}
*{{tltlbare|functions}}
{{endflatlist}}
| col2header = Tags
| col2 = {{startflatlist}}
*{{tltlbare|metricate}}
*{{tltlbare|undue precision}}
*{{tltlbare|units attention}}
{{endflatlist}}
| col3header = Notices
| col3 = {{startflatlist}}
*{{tl|calculation}}
{{endflatlist}}
}}
 
| belowstyle = font-weight:bold;
| below = {{icon|Category}} [[:Category:{{c|Mathematics templates|Category]]}}
| below =
{{icon|Category}} [[:Category:Mathematics templates|Category]]
 
}}<noinclude>{{Documentation}}</noinclude>
Anonymous user