Template:TermBox: Difference between revisions

From Bodhicitta
((by SublimeText.Mediawiker))
(VSCode edit)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="px-4 pt-1 pb-3 text-80 rounded tsdwiki-pop-off offwhite-bg {{{ classes | }}} {{#switch: {{{ side | }}}
<includeonly><div class="px-4 pt-1 pb-3 text-80 rounded tsdwiki-pop-off offwhite-bg my-2 col-sm-6 col-md-4 {{{ classes | }}} {{#switch: {{{ side | }}}
|right=float-right my-2 ml-3
|right=float-right ml-3
|left=float-left my-2 mr-3
|left=float-left mr-3
}}>{{#widget:OverlayLink
}}>{{#widget:OverlayLink
|link=/index.php/Key Terms/{{{ term | }}}
|link=/index.php/Key Terms/{{{ term | }}}
Line 8: Line 8:
|title={{{ term | }}}
|title={{{ term | }}}
}}
}}
<noglossary><h5 class="mb-2">{{{ term | }}}</h5>
<noglossary><h5 class="mb-2">{{#if:{{#show:Key Terms/{{{ term | }}}|?Glossary-English}}
<div class="line13 text-95 clipped-5-lines" style="max-height: 125px !important;">{{{ definition | }}}</div>
|{{#show:Key Terms/{{{ term | }}}|?Glossary-English}}
|{{#if:{{#show:Key Terms/{{{ term | }}}|?Glossary-English}}
|{{#show:Key Terms/{{{ term | }}}|?Glossary-English}}
|{{{ term | }}}
}}
}}</h5>
<div class="line13 text-95 clipped-5-lines" style="max-height: 125px !important;">{{#if:{{{ definition | }}}
|{{{ definition | }}}
|{{#show:Key Terms/{{{ term | }}}|?Glossary-BasicMeaning}}
}}</div>
<div class="text-right text-muted text-80 m-0 p-0">term page <i class="ml-1 fa-duotone fa-arrow-up fa-xs rotate45"></i></div></noglossary>
<div class="text-right text-muted text-80 m-0 p-0">term page <i class="ml-1 fa-duotone fa-arrow-up fa-xs rotate45"></i></div></noglossary>
</div></includeonly>
</div></includeonly>

Latest revision as of 20:47, 2 March 2026