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)
Document equals signs in template content
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|}}}
{{{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 text}}</nowiki></code> for a simple note. If the content contains an equals sign, use <code><nowiki>{{Notice|1=$E=mc^2$}}</nowiki></code>, as MediaWiki otherwise treats it as a named parameter.</noinclude>

Revision as of 08:57, 29 September 2026

Use {{Notice|Your note text}} for a simple note. If the content contains an equals sign, use {{Notice|1=$E=mc^2$}}, as MediaWiki otherwise treats it as a named parameter.