Template:Mbox: Difference between revisions

From bmod
(Created page with "<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"> {{#if:{{{title|}}}|<strong>{{{title}}}</strong><br>|}} {{{text}}} </div> </noinclude>")
 
No edit summary
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>

Revision as of 13:22, 24 December 2023

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