Jump to content

Template:Box: Difference between revisions

From Ash's Lecture Notes
Ash (talk | contribs)
Remove duplicate template content
Ash (talk | contribs)
m Document callout templates and snippet triggers with a colour gallery
Line 1: Line 1:
<includeonly><div class="physics-box"><div class="physics-box-body">
<includeonly><div class="physics-box"><div class="physics-box-body">
{{{body|{{{1|}}}}}}
{{{body|{{{1|}}}}}}
</div></div></includeonly><noinclude>Use <code><nowiki>{{Box|Your content}}</nowiki></code> for simple text. Use <code><nowiki>{{Box|body=$E=mc^2$}}</nowiki></code> when content contains equals signs; the snippet inserts this named form automatically.</noinclude>
</div></div></includeonly><noinclude>Use <code><nowiki>{{Box|Your content}}</nowiki></code> for simple text. Use <code><nowiki>{{Box|body=$E=mc^2$}}</nowiki></code> when content contains equals signs; the snippet inserts this named form automatically.
== Callout templates ==
Use <code>title=</code> for an optional title and <code>body=</code> for the contents. The editor snippets use title and body tab stops.
 
{| class="wikitable"
! Template !! Snippet
|-
| [[Template:Key result|Key result]] || <code>key</code>
|-
| [[Template:Proof|Proof]] || <code>pf</code>
|-
| [[Template:Example|Example]] || <code>ex</code>
|-
| [[Template:Aside|Aside]] || <code>aside</code>
|-
| [[Template:Warning|Warning]] || <code>warn</code>
|}
 
{{Key result|title=Fourier orthogonality|body=The central result of this section.}}
{{Proof|title=Derivation|body=Apply orthogonality and integrate term by term.}}
{{Example|title=Square wave|body=A worked calculation.}}
{{Aside|title=Geometric interpretation|body=An optional observation.}}
{{Warning|title=Convergence|body=Check the assumptions before applying this result.}}
{{Box|body=A general-purpose box.}}
{{Definition|term=Period|body=The interval over which a function repeats.}}
{{Theorem|name=Parseval|body=The energy is preserved.}}
{{Exercise|body=Find the Fourier coefficients.}}
{{Notice|body=Additional information.}}
</noinclude>

Revision as of 20:06, 11 October 2026

Use {{Box|Your content}} for simple text. Use {{Box|body=$E=mc^2$}} when content contains equals signs; the snippet inserts this named form automatically.

Callout templates

Use title= for an optional title and body= for the contents. The editor snippets use title and body tab stops.

Template Snippet
Key result key
Proof pf
Example ex
Aside aside
Warning warn
Key resultFourier orthogonality

The central result of this section.

ProofDerivation

Apply orthogonality and integrate term by term.

ExampleSquare wave

A worked calculation.

AsideGeometric interpretation

An optional observation.

WarningConvergence

Check the assumptions before applying this result.

A general-purpose box.

Definition: Period

The interval over which a function repeats.

Theorem: Parseval

The energy is preserved.

Exercise

Find the Fourier coefficients.

Additional information.