Difference between revisions of "Template:Ambox"

From MPDLMediaWiki
Jump to navigation Jump to search
Line 1: Line 1:
<table style="border-width:2px;border-color:#000000;" class="metadata plainlinks ambox {{#switch:{{{type|}}}
<style type="text/css">
  | serious  = ambox-serious
table.ambox {
  | content  = ambox-content
border-width: 2px;
  | style    = ambox-style
border-spacing: 2px;
  | merge    = ambox-merge
border-style: solid;
  | notice  = ambox-notice
border-color: black;
  | #default = ambox-notice
border-collapse: separate;
}}">
background-color: white;
}
table.ambox th {
border-width: 2px;
padding: 2px;
border-style: dotted;
border-color: gray;
background-color: white;
-moz-border-radius: 0px;
}
table.ambox td {
border-width: 2px;
padding: 2px;
border-style: dotted;
border-color: gray;
background-color: white;
-moz-border-radius: 0px;
}
</style>
 
<table class="ambox">
<tr>
<tr>
<td class="ambox-image">
<td class="ambox">
{{#ifeq:{{{image}}}|none
{{#ifeq:{{{image}}}|none
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
Line 21: Line 41:
   }}</div>
   }}</div>
}}</td>
}}</td>
<td class="ambox-text">{{{text}}}</td>
<td class="ambox">{{{text}}}</td>
{{#if:{{{imageright|}}}|
{{#if:{{{imageright|}}}|
   <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
   <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>

Revision as of 21:56, 11 April 2008

<style type="text/css"> table.ambox { border-width: 2px; border-spacing: 2px; border-style: solid; border-color: black; border-collapse: separate; background-color: white; } table.ambox th { border-width: 2px; padding: 2px; border-style: dotted; border-color: gray; background-color: white; -moz-border-radius: 0px; } table.ambox td { border-width: 2px; padding: 2px; border-style: dotted; border-color: gray; background-color: white; -moz-border-radius: 0px; } </style>

{{{text}}}

copied from Wikipedia