Template:Ombox/core: Difference between revisions

From FamilySearch Wiki
(insert CSS in absence of entries in MediaWiki:Common.css)
No edit summary
 
(13 intermediate revisions by 4 users not shown)
Line 9: Line 9:
| notice          <!-- notice = default -->
| notice          <!-- notice = default -->
| #default  = border: 1px solid #aaa; <!--ombox-notice-->
| #default  = border: 1px solid #aaa; <!--ombox-notice-->
}}" style="{{{style|}}}">
}}" style="{{grey border}} {{{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}}}
   | [[Image:{{#switch:{{{type|}}}
   | [[Image:{{#switch:{{{type|}}}
     | speedy    = Imbox speedy deletion.png
     | speedy    = Icon-warning.png
     | delete    = Imbox deletion.png
     | delete    = Delete.png
     | content    = Imbox content.png
     | content    = Information icon.png <!-- Imbox content.png -->
     | style      = Imbox style.png
     | style      = Broom icon.png
     | move      = Imbox move.png
     | move      = ArrowGreen.svg.png
     | protection = Imbox 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="font-size:8pt;{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
   | <!-- No image. -->
   | <!-- No image. -->
   | <td class="mbox-imageright"> {{{imageright}}} </td>
   | <td class="mbox-imageright" style="vertical-align:middle"> {{{imageright}}} </td>
   }}
   }}
}}
}}
Line 50: Line 50:


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

Latest revision as of 11:36, 31 March 2023

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