Template:Math templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>DePiep
meta>Bernanke's Crossbow
Added Template:mabs and tightened wording (also, consistent (non-)capitalization)
Line 1: Line 1:
<!-- This template uses British English. -->
{{Navbox with collapsible groups
{{Navbox with collapsible groups
| name = Math templates
| name = Math templates
Line 49: Line 50:
     |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}}          | many units; abbreviated {{tl|convert}}
     | {{tlbare|cvt}}          | abbreviated {{tl|convert}}
     | {{tlbare|convinfobox}}  | for use in 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
Line 63: Line 64:
     | {{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}}      | to calculate inflation of Consumer Price Index-related prices
     | {{tlbare|inflation}}      | calculate inflation of Consumer Price Index-related prices
     | {{tlbare|pop density}}    | density of a population in an area
     | {{tlbare|pop density}}    | population density in an area
     | {{tlbare|track gauge}}    | railway track gauges
     | {{tlbare|track gauge}}    | railway track gauges
     }}
     }}
Line 80: Line 81:
     |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}} | for stand-alone formulas, using a bigger font to match {{noitalic|<samp><nowiki>\</nowiki>displaystyle</samp>}} PNG-rendered {{noitalic|[[TeX]]}} formulas
     | {{tlbare|bigmath}} | bigger font to match {{noitalic|[[TeX]]}} {{noitalic|<samp><nowiki>\</nowiki>displaystyle</samp>}} (standalone formulas only)
     | {{hlist|{{tlbare|bra-ket}}|{{tlbare|braket}}}} {{hlist|{{tlbare|bra}}|{{tlbare|ket}}}} | [[bra–ket notation]]
     | {{hlist|{{tlbare|bra-ket}}|{{tlbare|braket}}|{{tlbare|bra}}|{{tlbare|ket}}}} | [[bra–ket notation]]
     | {{tlbare|ceil}}, {{tlbare|floor}}  | Adds indicators {{noitalic|1={{ceil|3.14}}}}, {{noitalic|1={{floor|3.14}}}} (no calculation performed)
     | {{tlbare|ceil}}, {{tlbare|floor}}  | indicators {{noitalic|1={{ceil|3.14}}}}, {{noitalic|1={{floor|3.14}}}} (no calculation performed)
     | {{tlbare|frac}}    | for creating fractions {{frac|3|5}}  (not for use in science or mathematical articles; instead, use {{noitalic|{{tlx|sfrac}}}})
     | {{tlbare|frac}}    | fractions {{frac|3|5}}  (not for maths/science articles; use {{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|math}}    | for short inline formulas
    | {{tlbare|mabs}}    | absolute values (paired vertical lines)
     | {{tlbare|math}}    | short inline formulas
     }}
     }}
   | {{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|mathcal}} | [mathematical] calligraphic font for use in mathematical formulas, as an alternative to {{noitalic|<samp><nowiki>\</nowiki>mathcal{...}</samp>}} in {{noitalic|[[LaTeX]]}} markup
     | {{tlbare|mathcal}} | [mathematical] calligraphic font; alternative to {{noitalic|[[LaTeX]]}}  {{noitalic|<samp><nowiki>\</nowiki>mathcal{...}</samp>}}
     | {{tlbare|mvar}}    | a short form to refer to individual italicized maths variables in normal text
     | {{tlbare|mvar}}    | individual italicized maths variables in normal text
     | {{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|radic}}  | Radicals {{radic|2}}
     | {{tlbare|radic}}  | radicals {{radic|2}}
     | {{tlbare|sfrac}}  | for creating fractions {{sfrac|3|5}} (this template should be used in science or mathematical articles instead of {{noitalic|{{tlx|frac}}}})
     | {{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
     | {{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}}
     | wraps a {{noitalic|[[TeX]]}} math expression in {{noitalic|<nowiki><math></nowiki>}} tags
     | Wrap {{noitalic|[[TeX]]}} in {{noitalic|<nowiki><math></nowiki>}} tags
 
     | {{tlbare|val}}    | measurement values, uncertainties and units
     | {{tlbare|val}}    | to report measurement values, uncertainties and units
     | {{tlbare|vec}}    | various overarrows, underarrows, etc.<!--pointing left, right or both ways-->
     | {{tlbare|vec}}    | for various overarrows, underarrows, pointing left, right or both ways
     }}
     }}
  }}
  }}

Revision as of 18:42, 6 April 2020