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

提供:Tsubopedia
*>新幹線
(本来の表示がされない旨の注意を追加)
(1版)
 
(9人の利用者による、間の13版が非表示)
1行目: 1行目:
<noinclude>{{Notice|このテンプレートは[[:en:Template:Ombox/core|英語版]]から移植されたものですが、このテンプレートは特殊な[[:en:MediaWiki:Common.css|CSS]]が使用されています。[[MediaWiki:Common.css|日本語版]]にはまだそのCSSが移植されていないので、このテンプレートは本来の表示がされません。現時点では代わりに{{[[Template:Ambox|Ambox]]}}をご使用ください。|注意|attention}}</noinclude><table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|ombox-small}}  
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}}  
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| speedy    = ombox-speedy
| speedy    = ombox-speedy
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|}}}">
<tr>
<tr>
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
| <!-- 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">
| <td class="mbox-image">
   {{#if:{{{image|}}}
   {{#if:{{{image-file|}}}
   | {{{image}}}
   | [[File:{{{image-file}}}|{{{image-size|40}}}px]]
   | [[Image:{{#switch:{{{type|}}}
   | {{#if:{{{image|}}}
    | speedy    = Imbox speedy deletion.png
    | {{{image}}}
    | delete    = Imbox deletion.png
    | [[File:{{#switch:{{{type|}}}
    | content    = Imbox content.png
      | speedy    = Imbox speedy deletion.png
    | style      = Imbox style.png
      | delete    = Imbox deletion.png
    | move      = Imbox move.png
      | content    = Imbox content.png
    | protection = Imbox protection.png
      | style      = Imbox style.png
    | notice          <!-- notice = default -->
      | move      = Imbox move.png
    | #default  = Imbox notice.png
      | protection = Imbox protection.png
    }} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}} ]]
      | notice          <!-- notice = default -->
      | #default  = Imbox notice.png
      }} | {{{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"> {{{imageright}}} </td>
   | <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>
</tr>
46行目: 53行目:
| protection
| protection
| notice    =    <!-- Do nothing, valid "type" -->
| notice    =    <!-- Do nothing, valid "type" -->
| #default  = [[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>
 
{{Documentation}}
{{pp-template|small=yes}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

2014年3月8日 (土) 14:05時点における最新版

Documentation icon テンプレートの解説[[{{fullurl:</noinclude>:/doc| action=edit&preload=Template:Documentation/preload }} 作成]]