Difference between revisions of "Template:Cmbox/test1"

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(Making the left image cell handle any image size. Adding hard-coded cell paddings due to the 31 days CSS caching.)
imported>CommonsDelinker
(Replacing Canis_lupus_laying.jpg with File:Front_view_of_a_resting_Canis_lupus_ssp.jpg (by CommonsDelinker because: File renamed: Criterion 3 (obvious error) · Es ist üblich, Tiere mit d)
 
(4 intermediate revisions by 2 users not shown)
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: 0.25em 0.9em;">
+
| <td class="mbox-image">
 
   {{#if:{{{image|}}}
 
   {{#if:{{{image|}}}
 
   | {{{image}}}
 
   | {{{image}}}
Line 28: Line 28:
 
   }}</td>
 
   }}</td>
 
}}
 
}}
<td class="mbox-text" style="padding: 2px 0 2px 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>
Line 69: Line 69:
 
| text = delete
 
| text = delete
 
}}
 
}}
[[Image:Canis lupus laying.jpg|thumb|150px]]
+
[[Image:Front view of a resting Canis lupus ssp.jpg|thumb|150px]]
 
{{cmbox/test1
 
{{cmbox/test1
 
| type = content
 
| type = content
Line 97: Line 97:
 
Some text just to test bottom margin.
 
Some text just to test bottom margin.
  
[[Image:Canis lupus laying.jpg|thumb|200px]]
+
[[Image:Front view of a resting Canis lupus ssp.jpg|thumb|200px]]
  
 
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.
 
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.
Line 138: Line 138:
 
| imageright = [[Image:Nuvola apps bookcase.svg|100px]]
 
| imageright = [[Image:Nuvola apps bookcase.svg|100px]]
 
}}
 
}}
 
Note that cmbox currently does not support images larger than 52px on the left side. That is why two of the examples above look bad.
 
  
 
=== Testing error reporting ===
 
=== Testing error reporting ===

Latest revision as of 01:35, 26 October 2020


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