FANDOM


Though mathematical formulae are rarely needed on a wiki like this, the following help file should help you understand how to reproduce them.

Math formulas can be displayed on articles using the <math> tag.

For the technically inclined, MediaWiki (which is used by Fandom wikis) uses a subset of AMS-LaTeX markup, a superset of LaTeX markup which is in turn a superset of TeX markup, for mathematical formulas.

Step by step

  • Open source editing mode for an article.
  • Write your math code in the following format: <math>math to be displayed</math>.
  • For example, the equation '3 x 2 = 6' can be displayed using:
    <math>{3 ~ \times ~ 2 ~ = ~ 6}</math>
  • Which generates this:
    $ {3 ~ \times ~ 2 ~ = ~ 6} $
  • For details on how to write the math formulas themselves, see Help:Displaying a formula, on Wikipedia.

Notes

  • Large formulas may become wider than the maximum page width. Consider breaking them into multiple lines when possible.
    • Another solution is to place the formula inside a simple div with "overflow-x:scroll" set, so that a scrollbar show up. For example:
<div style="overflow-x:scroll;">
<math> ... </math>
</div>
  • In-line formulas can have poor vertical alignment relative to the rest of the text. A work-around is described on Wikipedia.

See also

Further help and feedback

Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+