|
|
| Line 1: |
Line 1: |
| <table class="metadata plainlinks ambox {{#switch:{{{small|}}} | | <table class="metadata plainlinks ambox {{{class|}}}" style="{{{style|}}}" role="presentation"> |
| | left = mbox-small-left | | <tr>{{#switch:{{{image|}}} |
| }} {{#switch:{{{type|}}} | | |blank |
| | speedy = ambox-speedy | | |none = <td class="mbox-empty-cell"></td> |
| | delete = ambox-delete | | |#default = <td class="mbox-image"><div style="width: 52px;">{{#if:{{{image|}}} |
| | content = ambox-content | | |{{{image}}} |
| | style = ambox-style | | |[[File:{{#switch:{{{type|}}} |
| | move = ambox-move | | |speedy = Ambox speedy deletion.png |
| | protection = ambox-protection | | |delete = Ambox deletion.png |
| | other = ambox-other
| | |content = Ambox content.png |
| | notice <!-- notice = default --> | | |style = Edit-clear.svg |
| | #default = ambox-notice | | |move = Ambox move.png |
| }}" style="{{{style|}}}"> | | |protection = Ambox protection.png |
| <tr> | | |notice|#default = Ambox notice.png |
| {{#switch:{{{image|}}}
| | }}|40x40px|link=|alt=]] |
| | blank <!-- Fall back to "none", since deprecated. -->
| | }}</div></td> |
| | none = <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-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}<span class="hide-when-compact"> {{#if:{{{talk|}}} |
| | #default = | | |{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}} |
| <td class="mbox-image">{{
| | |{{{talk}}} |
| #switch:{{{small|}}}
| | |{{TALKPAGENAME}} |
| | left = <!-- Don't use the DIV -->
| |
| | #default = <div style="width: 52px;">
| |
| }} | | }} |
| {{#if:{{{image|}}} | | | Relevant discussion may be found on {{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}} |
| | {{{image}}}
| | |[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]] |
| | [[Image:{{#switch:{{{type|}}}
| | |the [[{{TALKPAGENAME}}#{{{talk}}}|talk page]] |
| | speedy = Ambox warning pn.png
| | }}. |
| | delete = Ambox warning pn.png
| | }} |
| | content = Ambox content.png
| | }} {{{fix|}}}</span>{{#if:{{{date|}}} |
| | style = Edit-clear.png
| | | <small>''({{{date}}})''</small> |
| | move = Ambox move.png
| | }}<span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}} |
| | protection = Ambox protection.png
| | |none = |
| | other = Ambox warning blue.png
| | |= |
| | notice <!-- notice = default -->
| | |#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td> |
| | #default = Templates Information icon.png
| | }}</tr></table><noinclude> |
| }} | {{#switch:{{{small|}}}
| | {{documentation}} |
| | left = 20x20px
| | <!-- Add categories and interwikis to the /doc subpage, not here! --> |
| | #default = 40x40px
| | </noinclude> |
| }} |link=|alt=]]
| |
| }}{{#switch:{{{small|}}}
| |
| | left = <!-- Don't use the /DIV -->
| |
| | #default = </div>
| |
| }}</td> | |
| }} | |
| <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
| |
| {{#if:{{{imageright|}}} | |
| | {{#ifeq:{{{imageright|}}}|none | |
| | <!-- No image. -->
| |
| | <td class="mbox-imageright">{{#switch:{{{small|}}}
| |
| | left = {{{imageright}}}
| |
| | #default = <div style="width: 52px;"> {{{imageright}}} </div>
| |
| }}</td>
| |
| }}
| |
| }}
| |
| </tr>
| |
| </table><!--
| |
| Detect and report usage with faulty "type" parameter:
| |
| -->{{#switch:{{{type|}}}
| |
| | <!-- No type fed, is also valid input --> | |
| | speedy | |
| | delete | |
| | content
| |
| | style
| |
| | move
| |
| | protection
| |
| | other
| |
| | notice = <!-- Do nothing, valid "type" -->
| |
| | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| |
| }}<!-- | |
| Detect and report usage of deprecated "image=blank":
| |
| -->{{#switch:{{{image|}}}
| |
| | blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| |
| }}
| |
| <noinclude>[[Category:Amboxes]]{{Template doc}}</noinclude>
| |