ページ「テンプレート:Ombox」と「テンプレート:Ombox/core」の間の差分
(ページ間の差分)
細 (1版) |
細 (1版) |
||
1行目: | 1行目: | ||
− | {{#ifeq:{{{small | + | <table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} |
− | + | {{#switch:{{{type|}}} | |
− | + | | speedy = ombox-speedy | |
− | + | | delete = ombox-delete | |
− | + | | content = ombox-content | |
− | + | | style = ombox-style | |
− | + | | move = ombox-move | |
− | + | | protection = ombox-protection | |
− | + | | notice | |
− | | | + | | #default = ombox-notice |
− | + | }}" style="{{{style|}}}"> | |
− | + | <tr> | |
− | + | {{#ifeq:{{{image|}}}|none | |
− | + | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell" style="border: none; padding: 0px; width: 1px;"></td> | |
− | + | | <td class="mbox-image"> | |
− | + | {{#if:{{{image-file|}}} | |
− | + | | [[File:{{{image-file}}}|{{{image-size|40}}}px]] | |
− | }} | + | | {{#if:{{{image|}}} |
− | + | | {{{image}}} | |
− | + | | [[File:{{#switch:{{{type|}}} | |
− | + | | speedy = Imbox speedy deletion.png | |
− | + | | delete = Imbox deletion.png | |
− | + | | content = Imbox content.png | |
− | + | | style = Imbox style.png | |
− | + | | move = Imbox move.png | |
− | + | | protection = Imbox protection.png | |
− | | | + | | 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> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
− | |||
</noinclude> | </noinclude> |