Permanently protected template

Difference between revisions of "Template:Nmbox"

From The HILLSIDE
Jump to navigation Jump to search
en>TheDJ
(upgrade to tableless design)
m (1 revision imported: Import Template:Nmbox)
Line 1: Line 1:
<templatestyles src="Template:Nmbox/styles.css" />
+
<table class="nmbox" style="border: 1px solid #a2a9b1; border-collapse: collapse; clear:both; margin: .5em 0;">
<div class="nmbox noprint">{{#if: {{{image|}}}{{{header|}}}
+
<tr style="background: #eaecf0;">
|<div class="nmbox-header">{{#if: {{{image|}}}|<div class="nmbox-image mbox-image">{{{image|}}}</div>}}{{{header|}}}
+
{{#if:{{{image|}}}{{{header|}}}
</div>}}
+
| <th class="mbox-image" style="white-space: nowrap; padding: .25em 1em;">{{{image|}}} {{{header|}}}</th>
{{#if:{{{text|}}}|<div class="nmbox-text mbox-text">{{{text|}}}</div>}}
+
| <td class="mbox-empty-cell"></td>   <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
</div><noinclude>
+
}}
 +
<td class="mbox-text" style="background: #f8f9fa">{{{text|}}}</td>
 +
</tr></table><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 17:16, 25 May 2020

Template documentation