Template:Theorem/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) Docpage |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 11: | Line 11: | ||
<br>Only the <code>contents</code> parameter is obligatory. | <br>Only the <code>contents</code> parameter is obligatory. | ||
'''Note:''' To include the character <code> | '''Note:''' To include the character <code>{{!}}</code>, it must be escaped as <code>{{((}}!{{))}}</code>, unless it appears inside preformatted text (such as a <code>{{^(}}syntaxhighlight{{)^}}</code> or <code>{{^(}}math{{)^}}</code> tag). | ||
=== See also === | === See also === | ||
* [[Template:Proof]] | * [[Template:Proof]] |
Revision as of 18:04, 29 August 2024
Usage
For example:
{{theorem|note=Existence of an irrational number|contents=[math]\displaystyle{ \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).