Template:Theorem: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Inthar (talk | contribs)
mNo edit summary
Inthar (talk | contribs)
No edit summary
Line 15: Line 15:
-->
-->
</div></includeonly><noinclude>Formats math theorems, for example:
</div></includeonly><noinclude>Formats math theorems, for example:
{{theorem|contents=<math>\sqrt{2}</math> is irrational.}}
<pre> {{theorem|note=Existence of an irrational number|contents=<math>\sqrt{2}</math> is irrational.}}</pre>
yields
 
{{theorem|note=Existence of an irrational number|contents=<math>\sqrt{2}</math> is irrational.}}


Note: To include the character <code>|</code>, it must be escaped as <code><nowiki>{{!}}</nowiki></code>, unless it appears inside preformatted text (such as a <nowiki><syntaxhighlight></nowiki> or <nowiki><math></nowiki> tag).
Note: To include the character <code>|</code>, it must be escaped as <code><nowiki>{{!}}</nowiki></code>, unless it appears inside preformatted text (such as a <nowiki><syntaxhighlight></nowiki> or <nowiki><math></nowiki> tag).

Revision as of 00:22, 8 February 2024

Formats math theorems, for example:

 {{theorem|note=Existence of an irrational number|contents=<math>\sqrt{2}</math> is irrational.}}

yields

Theorem (Existence of an irrational number) — [math]\displaystyle{ \sqrt{2} }[/math] is irrational.

Note: To include the character |, it must be escaped as {{!}}, unless it appears inside preformatted text (such as a <syntaxhighlight> or <math> tag).