Template:Block mbox: Difference between revisions
try some more |
fixes |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="mw-parser-output"> | <div class="mw-parser-output"> | ||
<templatestyles src="Template:Block mbox/styles.css"/><div class="user-block {{{type|}}}"> | <templatestyles src="Template:Block mbox/styles.css"/><div class="user-block {{{type|}}}" style="min-height:50px";> | ||
{{#if:{{{header|}}}|<div>{{#if:{{{image|}}}|[[File:{{{image}}}|50px|left]]}} | {{#if:{{{header|}}}|<div>{{#if:{{{image|}}}|[[File:{{{image}}}|50px|left]]}}{{{header|}}} | ||
{{{header|}}} | |||
</div>}} | </div>}} | ||
{{#if:{{{header|}}}|<div class="user-block-body" style=""> | {{#if:{{{header|}}}|<div class="user-block-body" style=""> | ||
{{{body}}} | {{{body}}} | ||
</div> | </div> | ||
|<div | |<div>{{#if:{{{image|}}}|[[File:{{{image}}}|50px|left]]}} | ||
{{{body}}}</div>}} | {{{body}}} | ||
</div>}} | |||
</div> | </div> | ||
</div><noinclude> | </div><noinclude> | ||
Line 16: | Line 16: | ||
** <code>header</code>: Text to be displayed above horizontal bar | ** <code>header</code>: Text to be displayed above horizontal bar | ||
** <code>image</code>: 50px image (without <code>File:</code>) to be displayed to the left of the <code><nowiki>{{{header}}}</nowiki></code> text | ** <code>image</code>: 50px image (without <code>File:</code>) to be displayed to the left of the <code><nowiki>{{{header}}}</nowiki></code> text | ||
** <code>body</code>: Text to be displayed below horizontal bar}} | ** <code>body</code>: Text to be displayed below horizontal bar | ||
** <code>type</code> (''optional''): Set to <code>blue</code> for an alternate appearance}}</noinclude> |