Permanently protected template

Difference between revisions of "Template:Nmbox"

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

Revision as of 14:18, 25 May 2020

Template documentation