「テンプレート:Ombox/core」の版間の差分

1版
*>新幹線
(Template:Amboxなどと引数を共通化)
(1版)
 
(6人の利用者による、間の10版が非表示)
7行目: 7行目:
| move      = ombox-move
| move      = ombox-move
| protection = ombox-protection
| protection = ombox-protection
| notice          <!-- notice = default -->
| notice           
| #default  = ombox-notice
| #default  = ombox-notice
}}" style="{{{style|}}}">
}}" style="{{{style|}}}">
15行目: 15行目:
| <td class="mbox-image">
| <td class="mbox-image">
   {{#if:{{{image-file|}}}
   {{#if:{{{image-file|}}}
   | [[File:{{{image-file}}}|{{{image-size}}}px]]
   | [[File:{{{image-file}}}|{{{image-size|40}}}px]]
   | {{#if:{{{image|}}}
   | {{#if:{{{image|}}}
     | {{{image}}}
     | {{{image}}}
27行目: 27行目:
       | notice          <!-- notice = default -->
       | notice          <!-- notice = default -->
       | #default  = Imbox notice.png
       | #default  = Imbox notice.png
       }} | {{{image-size}}}px ]]
       }} | {{{image-size|40}}}px ]]
     }}
     }}
   }}</td>
   }}</td>
}}
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}">{{#if:{{{text|}}}| {{{text}}} }}<!-- {{{text}}}内冒頭のウィキマークアップによる箇条書きを正しく表示させるために条件文にしています。 --></td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
   | <!-- No image. -->
   | <!-- No image. -->
   | <td class="mbox-imageright"> {{#if:{{{imageright-file|}}}
   | <td class="mbox-imageright"> {{#if:{{{imageright-file|}}}
     | [[画像:{{{imageright-file}}}|{{{imageright-size}}}px]]
     | [[画像:{{{imageright-file}}}|{{{imageright-size|40}}}px]]
     | {{{imageright}}}
     | {{{imageright}}}
     }}</td>
     }}</td>
   }}
   }}
| <!-- {{{imageright}}}指定なし&{{{imageright-file}}}指定あり -->{{#if:{{{imageright-file|}}}| <td class="mbox-imageright">[[画像:{{{imageright-file}}}|{{{imageright-size|40}}}px]]</td> }}
}}
}}
</tr>
</tr>