Template:Mbox: Difference between revisions

From bmod
No edit summary
(Undo revision 37 by Tumble (talk))
Tag: Undo
 
Line 1: Line 1:
<div class="mw-message-box-{{{type}}} mw-message-box">
<strong>{{{title}}}</strong><br>
{{{text}}}
</div>
<noinclude>
todo: use #if
<div class="{{#if:{{{type|}}}|mw-message-box-{{{type}}}|}} mw-message-box">
<div class="{{#if:{{{type|}}}|mw-message-box-{{{type}}}|}} mw-message-box">
{{#if:{{{title|}}}|<strong>{{{title}}}</strong><br>|}}
{{#if:{{{title|}}}|<strong>{{{title}}}</strong><br>|}}
{{{text}}}
{{{text}}}
</div>
</div>
</noinclude>

Latest revision as of 22:33, 24 December 2023

{{{title}}}
{{{text}}}


todo: use #if

{{#if:|{{{title}}}
|}} {{{text}}}