Difference between revisions of "Template:Dmbox"

From Self-sufficiency
Jump to: navigation, search
(Adding "{{pp-template|small=yes}}".)
(Change to use less margin and padding so it looks more like the old disambig and set index boxes.)
Line 9: Line 9:
 
| disambig      <!-- disambig = default -->
 
| disambig      <!-- disambig = default -->
 
| #default = dmbox-disambig
 
| #default = dmbox-disambig
}}" style="clear: both; margin: 1em; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; background: transparent; {{{style|}}}">
+
}}" style="clear: both; margin: 0.9em 1em; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; background: transparent; {{{style|}}}">
 
<tr>
 
<tr>
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
 
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
 
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
| <td class="mbox-image" style="padding: 2px 0 2px 0.9em;">
+
| <td class="mbox-image" style="padding: 2px 0 2px 0.4em;">
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
 
   | {{{image}}}
 
   | {{{image}}}
Line 19: Line 19:
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td class="mbox-text" style="padding: 0.25em 0.9em; font-style: italic; {{{textstyle|}}}"> {{{text}}} </td>
+
<td class="mbox-text" style="padding: 0.25em 0.4em; font-style: italic; {{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
| <td class="mbox-imageright" style="padding: 2px 0.9em 2px 0;"> {{{imageright}}} </td>
+
| <td class="mbox-imageright" style="padding: 2px 0.4em 2px 0;"> {{{imageright}}} </td>
 
}}
 
}}
 
</tr>
 
</tr>

Revision as of 15:48, 13 October 2008