Diff: Template:Math templates
Comparing revision #1 (2022-12-17 23:39:47) with revision #2 (2023-02-02 06:54:41).
| Old | New |
|---|---|
<!-- This template uses British English. --> |
<!-- This template uses British English. --> |
{{Navbox with collapsible groups |
{{Navbox with collapsible groups |
| name = Math templates |
| name = Math templates |
| state = {{{state|expanded}}} |
| state = {{{state|expanded}}} |
| bodyclass = plainlist |
| bodyclass = plainlist |
| title = Math templates |
| title = Math templates |
| liststyle = font-size:110%;<!--(as some templates' descriptions include links)--> |
| liststyle = font-size:110%;<!--(as some templates' descriptions include links)--> |
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}} |
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}} |
<!-------------- Functions / Numeral systems --------------> |
<!-------------- Functions / Numeral systems --------------> |
| abbr1 = FN |
| abbr1 = FN |
| group1 = {{hlist|Functions|Numeral systems}} |
| group1 = {{hlist|Functions|Numeral systems}} |
| state1 = <noinclude>expanded</noinclude> |
| state1 = <noinclude>expanded</noinclude> |
| list1 = |
| list1 = |
{{Navbox |child |listclass=hlist |
{{Navbox |child |listclass=hlist |
| group1 = Functions |
| group1 = Functions |
| list1 = |
| list1 = |
*{{tlbare|elementary arithmetic}} |
*{{tlbare|elementary arithmetic}} |
*{{tlbare|precision}} |
*{{tlbare|precision}} |
*{{tlbare|val}} (value) |
*{{tlbare|val}} (value) |
*{{tlbare|percentage}} |
*{{tlbare|percentage}} |
| group2 = Numeral systems |
| group2 = Numeral systems |
| list2 = |
| list2 = |
*{{ml|BaseConvert|''X''to''Y''}} |
*{{ml|BaseConvert|''X''to''Y''}} |
*{{tlbare|binary}} |
*{{tlbare|binary}} |
*{{tlbare|decimal2Base}} |
*{{tlbare|decimal2Base}} |
*{{tlbare|hex2dec}} |
*{{tlbare|hex2dec}} |
*{{tlbare|hexadecimal}} |
*{{tlbare|hexadecimal}} |
*{{tlbare|octal}} |
*{{tlbare|octal}} |
*{{tlbare|quaternary}} |
*{{tlbare|quaternary}} |
*{{tlbare|quinary}} |
*{{tlbare|quinary}} |
*{{tlbare|rn}} |
*{{tlbare|rn}} |
*{{tlbare|roman}} |
*{{tlbare|roman}} |
*{{tlbare|senary}} |
*{{tlbare|senary}} |
*{{tlbare|ternary}} |
*{{tlbare|ternary}} |
*{{tlbare|vigesimal}} |
*{{tlbare|vigesimal}} |
}} |
}} |
<!---------------------- Conversions ----------------------> |
<!---------------------- Conversions ----------------------> |
| abbr2 = conversions |
| abbr2 = conversions |
| group2 = Conversions |
| group2 = Conversions |
| state2 = <noinclude>expanded</noinclude> |
| state2 = <noinclude>expanded</noinclude> |
| list2 = |
| list2 = |
{{Aligned table |
{{Aligned table |
|style=margin:0 auto 0;text-align:left; |
|style=margin:0 auto 0;text-align:left; |
| {{Aligned table |
| {{Aligned table |
|style=padding-right:2.5em; |
|style=padding-right:2.5em; |
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em; |
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em; |
|col2style=font-size:90%;<!--(see liststyle above)--> vertical-align:middle;line-height:1.3em;font-style:italic; |
|col2style=font-size:90%;<!--(see liststyle above)--> vertical-align:middle;line-height:1.3em;font-style:italic; |
| {{tlbare|convert}} | many units (see: [[Template:Convert/list_of_units |list]]) |
| {{tlbare|convert}} | many units (see: [[Template:Convert/list_of_units |list]]) |
| {{tlbare|cvt}} | abbreviated {{tl|convert}} |
| {{tlbare|cvt}} | abbreviated {{tl|convert}} |
| {{tlbare|convinfobox}} | {{tl|convert}} for infoboxes |
| {{tlbare|convinfobox}} | {{tl|convert}} for infoboxes |
| {{tlbare|bbl to t}} | barrels of oil to tonnes |
| {{tlbare|bbl to t}} | barrels of oil to tonnes |
| {{tlbare|long ton}} | long hundredweights, quarters and pounds to kilograms;<br/>long tons and hundredweights to pounds and metric tons |
| {{tlbare|long ton}} | long hundredweights, quarters and pounds to kilograms;<br/>long tons and hundredweights to pounds and metric tons |
| {{tlbare|miles-chains}} | miles and chains to kilometres linking "chains" |
| {{tlbare|miles-chains}} | miles and chains to kilometres linking "chains" |
}} |
}} |
| {{Aligned table |
| {{Aligned table |
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em; |
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em; |
|col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic; |
|col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic; |
| {{tlbare|decdeg}} | degrees, minutes, and seconds to [[decimal degrees]] |
| {{tlbare|decdeg}} | degrees, minutes, and seconds to [[decimal degrees]] |
| {{tlbare|deg2DMS|deg2dms}} | decimal degrees to degrees, minutes, and seconds |
| {{tlbare|deg2DMS|deg2dms}} | decimal degrees to degrees, minutes, and seconds |
| {{tlbare|deg2HMS|deg2hms}} | decimal degrees to [[hour angle]] (in hours, minutes, and seconds) |
| {{tlbare|deg2HMS|deg2hms}} | decimal degrees to [[hour angle]] (in hours, minutes, and seconds) |
| {{tlbare|HMS2Deg|hms2deg}} | [[hour angle]] (in hours, minutes, and seconds) to decimal degrees |
| {{tlbare|HMS2Deg|hms2deg}} | [[hour angle]] (in hours, minutes, and seconds) to decimal degrees |
| {{tlbare|inflation}} | calculate inflation of Consumer Price Index-related prices |
| {{tlbare|inflation}} | calculate inflation of Consumer Price Index-related prices |
| {{tlbare|pop density}} | population density in an area |
| {{tlbare|pop density}} | population density in an area |
| {{tlbare|track gauge}} | railway track gauges |
| {{tlbare|track gauge}} | railway track gauges |
}} |
}} |
}} |
}} |
<!----------------------- Notation & formatting ------------------------> |
<!----------------------- Notation & formatting ------------------------> |
| group3 = Notation and {{Category link|Mathematical formatting templates|formatting}} |
| group3 = Notation and {{Category link|Mathematical formatting templates|formatting}} |
| abbr3 = notation |
| abbr3 = notation |
| state3 = <noinclude>expanded</noinclude> |
| state3 = <noinclude>expanded</noinclude> |
| list3 = |
| list3 = |
{{Aligned table |
{{Aligned table |
|style=margin:0 auto 0;text-align:left; |
|style=margin:0 auto 0;text-align:left; |
| {{Aligned table |
| {{Aligned table |
|style=padding-right:2.5em; |
|style=padding-right:2.5em; |
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em; |
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em; |
|col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic; |
|col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic; |
| {{tlbare|bigmath}} | bigger font to match {{noitalic|[[TeX]]}} {{noitalic|<samp><nowiki>\</nowiki>displaystyle</samp>}} (standalone formulas only) |
| {{tlbare|bigmath}} | bigger font to match {{noitalic|[[TeX]]}} {{noitalic|<samp><nowiki>\</nowiki>displaystyle</samp>}} (standalone formulas only) |
| {{hlist|{{tlbare|bra-ket}}|{{tlbare|braket}}|{{tlbare|bra}}|{{tlbare|ket}}}} | [[bra–ket notation]] |
| {{hlist|{{tlbare|bra-ket}}|{{tlbare|braket}}|{{tlbare|bra}}|{{tlbare|ket}}}} | [[bra–ket notation]] |
| {{tlbare|ceil}}, {{tlbare|floor}} | calculations [[:mw:Help:Extension:ParserFunctions##expr|:mw:Help:#expr]]; formatting indicators {{noitalic|1={{ceil|3.14}}}}, {{noitalic|1={{floor|3.14}}}} (no calculation performed) |
| {{tlbare|ceil}}, {{tlbare|floor}} | calculations [[:mw:Help:Extension:ParserFunctions##expr|:mw:Help:#expr]]; formatting indicators {{noitalic|1={{ceil|3.14}}}}, {{noitalic|1={{floor|3.14}}}} (no calculation performed) |
| {{tlbare|fraction}} | slant fractions {{frac|3|5}} (not for maths/science articles; use ''standing'' or upright fractions {{noitalic|{{tlx|sfrac}}}} instead) |
| {{tlbare|fraction}} | slant fractions {{frac|3|5}} (not for maths/science articles; use ''standing'' or upright fractions {{noitalic|{{tlx|sfrac}}}} instead) |
| {{tlbare|intmath}} | [[integral symbol]]s |
| {{tlbare|intmath}} | [[integral symbol]]s |
| {{hlist|{{tlbare|langle}}|{{tlbare|rangle}}|{{tlbare|Angle bracket|angbr}}}} | [[Bracket#Angular brackets|angular bracket]]s |
| {{hlist|{{tlbare|langle}}|{{tlbare|rangle}}|{{tlbare|Angle bracket|angbr}}}} | [[Bracket#Angular brackets|angular bracket]]s |
| {{hlist|{{tlbare|ldelim}}|{{tlbare|rdelim}}}} | multiline delimiters (2–5 lines inclusive) |
| {{hlist|{{tlbare|ldelim}}|{{tlbare|rdelim}}}} | multiline delimiters (2–5 lines inclusive) |
| {{tlbare|abs}} | absolute values (paired vertical lines) |
| {{tlbare|abs}} | absolute values (paired vertical lines) |
| {{tlbare|math}} | short text-based formulas |
| {{tlbare|math}} | short text-based formulas |
| {{tlbare|mathcal}} | [mathematical] calligraphic font; alternative to {{noitalic|[[LaTeX]]}} {{noitalic|<samp><nowiki>\</nowiki>mathcal{...}</samp>}} |
| {{tlbare|mathcal}} | [mathematical] calligraphic font; alternative to {{noitalic|[[LaTeX]]}} {{noitalic|<samp><nowiki>\</nowiki>mathcal{...}</samp>}} |
}} |
}} |
| {{Aligned table |
| {{Aligned table |
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em; |
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em; |
|col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic; |
|col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic; |
| {{tlbare|mvar}} | individual italicized maths variables in normal text |
| {{tlbare|mvar}} | individual italicized maths variables in normal text |
| {{hlist|{{tlbare|overline}}|{{tlbare|underline}}}} | a line set above/below a sequence of characters |
| {{hlist|{{tlbare|overline}}|{{tlbare|underline}}}} | a line set above/below a sequence of characters |
| {{tlbare|overarc}} | an arc set above a sequence of characters |
| {{tlbare|overarc}} | an arc set above a sequence of characters |
| {{hlist|{{tlbare|overset}}|{{tlbare|underset}}}} | arbitrary characters/diacritics set above/below one another |
| {{hlist|{{tlbare|overset}}|{{tlbare|underset}}}} | arbitrary characters/diacritics set above/below one another |
| {{tlbare|pars}} | parentheses that can be resized {{noitalic|1={{math|{{pars|s=150|{{large|∑}}}}}}}} |
| {{tlbare|pars}} | parentheses that can be resized {{noitalic|1={{math|{{pars|s=150|{{large|∑}}}}}}}} |
| {{tlbare|sfrac}} | "standing" or upright fractions {{sfrac|3|5}} (use in maths/science articles instead of{{noitalic|{{tlx|fraction}}}}) |
| {{tlbare|sfrac}} | "standing" or upright fractions {{sfrac|3|5}} (use in maths/science articles instead of{{noitalic|{{tlx|fraction}}}}) |
| {{hlist|{{tlbare|sub}}|{{tlbare|sup}}|{{tlbare|su}}}} | subscripts and superscripts |
| {{hlist|{{tlbare|sub}}|{{tlbare|sup}}|{{tlbare|su}}}} | subscripts and superscripts |
|style7.1=vertical-align:middle;text-align:right;padding-right:1.0em;| {{tlbare|tmath}} |
|style7.1=vertical-align:middle;text-align:right;padding-right:1.0em;| {{tlbare|tmath}} |
| Wrap {{noitalic|[[TeX]]}} in {{noitalic|<nowiki><math></nowiki>}} tags |
| Wrap {{noitalic|[[TeX]]}} in {{noitalic|<nowiki><math></nowiki>}} tags |
| {{tlbare|tombstone}} | symbol indicating the [[Tombstone (typography)|end of a proof]] |
| {{tlbare|tombstone}} | symbol indicating the [[Tombstone (typography)|end of a proof]] |
| {{tlbare|val}} | measurement values, uncertainties and units |
| {{tlbare|val}} | measurement values, uncertainties and units |
| {{tlbare|vec}} | various overarrows, underarrows, etc.<!--pointing left, right or both ways--> |
| {{tlbare|vec}} | various overarrows, underarrows, etc.<!--pointing left, right or both ways--> |
}} |
}} |
}} |
}} |
<!---------------- Boxes / Tags / Notices -----------------> |
<!---------------- Boxes / Tags / Notices -----------------> |
| abbr4 = BTN |
| abbr4 = BTN |
| group4 = {{hlist|Boxes|Tags|Notices}} |
| group4 = {{hlist|Boxes|Tags|Notices}} |
| state4 = <noinclude>expanded</noinclude> |
| state4 = <noinclude>expanded</noinclude> |
| list4 = |
| list4 = |
{{Navbox with columns |child |
{{Navbox with columns |child |
|colstyle=text-align:center; |
|colstyle=text-align:center; |
| col1header = Boxes |
| col1header = Boxes |
| col1 = {{startflatlist}} |
| col1 = {{startflatlist}} |
*{{tlbare|arithmetic operations}} |
*{{tlbare|arithmetic operations}} |
*{{tlbare|calculus}} |
*{{tlbare|calculus}} |
*{{tlbare|Infobox mathematical function}} |
*{{tlbare|Infobox mathematical function}} |
*{{tlbare|functions}} |
*{{tlbare|functions}} |
{{endflatlist}} |
{{endflatlist}} |
| col2header = Tags |
| col2header = Tags |
| col2 = {{startflatlist}} |
| col2 = {{startflatlist}} |
*{{tlbare|metricate}} |
*{{tlbare|metricate}} |
*{{tlbare|undue precision}} |
*{{tlbare|undue precision}} |
*{{tlbare|units attention}} |
*{{tlbare|units attention}} |
{{endflatlist}} |
{{endflatlist}} |
}} |
}} |
| below = {{icon|Category}} {{c|Mathematics templates|Category}}{{dot}}[[:Module:Math]] |
| below = {{icon|Category}} {{c|Mathematics templates|Category}}{{dot}}[[:Module:Math]] |
}}<noinclude> |
}}<noinclude> |
{{Documentation}} |
{{Documentation}} |
</noinclude> |
</noinclude> |