Template:Cmbox: Difference between revisions

(Created page with '<table class="plainlinks cmbox {{#switch:{{{type|}}} | speedy = cmbox-speedy | delete = cmbox-delete | content = cmbox-content | style = cmbox-style | move …')
 
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 9: Line 9:
| notice          <!-- notice = default -->
| notice          <!-- notice = default -->
| #default  = cmbox-notice
| #default  = cmbox-notice
}}" style="{{{style|}}}">
}}" style="{{grey border}} margin-bottom: 0px; {{{style|}}}">
<tr>
<tr>
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td>
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td>
| <td class="mbox-image">
| <td class="mbox-image" style="vertical-align: middle;">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
   | [[File:{{#switch:{{{type|}}}
   | [[File:{{#switch:{{{type|}}}
     | speedy    = Cmbox deletion.png
     | speedy    = Dialog-warning.png
     | delete    = Cmbox deletion.png
     | delete    = Dialog-warning.png
     | content    = Cmbox content.png
     | content    = Important.png
     | style      = Edit-clear.svg
     | style      = Broom icon.png
     | move      = Cmbox move.png
     | move      = Move.png
     | protection = Cmbox protection.png
     | protection = Padlock.png
     | notice          <!-- notice = default -->
     | notice          <!-- notice = default -->
     | #default  = Information icon.png
     | #default  = Information icon.png
Line 28: Line 28:
   }}</td>
   }}</td>
}}
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="vertical-align: middle;{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td class="mbox-imageright"> {{{imageright}}} </td>
| <td class="mbox-imageright" style="vertical-align: middle;"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>
Line 47: Line 47:
}}<noinclude>
}}<noinclude>


{{documentation}}
{{documentation}}[[Category:Article message boxes]]
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 15:31, 3 November 2023

[view] [edit] [history] [purge] Documentation icon Template documentation