Template:Math templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
(selected/expanded, bodyclass/flatlists, combined sections with relatively few links, tabulated sections whose links accompanied by descriptions, typo)
m (87 revisions imported)
 
(44 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 = plainlist
| bodyclass = plainlist
| title = Math templates
| title = Math templates
| liststyle = font-size:110%;<!--(as some templates' descriptions include links)-->
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}}
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}}


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


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


| group3 = Notation
<!----------------------- Notation & formatting ------------------------>
| group3 = Notation and {{Category link|Mathematical formatting templates|formatting}}
| abbr3 = notation
| abbr3 = notation
| state3 = <noinclude>expanded</noinclude>
| list3 =
| list3 =
  {{Aligned table |style=margin:0 auto 0;text-align:left;
  {{Aligned table
   | {{Aligned table |style=padding-right:2.5em;
  |style=margin:0 auto 0;text-align:left;
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;
   | {{Aligned table
     | {{tl|bigmath}} | for stand-alone formulas, using a bigger font to match PNG-rendered {{noitalic|[[TeX|{{TeX}}]]}} formulas
    |style=padding-right:2.5em;
     | {{hlist|{{tl|bra-ket}}|{{tl|braket}}}} {{hlist|{{tl|bra}}|{{tl|ket}}}} |style2.2=vertical-align:middle;| [[bra–ket notation]]
     |col1style=text-align:right;white-space:nowrap;padding-right:1.0em;
     | {{tl|frac}}    |  
    |col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic;
     | {{tl|intmath}} | [[integral symbol]]s
     | {{tlbare|bigmath}} | bigger font to match {{noitalic|[[TeX]]}} {{noitalic|<samp><nowiki>\</nowiki>displaystyle</samp>}} (standalone formulas only)
     | {{hlist|{{tl|langle}}|{{tl|rangle}}}} | [[angular bracket]]s
     | {{hlist|{{tlbare|bra-ket}}|{{tlbare|braket}}|{{tlbare|bra}}|{{tlbare|ket}}}} | [[bra–ket notation]]
     | {{hlist|{{tl|ldelim}}|{{tl|rdelim}}}} | multiline delimiters (2-5 lines inclusive)
     | {{tlbare|ceil}}, {{tlbare|floor}}  | indicators {{noitalic|1={{ceil|3.14}}}}, {{noitalic|1={{floor|3.14}}}} (no calculation performed)
     | {{tl|math}}    |  
    | {{tlbare|frac}}    | fractions {{frac|3|5}}  (not for maths/science articles; use {{noitalic|{{tlx|sfrac}}}} instead)
     | {{tl|mathcal}} |  
     | {{tlbare|intmath}} | [[integral symbol]]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)
     | {{tlbare|mabs}}    | absolute values (paired vertical lines)
    | {{tlbare|math}}    | short inline formulas
     | {{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:0.75em; |col2style=font-style:italic;
     |col1style=text-align:right;white-space:nowrap;padding-right:1.0em;
     | {{tl|mvar}}    | a short form to refer to individual italicized maths variables in normal text
    |col2style=font-size:90%;<!--(as above)--> vertical-align:middle;line-height:1.3em;font-style:italic;
     | {{hlist|{{tl|overset}}|{{tl|underset}}}} | arbitrary characters/diacritics set above/below one another
     | {{tlbare|mvar}}    | individual italicized maths variables in normal text
     | {{tl|radic}}  |  
     | {{hlist|{{tlbare|overline}}|{{tlbare|underline}}}} | a line set above/below a sequence of characters
     | {{tl|sfrac}}  |  
    | {{hlist|{{tlbare|overset}}|{{tlbare|underset}}}} | arbitrary characters/diacritics set above/below one another
    | {{tl|sqrt}}   |
     | {{tlbare|pars}}    | parentheses that can be resized {{noitalic|1={{math|{{pars|s=150|{{large|∑}}}}}}}}
     | {{hlist|{{tl|su}}|{{tl|sub}}|{{tl|sup}}}} |  
    | {{tlbare|radic}}  | radicals {{radic|2}}
     | {{tl|tmath}}   | wraps a {{noitalic|{{TeX}}}} math expression in <code>&lt;math></code> tags
     | {{tlbare|sfrac}}  | fractions {{sfrac|3|5}} (use in maths/science articles instead of {{noitalic|{{tlx|frac}}}})
     | {{tl|val}}    |  
     | {{hlist|{{tlbare|sub}}|{{tlbare|sup}}|{{tlbare|su}}}} | subscripts and superscripts
     | {{tl|vec}}    | for various overarrows, underarrows, pointing left, right or both ways
     |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-->
     }}
     }}
  }}
  }}


<!---------------- Boxes / Tags / Notices ----------------->
| abbr4 = BTN
| group4 = {{hlist|Boxes|Tags|Notices}}
| group4 = {{hlist|Boxes|Tags|Notices}}
| abbr4 = BTN
| state4 = <noinclude>expanded</noinclude>
| list4 =
| list4 =
  {{Navbox with columns |child
  {{Navbox with columns |child
Line 96: Line 119:
   | col1header = Boxes
   | col1header = Boxes
   | col1 = {{startflatlist}}
   | col1 = {{startflatlist}}
*{{tl|calculation results}}
*{{tlbare|calculation results}}
*{{tl|calculus}}
*{{tlbare|calculus}}
*{{tl|Infobox mathematics function}}
*{{tlbare|Infobox mathematics function}}
*{{tl|functions}}
*{{tlbare|functions}}
{{endflatlist}}
{{endflatlist}}
   | col2header = Tags
   | col2header = Tags
   | col2 = {{startflatlist}}
   | col2 = {{startflatlist}}
*{{tl|metricate}}
*{{tlbare|metricate}}
*{{tl|undue precision}}
*{{tlbare|undue precision}}
*{{tl|units attention}}
*{{tlbare|units attention}}
{{endflatlist}}
  | col3header = Notices
  | col3 = {{startflatlist}}
*{{tl|calculation}}
{{endflatlist}}
{{endflatlist}}
  }}
  }}


| belowstyle = font-weight:bold;
| below = {{icon|Category}} {{c|Mathematics templates|Category}}{{dot}}[[:Module:Math]]
| below =
{{icon|Category}} [[:Category:Mathematics templates|Category]]


}}<noinclude>{{Documentation}}</noinclude>
}}<noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 13:20, 3 September 2020