Jump to content

Template:Ombox/core: Difference between revisions

From IdeaWazaWiki
wikademia>Davidgothberg
Creating the {{ombox/core}} with small handling. Uses hard-coded small styles due to the CSS caching, but also has the "ombox-small" class so it can be styled.
 
wikademia>Davidgothberg
Updated to use the "ombox-small" class in MediaWiki:Common.css, since the 31 days CSS caching has passed.
 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
| notice          <!-- notice = default -->
| notice          <!-- notice = default -->
| #default  = ombox-notice
| #default  = ombox-notice
}}" style="{{#ifeq:{{{small|}}}|yes| clear: right; float: right; margin: 4px 0 4px 1em; width: 238px; font-size: 88%; line-height: 1.25em; }} {{{style|}}}">
}}" style="{{{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 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="ombox-image">
| <td class="mbox-image">
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
Line 28: Line 28:
   }}</td>
   }}</td>
}}
}}
<td class="ombox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
   | <!-- No image. -->
   | <!-- No image. -->
   | <td class="ombox-imageright"> {{{imageright}}} </td>
   | <td class="mbox-imageright"> {{{imageright}}} </td>
   }}
   }}
}}
}}
</tr>
</tr>
</table><noinclude>
</table><!-- Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
| speedy
| delete
| content
| style
| move
| protection
| notice    =    <!-- Do nothing, valid "type" -->
| #default  = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>


{{pp-template|small=yes}}
{{pp-template|small=yes}}

Latest revision as of 20:07, 20 October 2008

[create] Template documentation