Difference between revisions of "Template:Bigmath/doc"

From blackwiki
Jump to navigation Jump to search
imported>Edokter
(Completely unsourced)
imported>Cedar101
m (→‎Examples: replace <code><nowiki> to <source>)
Line 6: Line 6:
  
 
=== Examples ===
 
=== Examples ===
<code><nowiki>
+
<source lang="html">
{{bigmath|{{sfrac|&amp;part;&amp;sup2;<var>f</var>|&amp;part;<var>r</var>&amp;sup2;}} + {{sfrac|&amp;part;<var>f</var>|<var>r</var> &amp;part;<var>r</var>}} + {{sfrac|&amp;part;&amp;sup2;<var>f</var>|<var>r</var>&amp;sup2;&amp;part;&amp;sup2;<var>&amp;theta;</var>}} {{=}} 0}}
+
{{bigmath|{{sfrac|&part;&sup2;<var>f</var>|&part;<var>r</var>&sup2;}} + {{sfrac|&part;<var>f</var>|<var>r</var> &part;<var>r</var>}} + {{sfrac|&part;&sup2;<var>f</var>|<var>r</var>&sup2;&part;&sup2;<var>&theta;</var>}} {{=}} 0}}
</nowiki> </code>
+
</source>
 
 
 
produces:
 
produces:
  
Line 15: Line 14:
  
 
Use prefix "1=" to allow simple equals-signs. Italicize letters by double-tic (<code><nowiki>''f''</nowiki></code>):
 
Use prefix "1=" to allow simple equals-signs. Italicize letters by double-tic (<code><nowiki>''f''</nowiki></code>):
<code><nowiki>
+
<source lang="html">
{{bigmath|1={{sfrac|&amp;part;&amp;sup2; ''f''|&amp;part;''r''&amp;sup2;}} + {{sfrac</nowiki><br><nowiki>|&amp;part;''f''|''r'' &amp;part;''r''}} = 0}}
+
{{bigmath|1={{sfrac|&part;&sup2; ''f''|&part;''r''&sup2;}} + {{sfrac
</nowiki></code>
+
|&part;''f''|''r'' &part;''r''}} = 0}}
 +
</source>
  
 
produces:
 
produces:
Line 26: Line 26:
 
Note that any extra spaces placed in the template will appear in the output. A long line can be split before any vertical-bar pipe ('|').
 
Note that any extra spaces placed in the template will appear in the output. A long line can be split before any vertical-bar pipe ('|').
  
In contrast, there is <code><nowiki><math display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0</math></nowiki>,</code> which produces
+
In contrast, there is <source lang="tex"><math display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0</math></source> which produces
 
<math forcemathmode=mathml display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0.</math>
 
<math forcemathmode=mathml display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0.</math>
 
This might be an alternative for more complex examples. If that's still to small, leave a comment on https://phabricator.wikimedia.org/T135419 please.
 
This might be an alternative for more complex examples. If that's still to small, leave a comment on https://phabricator.wikimedia.org/T135419 please.

Revision as of 05:56, 23 May 2016

Usage

Use this template to embed stand-alone formulae in wikitext. The mathematical capabilities of this template are very limited; use tables with class="texhtml" for formulae requiring non-linear layout.

Examples

{{bigmath|{{sfrac|&part;&sup2;<var>f</var>|&part;<var>r</var>&sup2;}} + {{sfrac|&part;<var>f</var>|<var>r</var> &part;<var>r</var>}} + {{sfrac|&part;&sup2;<var>f</var>|<var>r</var>&sup2;&part;&sup2;<var>&theta;</var>}} {{=}} 0}}

produces:

Template:Sfrac + Template:Sfrac + Template:Sfrac = 0

Use prefix "1=" to allow simple equals-signs. Italicize letters by double-tic (''f''):

{{bigmath|1={{sfrac|&part;&sup2; ''f''|&part;''r''&sup2;}} + {{sfrac
|&part;''f''|''r'' &part;''r''}} = 0}}

produces:

Template:Sfrac + Template:Sfrac = 0

Note that any extra spaces placed in the template will appear in the output. A long line can be split before any vertical-bar pipe ('|').

In contrast, there is

<math display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0</math>

which produces

<math forcemathmode=mathml display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0.</math> This might be an alternative for more complex examples. If that's still to small, leave a comment on https://phabricator.wikimedia.org/T135419 please.

See also