Template:Math templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Edokter
(center headers)
m (87 revisions imported)
 
(46 intermediate revisions by 22 users not shown)
Line 1: Line 1:
<!-- This template uses British English. -->
{{Navbox with collapsible groups
{{Navbox with collapsible groups
| name = Math templates
| name = Math templates
| state = {{{state<includeonly>|expanded</includeonly>}}}
| state = {{{state|expanded}}}
| bodyclass = hlist
| bodyclass = plainlist
| title = Math templates
| title = Math templates
| selected = {{{1|}}}
| liststyle = font-size:110%;<!--(as some templates' descriptions include links)-->
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}}


| group1 = Functions
<!-------------- Functions / Numeral systems -------------->
| abbr1 = functions
| abbr1 = FN
| group1 = {{hlist|Functions|Numeral systems}}
| state1 = <noinclude>expanded</noinclude>
| list1 =
| list1 =
*{{tl|addition}}
{{Navbox |child |listclass=hlist
*{{tl|elementary arithmetic}}
  | group1 = Functions
*{{tl|precision}}
  | list1 =
*{{tl|precision1}}
*{{tlbare|elementary arithmetic}}
*{{tl|value}}
*{{tlbare|precision}}
*{{tlbare|value}}
  | group2 = Numeral systems
  | list2 =
*{{tlbare|base 36}}
*{{tlbare|binary}}
*{{tlbare|dec2hex}}
*{{tlbare|decimal2Base}}
*{{tlbare|duodecimal}}
*{{tlbare|hex2dec}}
*{{tlbare|hexadecimal}}
*{{tlbare|octal}}
*{{tlbare|quaternary}}
*{{tlbare|quinary}}
*{{tlbare|rn}}
*{{tlbare|roman}}
*{{tlbare|senary}}
*{{tlbare|ternary}}
*{{tlbare|vigesimal}}
}}


| group2 = Conversion
<!---------------------- Conversions ---------------------->
| abbr2 = conversion
| abbr2 = conversions
| group2 = Conversions
| state2 = <noinclude>expanded</noinclude>
| list2 =
| list2 =
*{{Tl|bbl to t}}
{{Aligned table
**barrel of oil to tonnes
  |style=margin:0 auto 0;text-align:left;
*{{tl|convert}}
  | {{Aligned table
*{{Tl|convert/scale}}
    |style=padding-right:2.5em;
**for converting any linearly related units
    |col1style=text-align:right;white-space:nowrap;padding-right:1.0em;
*{{Tl|convert/CwtQtrLb to kg}}
    |col2style=font-size:90%;<!--(see liststyle above)--> vertical-align:middle;line-height:1.3em;font-style:italic;
**long hundred weights, quarters and pounds to kilograms
    | {{tlbare|convert}}       | many units (see: [[Template:Convert/list_of_units |list]])
*{{tl|convert/TonCwt to t}}
    | {{tlbare|cvt}}          | abbreviated {{tl|convert}}
**long tons and hundredweights to pounds and metric tonnes
    | {{tlbare|convinfobox}}  | {{tl|convert}} for infoboxes
*{{Tl|convinfobox}}
    | {{tlbare|bbl to t}}     | barrels of oil to tonnes
**for use in infoboxes
    | {{tlbare|long ton}}      | long hundredweights, quarters and pounds to kilograms;<br/>long tons and hundredweights to pounds and metric tons
*{{Tl|decdeg}}
    | {{tlbare|miles-chains}}  | miles and chains to kilometres linking "chains"
**degrees, minutes and seconds to [[decimal degrees]]
    | {{tlbare|rndfrac}}      | decimals to fractions
*{{Tl|HMS2Deg}}
  }}
**[[hour angle]]s, given in hours, minutes and seconds, to decimal degrees
  | {{Aligned table
*{{Tl|inflation}}
    |col1style=text-align:right;white-space:nowrap;padding-right:1.0em;
**to calculate inflation of Consumer Price Index related prices
    |col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic;
*{{Tl|miles-chains}}
    | {{tlbare|decdeg}}         | degrees, minutes, and seconds to [[decimal degrees]]
**miles and chains to kilometres linking "chains"
    | {{tlbare|deg2DMS|deg2dms}} | decimal degrees to degrees, minutes, and seconds
*{{Tl|pop density}}
    | {{tlbare|deg2HMS|deg2hms}} | decimal degrees to [[hour angle]] (in hours, minutes, and seconds)
**population & area to a density
    | {{tlbare|HMS2Deg|hms2deg}} | [[hour angle]] (in hours, minutes, and seconds) to decimal degrees
*{{Tl|railGauge}}
    | {{tlbare|inflation}}       | calculate inflation of Consumer Price Index-related prices
**rail (track) gauges
    | {{tlbare|pop density}}     | population density in an area
    | {{tlbare|track gauge}}     | railway track gauges
    }}
}}


| group3 = Numeral systems
<!----------------------- Notation & formatting ------------------------>
| abbr3 = numeral systems
| group3 = Notation and {{Category link|Mathematical formatting templates|formatting}}
| abbr3 = notation
| state3 = <noinclude>expanded</noinclude>
| list3 =
| list3 =
*{{tl|base 36}}
{{Aligned table
*{{tl|binary}}
  |style=margin:0 auto 0;text-align:left;
*{{tl|dec2hex}}
  | {{Aligned table
*{{tl|decimal2Base}}
    |style=padding-right:2.5em;
*{{tl|duodecimal}}
    |col1style=text-align:right;white-space:nowrap;padding-right:1.0em;
*{{tl|hex2dec}}
    |col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic;
*{{tl|hexadecimal}}
    | {{tlbare|bigmath}} | bigger font to match {{noitalic|[[TeX]]}} {{noitalic|<samp><nowiki>\</nowiki>displaystyle</samp>}} (standalone formulas only)
*{{tl|octal}}
    | {{hlist|{{tlbare|bra-ket}}|{{tlbare|braket}}|{{tlbare|bra}}|{{tlbare|ket}}}} | [[bra–ket notation]]
*{{tl|quaternary numeral system}}
    | {{tlbare|ceil}}, {{tlbare|floor}}  | indicators {{noitalic|1={{ceil|3.14}}}}, {{noitalic|1={{floor|3.14}}}} (no calculation performed)
*{{tl|quinary}}
    | {{tlbare|frac}}    | fractions {{frac|3|5}}  (not for maths/science articles; use {{noitalic|{{tlx|sfrac}}}} instead)
*{{Tl|rn}}
    | {{tlbare|intmath}} | [[integral symbol]]s
*{{tl|roman}}
    | {{hlist|{{tlbare|langle}}|{{tlbare|rangle}}|{{tlbare|Angle bracket|angbr}}}} | [[Bracket#Angular brackets|angular bracket]]s
*{{tl|senary}}
    | {{hlist|{{tlbare|ldelim}}|{{tlbare|rdelim}}}} | multiline delimiters (2–5 lines inclusive)
*{{tl|ternary}}
    | {{tlbare|mabs}}   | absolute values (paired vertical lines)
*{{tl|vigesimal}}
    | {{tlbare|math}}   | short inline formulas
    | {{tlbare|mathcal}} | [mathematical] calligraphic font; alternative to {{noitalic|[[LaTeX]]}}  {{noitalic|<samp><nowiki>\</nowiki>mathcal{...}</samp>}}
    }}
  | {{Aligned table
    |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;
    | {{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|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|radic}}  | radicals {{radic|2}}
    | {{tlbare|sfrac}}  | fractions {{sfrac|3|5}} (use in maths/science articles instead of {{noitalic|{{tlx|frac}}}})
    | {{hlist|{{tlbare|sub}}|{{tlbare|sup}}|{{tlbare|su}}}} | subscripts and superscripts
    |style7.1=vertical-align:middle;text-align:right;padding-right:1.0em;| {{tlbare|tmath}}
    | Wrap {{noitalic|[[TeX]]}} in {{noitalic|<nowiki><math></nowiki>}} tags
    | {{tlbare|tombstone}} | symbol indicating the [[Tombstone (typography)|end of a proof]]
    | {{tlbare|val}}     | measurement values, uncertainties and units
    | {{tlbare|vec}}    | various overarrows, underarrows, etc.<!--pointing left, right or both ways-->
    }}
}}


| group4 = Notation
<!---------------- Boxes / Tags / Notices ----------------->
| abbr4 = notation
| abbr4 = BTN
| group4 = {{hlist|Boxes|Tags|Notices}}
| state4 = <noinclude>expanded</noinclude>
| list4 =
| list4 =
*{{tl|bigmath}}
{{Navbox with columns |child
**for stand-alone formulas, using a bigger font to match PNG rendered TeX formulas
  |colstyle=text-align:center;
*{{tl|bra-ket}}, {{tl|braket}}, {{tl|bra}}, {{tl|ket}}  for [[bra–ket notation]]
  | col1header = Boxes
*{{tl|frac}}
  | col1 = {{startflatlist}}
*{{tl|intmath}}
*{{tlbare|calculation results}}
**for [[integral symbol]]s
*{{tlbare|calculus}}
*{{tl|langle}} and {{tl|rangle}}
*{{tlbare|Infobox mathematics function}}
**for [[bracket#Bracket#Angle brackets or chevrons .E2.9F.A8 .E2.9F.A9|angular bracket]]s
*{{tlbare|functions}}
*{{tl|ldelim}} and {{tl|rdelim}}
{{endflatlist}}
**for multiline delimiters (2-5 lines inclusive)
  | col2header = Tags
*{{tl|math}}
  | col2 = {{startflatlist}}
*{{tl|mathcal}}
*{{tlbare|metricate}}
*{{tl|mvar}}
*{{tlbare|undue precision}}
**a short form to refer to individual italicized maths variables in normal text
*{{tlbare|units attention}}
*{{tl|overset}} and {{tl|underset}}
{{endflatlist}}
**for arbitrary characters and diacritics set above or below one another
}}
*{{tl|radic}}
*{{tl|sfrac}}
*{{tl|sqrt}}
*{{tl|su}}
*{{tl|sub}}
*{{tl|sup}}
*{{tl|tmath}}
**wraps a [[TeX|{{TeX}}]] math expression in <code>&lt;math></code> tags
*{{tl|val}}
*{{tl|vec}}
**for various overarrows, underarrows, pointing left, right or both ways


| group5 = Boxes
| below = {{icon|Category}} {{c|Mathematics templates|Category}}{{dot}}[[:Module:Math]]
| abbr5 = boxes
| list5 =
*{{tl|calculation results}}
*{{tl|calculus}}
*{{tl|Infobox mathematics function}}
*{{tl|functions}}


| group6 = Tags
}}<noinclude>
| abbr6 = tags
{{Documentation}}
| list6 =
</noinclude>
*{{Tl|metricate}}
*{{tl|undue precision}}
*{{tl|units attention}}
 
| group7 = Other
| abbr7 = other
| list7 =
*{{tl|calculation}}
 
| belowstyle = font-weight:bold;
| below =
* {{icon|Category}} [[:Category:Mathematics templates|Category]]
 
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 13:20, 3 September 2020