Misplaced Pages

Template:Mvar/doc: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Mvar Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 19:38, 23 April 2015 editEdokter (talk | contribs)Extended confirmed users55,830 edits The template is not controversial. Where would that have been established?← Previous edit Revision as of 20:29, 23 April 2015 edit undoTakuyaMurata (talk | contribs)Extended confirmed users, IP block exemptions, Pending changes reviewers89,986 edits Undid revision 658886079 by Edokter (talk) saying it's not controversial doesn't make it notNext edit →
Line 6: Line 6:


Note that digits in a variable name are conventionally not italic so {{tl|math}} should be used instead in for example <nowiki>{{math|''x''<sub>1</sub>}}</nowiki> to produce {{math|''x''<sub>1</sub>}}. Functions and variables made up of multiple letters are conventionally set in upright letters so {{tl|math}} should be used in that case too; for example <nowiki>{{math|cos}}</nowiki> to produce {{math|cos}}. Note that digits in a variable name are conventionally not italic so {{tl|math}} should be used instead in for example <nowiki>{{math|''x''<sub>1</sub>}}</nowiki> to produce {{math|''x''<sub>1</sub>}}. Functions and variables made up of multiple letters are conventionally set in upright letters so {{tl|math}} should be used in that case too; for example <nowiki>{{math|cos}}</nowiki> to produce {{math|cos}}.

== Warning ==
The use of this template has been highly controversial. '''Do not use the template unless establishing the consensus to do so at the talkpage.'''


== Usage == == Usage ==

Revision as of 20:29, 23 April 2015

This is a documentation subpage for Template:Mvar.
It may contain usage information, categories and other content that is not part of the original template page.
WarningThis template is used on approximately 8,900 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

The mvar template makes the argument italic and formats as mathematics. It is used to refer to individual variables in normal running text. It should not be used within a {{math}} template.

Note that digits in a variable name are conventionally not italic so {{math}} should be used instead in for example {{math|''x''<sub>1</sub>}} to produce x1. Functions and variables made up of multiple letters are conventionally set in upright letters so {{math}} should be used in that case too; for example {{math|cos}} to produce cos.

Warning

The use of this template has been highly controversial. Do not use the template unless establishing the consensus to do so at the talkpage.

Usage

For example:

Let {{mvar|x}} be the maximum value used.

produces:

Let x be the maximum value used.

See also

  • {{math}} which formats its argument as mathematics
  • {{bigmath}}, the same as {{math}} but makes it bigger
  • {{tmath}} wraps a ] math expression in <math> tags
Math templates
  • Functions
  • Numeral systems
Functions
Numeral systems
Conversions
convert many units (see: list)
cvt abbreviated {{convert}}
convinfobox {{convert}} for infoboxes
bbl to t barrels of oil to tonnes
long ton long hundredweights, quarters and pounds to kilograms;
long tons and hundredweights to pounds and metric tons
miles-chains miles and chains to kilometres linking "chains"
decdeg degrees, minutes, and seconds to decimal degrees
deg2dms decimal degrees to degrees, minutes, and seconds
deg2hms decimal degrees to hour angle (in hours, minutes, and seconds)
hms2deg hour angle (in hours, minutes, and seconds) to decimal degrees
inflation calculate inflation of Consumer Price Index-related prices
pop density population density in an area
track gauge railway track gauges
Notation and formatting
bigmath bigger font to match TeX \displaystyle (standalone formulas only)
bra–ket notation
ceil, floor calculations :mw:Help:#expr; formatting indicators ⌈3.14⌉, ⌊3.14⌋ (no calculation performed)
fraction slant fractions 3⁄5 (not for maths/science articles; use standing or upright fractions {{sfrac}} instead)
intmath integral symbols
  • langle
  • rangle
  • angbr
  • angular brackets
  • ldelim
  • rdelim
  • multiline delimiters (2–5 lines inclusive)
    abs absolute values (paired vertical lines)
    math short text-based formulas
    mathcal calligraphic font; alternative to LaTeX \mathcal{...}
    mvar individual italicized maths variables in normal text
  • overline
  • underline
  • a line set above/below a sequence of characters
    overarc an arc set above a sequence of characters
  • overset
  • underset
  • arbitrary characters/diacritics set above/below one another
    pars parentheses that can be resized (∑)
    sfrac "standing" or upright fractions ⁠3/5⁠ (use in maths/science articles instead of{{fraction}})
  • sub
  • sup
  • su
  • subscripts and superscripts
    tmath Wrap TeX in <math> tags
    tombstone symbol indicating the end of a proof
    val measurement values, uncertainties and units
    vec various overarrows, underarrows, etc.
  • Boxes
  • Tags
  • Notices
  • BoxesTags


    Template:Mvar/doc: Difference between revisions Add topic