Difference between revisions of "Template:Cmbox/test1"

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(Oops, mixed up the hard-coded padding for the text and left image cells. Good thing I test things before deploying them.)
imported>Davidgothberg
(The 31 days CSS caching for the old locked 52px left image "cmbox mbox-image/text" classes has passed. Removing the hard-coded styles and now using the global classes instead.)
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" style="padding: 2px 0 2px 0.9em;">
+
| <td class="mbox-image">
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
 
   | {{{image}}}
 
   | {{{image}}}
Line 28: Line 28:
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td class="mbox-text" style="padding: 0.25em 0.9em; {{{textstyle|}}}"> {{{text}}} </td>
+
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
| <td class="mbox-imageright" style="padding: 2px 0.9em 2px 0;"> {{{imageright}}} </td>
+
| <td class="mbox-imageright"> {{{imageright}}} </td>
 
}}
 
}}
 
</tr>
 
</tr>

Revision as of 03:59, 2 November 2008


David's sandbox for {{cmbox}}

Here David Göthberg is testing and showing new code versions. Please do not edit this page. If you want to experiment do so in {{cmbox/sandbox}} or create your own subpage under {{cmbox}} or in your own user space.

The box above is template code on this page, the boxes below are transclusions of this page and show how that code renders when the box is stacked. If you anyway have updated the code above then you have to Script error: No such module "Purge". to see the effect on the examples below.

Some text just to test bottom margin.

The image to the right tests how the horizontal line under the heading below interacts with the image. Since User:Wknight94 reported a problem with that and the ambox/cmbox CSS code.

More tests

Special

Some other parameter combinations.

Testing error reporting