Template:Nmbox: Difference between revisions

From Elwiki
(Undo revision 141568 by Kajin (talk))
(Undo revision 758788 by Ritsu (talk))
Tag: Undo
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table class="nmbox" style="border: 2px solid #ccc; border-radius: 5px; border-collapse:collapse; width:100%; clear:both; font-size:85%; margin: 0.5em 0;">
<table class="nmbox" style="{{{boxstyle|}}}"><tr><th
<tr style="border-bottom: 1px #000 solid; background-color: lightblue; background-image: linear-gradient(to bottom, #eee 0%, lightblue 100%)">
  style="{{{headerstyle|}}};">{{{image|}}}{{{header|}}}</th><td
{{#if:{{{image|}}}{{{header|}}}
  style="{{{textstyle|}}};">{{{text|}}}</td></tr></table><noinclude>
| <th class="mbox-image" style="white-space: nowrap; padding: 4px 1em; width:5%; border-right: 1px solid #white;">{{{image|}}} {{{header|}}}</th>
{{Doc}}
| <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>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 14:06, 30 April 2022

Information: If you want to test this template, please use Sandbox.
The documentation does not exist, you can click here to create.