「テンプレート:Ombox/core」の版間の差分
提供: Yourpedia
(MediaWiki:Common.css内での未設定に対応) |
細 |
||
| 1行目: | 1行目: | ||
| − | <table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} {{#switch:{{{type|}}} | + | <table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} |
| + | {{#switch:{{{type|}}} | ||
| speedy = ombox-speedy | | speedy = ombox-speedy | ||
| delete = ombox-delete | | delete = ombox-delete | ||
| 8行目: | 9行目: | ||
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| #default = ombox-notice | | #default = ombox-notice | ||
| − | }}" style=" | + | }}" style="{{{style|}}}"> |
<tr> | <tr> | ||
| − | <td class="mbox-image"> | + | {{#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|}}} | {{#if:{{{image-file|}}} | ||
| − | | [[ | + | | [[File:{{{image-file}}}|{{{image-size|40}}}px]] |
| {{#if:{{{image|}}} | | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| − | | [[ | + | | [[File:{{#switch:{{{type|}}} |
| − | | speedy = | + | | speedy = Imbox speedy deletion.png |
| − | | delete = | + | | delete = Imbox deletion.png |
| − | | content = | + | | content = Imbox content.png |
| − | | style = | + | | style = Imbox style.png |
| − | | move = | + | | move = Imbox move.png |
| − | | protection = | + | | protection = Imbox protection.png |
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| #default = Imbox notice.png | | #default = Imbox notice.png | ||
| 27行目: | 30行目: | ||
}} | }} | ||
}}</td> | }}</td> | ||
| + | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}">{{#if:{{{text|}}}| {{{text}}} }}<!-- {{{text}}}内冒頭のウィキマークアップによる箇条書きを正しく表示させるために条件文にしています。 --></td> | <td class="mbox-text" style="{{{textstyle|}}}">{{#if:{{{text|}}}| {{{text}}} }}<!-- {{{text}}}内冒頭のウィキマークアップによる箇条書きを正しく表示させるために条件文にしています。 --></td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| 51行目: | 55行目: | ||
| #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 --> | | #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> | ||
| − | + | ||
</noinclude> | </noinclude> | ||
2010年10月3日 (日) 16:35時点における版
| | |
{{#if:
| [[File:{{{image-file}}}|40px]]
| {{#if:
| {{{image}}}
| [[File:{{#switch:
| 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
| #default = Imbox notice.png
}} | 40px ]]
}}
}} |
}}
{{#if:| {{{text}}} }} | {{#if:
| [[画像:{{{imageright-file}}}|40px]]
| {{{imageright}}}
}} |
}}
| {{#if:| [[画像:{{{imageright-file}}}|40px]] | }}
| | speedy | delete | content | style | move | protection | notice =
| #default =This message box is using an invalid "type=" parameter and needs fixing.
}}