Jump to content

Template:Notice: Difference between revisions

From Ash's Lecture Notes
Ash (talk | contribs)
Create simple note template for lecture content
 
Ash (talk | contribs)
Accept named body argument for equations
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="physics-box physics-box-note"><div class="physics-box-body">
<includeonly><div class="physics-box physics-box-note"><div class="physics-box-body">
{{{1|}}}
{{{body|{{{1|}}}}}}
</div></div></includeonly><noinclude>Use <code><nowiki>{{Notice|Your note text}}</nowiki></code> for a simple note. The sole argument is the content; no title or style settings are needed.</noinclude>
</div></div></includeonly><noinclude>Use <code><nowiki>{{Notice|Your note}}</nowiki></code> for simple text. Use <code><nowiki>{{Notice|body=$E=mc^2$}}</nowiki></code> when content contains equals signs; the snippet inserts this named form automatically.</noinclude>

Latest revision as of 09:15, 29 September 2026

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