ページ「テンプレート:Ambox」と「テンプレート:Ambox/core」の間の差分
(ページ間の差分)
細 (1版) |
細 (1版) |
||
1行目: | 1行目: | ||
− | {{#switch:{{{small| | + | <table class="<!-- metadata -->plainlinks ambox {{#switch:{{{small|}}} |
− | | left = | + | | left = mbox-small-left |
− | + | | section = ambox-section | |
− | + | }} {{#switch:{{{type|}}} | |
− | + | | speedy = ambox-speedy | |
− | + | | serious <!-- この値は "非推奨" とされています。使わないでください。 --> | |
− | + | | delete = ambox-delete | |
− | + | | content = ambox-content | |
− | + | | style = ambox-style | |
− | + | | merge <!-- この値は "非推奨" とされています。使わないでください。 --> | |
− | + | | move = ambox-move | |
− | + | | protection = ambox-protection | |
− | + | | notice <!-- notice = default --> | |
− | + | | #default = ambox-notice | |
− | + | }} {{#if:{{{printable|}}} <!-- 印刷フラグ:指定すると印刷時にも表示 --> | |
− | + | | | |
− | + | | noprint <!-- 既定値は印刷時非表示 --> | |
− | + | }}" style="{{{style|}}}"> | |
− | + | <tr> | |
− | + | {{#switch:{{{image|}}} | |
− | + | | blank <!-- 非推奨のため、"none" の値が返される --> | |
− | + | | none = <td class="mbox-empty-cell"></td> <!-- 画像なし。100%の幅があるテキストセルのために必要な、いくらかの幅や余白のあるセル。 --> | |
− | + | | #default = | |
− | + | <td class="mbox-image">{{ | |
− | + | #switch:{{{small|}}} | |
− | | | + | | left = <!-- DIVを使わない --> |
− | + | | #default = <div class="ambox-imagecontainer"> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
}} | }} | ||
− | + | {{#if:{{{image-file|}}} | |
− | {{ | + | | [[File:{{{image-file}}}|{{{image-size}}}px]] |
− | + | | {{#if:{{{image|}}} | |
− | + | | {{{image}}} | |
− | | | + | | [[File:{{#switch:{{{type|}}} |
− | + | | speedy = Ambox speedy deletion.png | |
− | | | + | | serious <!-- この値は "非推奨" とされています。使わないでください。 --> |
− | + | | delete = Ambox deletion.png | |
− | + | | content = Ambox content.png | |
− | + | | style = Edit-clear.svg | |
− | + | | merge <!-- この値は "非推奨" とされています。使わないでください。 --> | |
− | + | | move = Ambox move.png | |
− | + | | protection = Ambox protection.png | |
− | + | | notice <!-- notice = default --> | |
− | + | | #default = Ambox notice.png | |
− | + | }} | {{{image-size}}}px |alt=|link=]] | |
− | + | }} | |
− | + | }}{{#switch:{{{small|}}} | |
− | + | | left = <!-- /DIV を使わない --> | |
− | + | | #default = </div> | |
− | + | }}</td> | |
− | + | }} | |
− | + | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | |
− | + | {{#if:{{{imageright|}}}{{{imageright-file|}}} | |
− | | | + | | {{#ifeq:{{{imageright|}}}|none |
− | + | | <!-- 画像なし --> | |
− | + | | <td class="mbox-imageright">{{#switch:{{{small|}}} | |
− | + | | left = {{#if:{{{imageright-file|}}} | |
− | | | + | | [[File:{{{imageright-file}}}|{{{imageright-size}}}px]] |
− | | | + | | {{{imageright}}} |
− | + | }} | |
− | + | | #default = <div class="ambox-imagecontainer">{{#if:{{{imageright-file|}}} | |
− | + | | [[File:{{{imageright-file}}}|{{{imageright-size}}}px]] | |
− | + | | {{{imageright}}} | |
− | + | }}</div> | |
− | + | }}</td> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | }}<!-- | + | }}</tr> |
− | -- | + | </table><!-- |
− | + | 誤った "type" パラメータの使用法の検出と報告: | |
− | --><noinclude>{{Documentation}} | + | -->{{#switch:{{{type|}}} |
− | + | | <!-- タイプが与えられないのも、有効な入力 --> | |
+ | | speedy | ||
+ | | delete | ||
+ | | content | ||
+ | | style | ||
+ | | move | ||
+ | | protection | ||
+ | | notice = <!-- 有効な "type" なので何もしない --> | ||
+ | | #default = <div style="text-align: center;">このメッセージボックスは無効な "type={{{type|}}}" パラメータを使用しており、修正が必要です。</div><!-- 現状ではカテゴライズされるのを防ぐためコメントアウト [[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]] --><!-- 名前空間でソート --> | ||
+ | }}<!-- | ||
+ | 非推奨の "image=blank" の使用の検出と報告: | ||
+ | -->{{#switch:{{{image|}}} | ||
+ | | blank = <!-- 現状ではカテゴライズされるのを防ぐためコメントアウト [[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]] --><!-- 名前空間でソート --> | ||
+ | }}<noinclude> | ||
+ | {{Documentation}} | ||
+ | </noinclude> |