Difference between revisions of "Template:Dmbox"

From Self-sufficiency
Jump to: navigation, search
(Starting out this "disambigbox" meta-template.)
(Added hard-coded cell padding since the global mbox-* classes doesn't decache until 2 November.)
Line 13: Line 13:
 
{{#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">
+
| <td class="mbox-image" style="padding: 2px 0 2px 0.9em;">
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
 
   | {{{image}}}
 
   | {{{image}}}
Line 19: Line 19:
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
<td class="mbox-text" style="padding: 0.25em 0.9em; {{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
| <td class="mbox-imageright"> {{{imageright}}} </td>
+
| <td class="mbox-imageright" style="padding: 2px 0.9em 2px 0;"> {{{imageright}}} </td>
 
}}
 
}}
 
</tr>
 
</tr>
{{#if:{{{below|}}}
 
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
 
}}
 
 
</table><!-- Detect and report usage with faulty "type" parameter:
 
</table><!-- Detect and report usage with faulty "type" parameter:
 
-->{{#switch:{{{type|}}}
 
-->{{#switch:{{{type|}}}

Revision as of 09:56, 8 October 2008