Template:Ombox: Difference between revisions

From Savez
Jump to navigation Jump to search
TemplatePagebanner>DannyS712
m (Reverted edits by BugsBunny1234ABC (talk) to last version by Kaldari)
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<table class="metadata plainlinks ombox {{#switch:{{{small|}}}
{{#invoke:Message box|ombox}}<noinclude>
| left = mbox-small-left
{{documentation}}
}} " style="{{{style|}}}margin:0 10% 1.5em;border:1px solid #AAAAAA;{{#switch:{{{type|}}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
| speedy    = background:#FFDDDD;border-left:1px #BBBBAA solid;
</noinclude>
| delete    = background:#FBFBFB;border-left:1px #BBBBAA solid;
| content    = background:#FBFBFB;border-left:1px #BBBBAA solid;
| approval  = background:#FBFBFB;border-left:1px #BBBBAA solid;
| move      = background:#FBFBFB;border-left:1px #BBBBAA solid;
| style      = background:#FBFBFB;border-left:1px #BBBBAA solid;
| protection = background:#FBFBFB;border-left:1px #BBBBAA solid;
| notice<!-- = default -->
| #default  = background:#FBFBFB;border-left:1px #BBBBAA solid;
}}{{#if:{{{stacked|}}}|border-top:-1px;}}"><tr>
{{#switch:{{{image|}}}
| blank      <!-- Fall back to "none", since deprecated. -->
| none    =
  <td class="mbox-empty-cell" style="width:1px;border:none;padding:0;"></td><!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| #default =
  <td class="mbox-image" style="border:none;padding:2px 0 2px 0.9em;text-align:center;">{{#switch:{{{small|}}}
  | left    = <!-- Don't use the DIV -->
  | #default = <div style="width:52px;">
  }}{{#if:{{{image|}}}
  | {{{image}}}
  | {{#switch:{{{type|}}}
    | speedy    = [[File:Ambox speedy deletion.png|Speedy|{{#switch:{{{small|}}}|left=20x20px|#default=40x40px}}|link=]]
    | delete    = [[File:Ambox deletion.png|Delete|{{#switch:{{{small|}}}|left=20x20px|#default=40x40px}}|link=]]
    | content    = [[File:Ambox content.png|Content|{{#switch:{{{small|}}}|left=20x20px|#default=40x40px}}|link=]]
    | approval  = [[File:Thumb up icon.svg|Approval|{{#switch:{{{small|}}}|left=20x20px|#default=40x40px}}|link=]]
    | move      = [[File:Ambox_move.png|Move|{{#switch:{{{small|}}}|left=20x20px|#default=40x40px}}|link=]]
    | style      = [[File:Edit-clear.svg|Style|{{#switch:{{{small|}}}|left=20x20px|#default=40x40px}}|link=]]
    | protection = [[File:Ambox protection.png|Protection|{{#switch:{{{small|}}}|left=20x20px|#default=40x40px}}|link=]]
    | notice<!-- = default -->
    | #default  = [[File:Ambox notice.png|Information|{{#switch:{{{small|}}}|left=20x20px|#default=40x40px}}|link=]]
    }}
  }}{{#switch:{{{small|}}}
  | left    = <!-- Don't use the /DIV -->
  | #default = </div>
  }}</td>
}}
<td class="mbox-text" style="{{{textstyle|}}}width:100%;border:none;padding:0.25em 0.9em;text-align:left;">{{{text|}}}</td>
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
  | <!-- No image. -->
  | <td class="mbox-imageright" style="border:none;padding:2px 0.9em 2px 0;text-align:center;">{{#switch:{{{small|}}}
    | left    = {{{imageright|}}}
    | #default = <div style="width:{{{imagerightwidth|52}}}px;">{{{imageright|}}}</div>
    }}</td>
  }}
}}
</tr></table><noinclude>{{documentation}}</noinclude>

Latest revision as of 20:13, 26 July 2023