Template:Nmbox: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<table class="nmbox" style="border: 2px solid {{ColorSel|bannerUI|border}}; border-radius: 5px; border-collapse:collapse; width:100%; clear:both; font-size:85%; margin: 0.5em 0;">
<table class="nmbox" style="border: 2px solid {{ColorSel|UI|border}}; border-radius: 5px; border-collapse:collapse; width:100%; clear:both; font-size:85%; margin: 0.5em 0;">
<tr style="border-bottom: 1px #000 solid; background-color: lightblue; background-image: linear-gradient(to bottom, #eee 0%, lightblue 100%)">
  <tr style="background-color: {{ColorSel|UI|banner}}; background-image: linear-gradient(to bottom, #eee, {{ColorSel|UI|banner}});">
{{#if:{{{image|}}}{{{header|}}}
    <th style="background-color: >{{{image|}}}{{{header|}}}</th>
| <th class="mbox-image" style="white-space: nowrap; padding: 4px 1em; width:5%; border-right: 1px solid #white;">{{{image|}}} {{{header|}}}</th>
    <td style="background-color: {{ColorSel|UI|content}}; background-image: linear-gradient(to bottom, #eee, {{ColorSel|UI|content}});">{{{text|}}}</td>
| <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
}}
<td class="mbox-text" style="background-color: #E0FFFF;background-image: linear-gradient(to bottom, #eee 0%, #E0FFFF 100%);padding: 0.25em 0.9em;">{{{text|}}}</td>
</tr></table><noinclude>
</tr></table><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 13:09, 2 January 2015