開啟主選單

求真百科

變更

Template:Ombox

增加 2,755 位元組, 11 年前
correcting class - ambox -> ombox. This should also fix the "issues" bug on mobile.
<table class="metadata plainlinks ombox {{#switch:{{{small|}}}| left = mbox-small-left}} " style="{{{style|}}}margin:0 10% 1.5em;border:1px solid #AAAAAA;{{#switch:{{{type|}}}| speedy = background:#FFDDDD;border-left:1px #BBBBAA solid;| 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|#invokedefault=40x40px}}|link=]] | approval = [[File:Message boxThumb up icon.svg|Approval|ombox{{#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<noinclude!-- = default --> | #default = [[File:Ambox notice.png|Information|{{#switch:{{{small|}}}|left=20x20px|#default=40x40px}}|link=]] }} }}{{#switch:{documentation{{small|}}} | left = <!-- Categories go on Don't use the /doc subpage, and interwikis go on WikidataDIV --> | #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>
匿名用戶