Template:Theorem/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) Docpage |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{dochead}} | {{dochead}} | ||
This template formats mathematical theorems. | |||
=== Usage === | === Usage === | ||
For example: | For example: | ||
<pre> | |||
{{theorem | |||
| note=Existence of an irrational number | |||
| contents=<math>\sqrt{2}</math> is irrational. | |||
}} | |||
</pre> | |||
yields | yields | ||
{{ | {{{{ROOTPAGENAME}} | ||
| note=Existence of an irrational number | |||
| contents=<math>\sqrt{2}</math> is irrational. | |||
}} | |||
Only the <code>contents</code> parameter is obligatory. | |||
{{escape notice}} | |||
=== See also === | === See also === | ||
* [[Template:Proof]] | * [[Template:Proof]] |
Latest revision as of 16:13, 31 January 2025
This template formats mathematical theorems.
Usage
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: Pipe characters (|
) must be escaped as {{!}}
or {{pipe}}
, equals signs must be escaped as {{=}}
(this may apply to tags as well, e.g. <div style{{=}}"…">
), and other special characters and character sequences may need to be escaped accordingly, except for ones inside <nowiki>
, <pre>
, <math>
, and <syntaxhighlight>
tags.