Template:Theorem: Difference between revisions
mNo edit summary |
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). |