Community Central
Community Central
No edit summary
m (Forgot to put 'Yardım:'.)
Tag: Help
(24 intermediate revisions by 17 users not shown)
Line 1: Line 1:
  +
'''Math formulas''' can be displayed on articles using the '''<code><nowiki><math></nowiki></code>''' tag.
'''Math formulas''' may displayed on Wikia pages using a built in <nowiki><math></nowiki> tag found in [[Help:MediaWiki|MediaWiki]], the software Wikia runs on. This tag is enabled by default and can be used across all wikias. For the technically inclined, MediaWiki uses a subset of AMS-LaTeX markup, a superset of LaTeX markup which is in turn a superset of TeX markup, for mathematical formulae.
 
   
  +
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 ==
 
   
 
== Step by step ==
* You need to first be in [[Help:Editing|source editing mode]] on an article.
+
* Open [[Help:Editing|source editing mode]] for an article.
* You must use the following format: <span style="background: #eee;"><nowiki><math> math to be displayed </math></nowiki></span>.
+
* Write your math code in the following format: <code><nowiki><math>math to be displayed</math></nowiki></code>.
** For more exacting details on the '''math to be displayed''' section see [[wikipedia:Help:Displaying a formula|this article on Wikipedia]].
 
  +
* For example, the equation '3 x 2 = 6' can be displayed using:
 
*:<code><nowiki><math>{3 ~ \times ~ 2 ~ = ~ 6}</math></nowiki></code>
  +
* Which generates this:
  +
*:<math>{3 ~ \times ~ 2 ~ = ~ 6}</math>
 
* For details on how to write the math formulas themselves, see [[wikipedia:Help:Displaying a formula|Help:Displaying a formula, on Wikipedia]].
   
=== Simple example ===
+
== 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:
   
  +
<pre style="margin-left:6em;">
3 x 2 = 6 can be displayed as <span style="background: #eee;"><nowiki><math>{3 ~ \times ~ 2 ~ = ~ 6}</math></nowiki></span> to generate
 
  +
<div style="overflow-x:scroll;">
: <math>{3 ~ \times ~ 2 ~ = ~ 6}</math>
 
  +
<math> ... </math>
 
</div>
 
</pre>
   
  +
* In-line formulas can have poor vertical alignment relative to the rest of the text. A work-around is described [[wikipedia:Help:Displaying a formula#Alignment with normal text flow|on Wikipedia]].
=== Notes ===
 
 
* Large formulas may become wider than the page width allowed by Wikia' wikis and will overlap the right hand side-rail information, if your math formula is near the top of the page you wish to use.
 
** One solution is to place the formula inside of a simple basic table, with no borders or anything.
 
** Tables, that get to wide, will show the Pop-Out button, so that the whole table can be seen.<br />Here is an example:
 
<pre>
 
{|
 
| <math> math formula goes here </math>
 
|}
 
</pre>
 
   
 
== See also ==
 
== See also ==
 
* [[Help:Editing|Help on editing]]
 
* [[Help:Tables|Help on tables]]
 
* [[Wikipedia:Help:Displaying a formula|Wikipedia's math documentation]]
   
  +
== Further help and feedback ==
* [[Help:Editing]]
 
  +
{{Help and feedback section}}[[de:Hilfe:Mathematik]]
* [[Help:Tables]]
 
 
[[es:Ayuda:Matemáticas]]
 
  +
[[fr:Aide:Math]]
{{Wikipedia|Help:Displaying a formula}}
 
 
[[ja:ヘルプ:数式]]
 
  +
[[pt:Ajuda:Matemática]]
 
  +
[[ru:Справка:Math]]
[[eshelp:Ayuda:Matemáticas]]
 
  +
[[tr:Yardım:Matematik]]
  +
[[uk:Довідка:Math]]
  +
[[vi:Trợ giúp:Toán học]]
 
[[zh:Help:數學公式]]
 
[[zh:Help:數學公式]]
[[ja:Help:数式]]
 
 
[[Category:Editing]]
 
[[Category:Editing]]
 
[[Category:Source editing]]
 
[[Category:Source editing]]

Revision as of 13:44, 9 December 2019

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:
  • 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