|
|
(2人の利用者による、間の2版が非表示) |
1行目: |
1行目: |
− | <table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} {{#switch:{{{type|}}} | + | <table class="plainlinks {{{type|ombox-notice}}} {{{small|mbox-small}}}" style="{{{style|}}}"> |
− | | speedy = ombox-speedy
| + | <tr><td class="mbox-image">{{{image|[[File:{{{image-file|Imbox {{{type|notice}}}.png}}}{{!}}0{{{image-size|40}}}px{{!}}]]}}}</td><td class="mbox-text" style="{{{textstyle|}}}">{{Nowiki|}}{{{text|}}}</td><td class="mbox-imageright">{{{imageright|[[画像:{{{imageright-file|}}}{{!}}0{{{imageright-size|40}}}px{{!}}]] }}}</td></tr> |
− | | delete = ombox-delete
| + | </table><noinclude> |
− | | content = ombox-content
| + | {{documentation}} |
− | | style = ombox-style
| + | |
− | | move = ombox-move
| + | |
− | | protection = ombox-protection
| + | |
− | | notice <!-- notice = default -->
| + | |
− | | #default = ombox-notice
| + | |
− | }}" style="margin:4px 10%; border-collapse:collapse; border:1px solid #aaa; background:#f9f9f9; {{{style|}}}"> | + | |
− | <tr> | + | |
− | <td class="mbox-image"> | + | |
− | {{#if:{{{image-file|}}}
| + | |
− | | [[画像:{{{image-file}}}|{{{image-size|40}}}px]]
| + | |
− | | {{#if:{{{image|}}}
| + | |
− | | {{{image}}}
| + | |
− | | [[画像:{{#switch:{{{type|}}}
| + | |
− | | speedy = Icono aviso borrar.GIF
| + | |
− | | delete = Icono aviso borrar.GIF
| + | |
− | | content = Emblem-important.svg
| + | |
− | | style = Broom icon.svg
| + | |
− | | move = Merge-split-transwiki default.svg
| + | |
− | | protection = Padlock.svg
| + | |
− | | notice <!-- notice = default -->
| + | |
− | | #default = Imbox notice.png
| + | |
− | }} | {{{image-size|40}}}px ]]
| + | |
− | }}
| + | |
− | }}</td>
| + | |
− | <td class="mbox-text" style="{{{textstyle|}}}">{{#if:{{{text|}}}| {{{text}}} }}<!-- {{{text}}}内冒頭のウィキマークアップによる箇条書きを正しく表示させるために条件文にしています。 --></td> | + | |
− | {{#if:{{{imageright|}}}
| + | |
− | | {{#ifeq:{{{imageright|}}}|none
| + | |
− | | <!-- No image. -->
| + | |
− | | <td class="mbox-imageright"> {{#if:{{{imageright-file|}}}
| + | |
− | | [[画像:{{{imageright-file}}}|{{{imageright-size|40}}}px]]
| + | |
− | | {{{imageright}}}
| + | |
− | }}</td>
| + | |
− | }}
| + | |
− | | <!-- {{{imageright}}}指定なし&{{{imageright-file}}}指定あり -->{{#if:{{{imageright-file|}}}| <td class="mbox-imageright">[[画像:{{{imageright-file}}}|{{{imageright-size|40}}}px]]</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
| + | |
− | | 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 -->
| + | |
− | }}<noinclude>
| + | |
− | {{Documentation}} | + | |
| </noinclude> | | </noinclude> |