Template:Theorem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 19: | Line 19: | ||
{{theorem|note=Existence of an irrational number|contents=<math>\sqrt{2}</math> is irrational.}} | {{theorem|note=Existence of an irrational number|contents=<math>\sqrt{2}</math> is irrational.}} | ||
Only the <code>contents</code> parameter is obligatory. | |||
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:25, 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.
Only the contents
parameter is obligatory.
Note: To include the character |
, it must be escaped as {{!}}
, unless it appears inside preformatted text (such as a <syntaxhighlight> or <math> tag).