Template:Equation box 1: Difference between revisions

From ScholarlyWiki
Jump to navigation Jump to search
Create Equation box 1 template for equation callouts
 
Simplify Equation box 1 template rendering
 
Line 1: Line 1:
<includeonly>{{{indent|}}}<div class="equation-box-1" style="display:inline-block; padding:0.6em 0.8em; margin:0.4em 0; border:{{#if:{{{border|}}}|2px solid {{{border colour|{{{border color|#50C878}}}}}}|2px solid {{{border colour|{{{border color|#50C878}}}}}}}}; background:{{{background colour|{{{background color|#ECFCF4}}}}}}; color:#000; box-sizing:border-box;">
<includeonly>{{{indent|}}}<div class="equation-box-1" style="display:inline-block; padding:0.6em 0.8em; margin:0.4em 0; border:2px solid {{{border colour|#50C878}}}; background:{{{background colour|#ECFCF4}}}; color:#000; box-sizing:border-box;">
{{#if:{{{title|}}}|<div style="font-weight:bold; margin-bottom:0.35em;">{{{title}}}</div>}}
{{#if:{{{title|}}}|<div style="font-weight:bold; margin-bottom:0.35em;">{{{title}}}</div>}}
<div>{{{equation|{{{1|}}}}}}</div>
<div>{{{equation|{{{1|}}}}}}</div>

Latest revision as of 12:41, 17 May 2026

Simple equation callout box.

Usage:

{{Equation box 1
| title = Title
| equation = <math>...</math>
| border colour = #50C878
| background colour = #ECFCF4
}}