Difference between revisions of "Template:Dmbox"

From Self-sufficiency
Jump to: navigation, search
(Added hard-coded cell padding since the global mbox-* classes doesn't decache until 2 November.)
(Setting " font-style: italic;" as default. And removing error reporting since this meta-template will perhaps only be used in about 20 templates.)
Line 19: Line 19:
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td class="mbox-text" style="padding: 0.25em 0.9em; {{{textstyle|}}}"> {{{text}}} </td>
+
<td class="mbox-text" style="padding: 0.25em 0.9em; 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.9em 2px 0;"> {{{imageright}}} </td>
 
}}
 
}}
 
</tr>
 
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
+
</table><noinclude>
-->{{#switch:{{{type|}}}
+
|  <!-- No type fed, is also valid input -->
+
| disambig
+
| setindex =    <!-- Do nothing, valid "type" -->
+
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing. ([[:Category:Wikipedia message box parameter needs fixing|learn more]])</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
+
}}<noinclude>
+
  
 
<!-- {{pp-template|small=yes}} -->
 
<!-- {{pp-template|small=yes}} -->

Revision as of 10:38, 8 October 2008