(fr) Tags: Help sourceedit |
(Refresh) Tag: sourceedit |
||
Line 1: | Line 1: | ||
+ | '''Math formulas''' may 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 Wikia runs on) uses a subset of AMS-LaTeX markup, a superset of LaTeX markup which is in turn a superset of TeX markup, for mathematical formulae. |
||
− | == Step-by-Step == |
||
+ | ==Step by step== |
||
* You need to first be in [[Help:Editing|source editing mode]] on an article. |
* You need to first be in [[Help:Editing|source editing mode]] on an article. |
||
− | * |
+ | * Use the following format: <code><nowiki><math> math to be displayed </math></nowiki></code>. |
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | === Simple example === |
||
+ | * Large formulae may become wider than the maximum page width. Consider breaking them into multiple lines when possible. |
||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | * Large formulas may become wider than the page width allowed by Wikia's 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. |
||
⚫ | |||
− | ** Tables that get too wide will show the Pop-Out button, so that the whole table can be seen.<br />Here is an example: |
||
<pre> |
<pre> |
||
+ | <div style="overflow-x:scroll;"> |
||
− | {| |
||
− | + | <math> math formula goes here </math> |
|
+ | </div> |
||
− | |} |
||
</pre> |
</pre> |
||
− | * In-line formulae often have poor vertical alignment relative to the rest of the text. A work-around is described [ |
+ | * In-line formulae often 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]]. |
== See also == |
== See also == |
||
− | |||
* [[Help:Editing|Help on editing]] |
* [[Help:Editing|Help on editing]] |
||
* [[Help:Tables|Help on tables]] |
* [[Help:Tables|Help on tables]] |
||
Line 31: | Line 26: | ||
==Further help and feedback== |
==Further help and feedback== |
||
− | |||
{{Help and feedback section}} |
{{Help and feedback section}} |
||
Line 38: | Line 32: | ||
[[zh:Help:數學公式]] |
[[zh:Help:數學公式]] |
||
[[ja:Help:数式]] |
[[ja:Help:数式]] |
||
+ | |||
[[Category:Editing]] |
[[Category:Editing]] |
||
[[Category:Source editing]] |
[[Category:Source editing]] |
Revision as of 15:23, 12 May 2016
Math formulas may displayed on articles using the <math>
tag.
For the technically inclined, MediaWiki (which Wikia runs on) uses a subset of AMS-LaTeX markup, a superset of LaTeX markup which is in turn a superset of TeX markup, for mathematical formulae.
Step by step
- You need to first be in source editing mode on an article.
- Use the following format:
<math> math to be displayed </math>
. - For example, '3 x 2 = 6' can be displayed with
<math>{3 ~ \times ~ 2 ~ = ~ 6}</math>
, which generates:
- For details on how to write the math formulae themselves, see Help:Displaying a formula, on Wikipedia.
Notes
- Large formulae 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 formula goes here </math> </div>
- In-line formulae often have poor vertical alignment relative to the rest of the text. A work-around is described on Wikipedia.
See also
Further help and feedback
- Browse and search other help pages at Help:Contents
- Check Fandom Community Central for sources of further help and support
- Check Contacting Fandom for how to report any errors or unclear steps in this article