「Template:Tmbox/core」の版間の差分

削除された内容 追加された内容
{{{imageright}}}未指定時に{{{imageright-file}}}の指定があっても右側画像が表示されない状態だったのを表示できるように修正
編集の要約なし
13行目:
| <!-- 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]]
| [[Image:{{#ifswitch:{{{imagetype|}}}
| speedy | #default = Imbox noticespeedy deletion.png
| {{{image}}}
| delete = Imbox deletion.png
| [[File:{{#switch:{{{type|}}}
| speedy content = Imbox speedy deletioncontent.png
| style | delete = ImboxEdit-clear.svg deletion.png
| move | content = Imbox contentmove.png
| style protection = Imbox styleprotection.png
| notice | move <!-- notice = Imboxdefault move.png-->
| #default | protection = Imbox protectionnotice.png
}} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}}|link=|alt=]]
| 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|}}} </td>
| [[画像:{{{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>
52 ⟶ 45行目:
| 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|{{Mainmain other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->