「テンプレート:Ambox/core」の版間の差分
(en:Template:Ambox/core 19:06, 23 April 2009(UTC)の版を転記。修正。) |
編集の要約なし |
||
(10人の利用者による、間の13版が非表示) | |||
1行目: | 1行目: | ||
<table class="plainlinks ambox {{#switch:{{{small|}}} | <table class="<!-- metadata -->plainlinks ambox {{#switch:{{{small|}}} | ||
| left = mbox-small-left | | left = mbox-small-left | ||
| section = ambox-section | |||
}} {{#switch:{{{type|}}} | }} {{#switch:{{{type|}}} | ||
| speedy = ambox-speedy | | speedy = ambox-speedy | ||
| serious <!-- この値は "非推奨" とされています。使わないでください。 --> | |||
| delete = ambox-delete | | delete = ambox-delete | ||
| content = ambox-content | | content = ambox-content | ||
| style = ambox-style | | style = ambox-style | ||
| merge <!-- この値は "非推奨" とされています。使わないでください。 --> | |||
| move = ambox-move | | move = ambox-move | ||
| protection = ambox-protection | | protection = ambox-protection | ||
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| #default = ambox-notice | | #default = ambox-notice | ||
}} {{#if:{{{printable|}}} <!-- 印刷フラグ:指定すると印刷時にも表示 --> | |||
| | |||
| noprint <!-- 既定値は印刷時非表示 --> | |||
}}" style="{{{style|}}}"> | }}" style="{{{style|}}}"> | ||
<tr> | <tr> | ||
{{#switch:{{{image|}}} | {{#switch:{{{image|}}} | ||
| blank <!-- | | blank <!-- 非推奨のため、"none" の値が返される --> | ||
| none = <td class="mbox-empty-cell | | none = <td class="mbox-empty-cell"></td> <!-- 画像なし。100%の幅があるテキストセルのために必要な、いくらかの幅や余白のあるセル。 --> | ||
| #default = | | #default = | ||
<td class="mbox-image">{{ | <td class="mbox-image">{{ | ||
#switch:{{{small|}}} | #switch:{{{small|}}} | ||
| left = <!-- | | left = <!-- DIVを使わない --> | ||
| #default = <div | | #default = <div class="ambox-imagecontainer"> | ||
}} | }} | ||
{{#if:{{{image|}}} | {{#if:{{{image-file|}}} | ||
| {{{image}}} | | [[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.png | |||
| merge <!-- この値は "非推奨" とされています。使わないでください。 --> | |||
| move = Ambox move.png | |||
| protection = Ambox protection.png | |||
| notice <!-- notice = default --> | |||
| #default = Ambox notice.png | |||
}} | {{{image-size}}}px |alt=|link=]] | |||
}} | |||
}}{{#switch:{{{small|}}} | }}{{#switch:{{{small|}}} | ||
| left = <!-- | | left = <!-- /DIV を使わない --> | ||
| #default = </div> | | #default = </div> | ||
}}</td> | }}</td> | ||
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}}{{{imageright-file|}}} | ||
| {{#ifeq:{{{imageright|}}}|none | | {{#ifeq:{{{imageright|}}}|none | ||
| <!-- | | <!-- 画像なし --> | ||
| <td class="mbox-imageright">{{#switch:{{{small|}}} | | <td class="mbox-imageright">{{#switch:{{{small|}}} | ||
| left = {{{imageright}}} | | left = {{#if:{{{imageright-file|}}} | ||
| #default = <div | | [[File:{{{imageright-file}}}|{{{imageright-size}}}px]] | ||
| {{{imageright}}} | |||
}} | |||
| #default = <div class="ambox-imagecontainer">{{#if:{{{imageright-file|}}} | |||
| [[File:{{{imageright-file}}}|{{{imageright-size}}}px]] | |||
| {{{imageright}}} | |||
}}</div> | |||
}}</td> | }}</td> | ||
}} | }} | ||
}} | }}</tr> | ||
</tr> | |||
</table><!-- | </table><!-- | ||
誤った "type" パラメータの使用法の検出と報告: | |||
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|}}} | ||
| <!-- | | <!-- タイプが与えられないのも、有効な入力 --> | ||
| speedy | | speedy | ||
| delete | | delete | ||
62行目: | 75行目: | ||
| move | | move | ||
| protection | | protection | ||
| notice = <!-- | | notice = <!-- 有効な "type" なので何もしない --> | ||
| #default = <div style="text-align: center;"> | | #default = <div style="text-align: center;">このメッセージボックスは無効な "type={{{type|}}}" パラメータを使用しており、修正が必要です。</div><!-- 現状ではカテゴライズされるのを防ぐためコメントアウト [[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]] --><!-- 名前空間でソート --> | ||
}}<!-- | }}<!-- | ||
非推奨の "image=blank" の使用の検出と報告: | |||
-->{{#switch:{{{image|}}} | -->{{#switch:{{{image|}}} | ||
| blank = [[Category:Wikipedia message box parameter needs fixing|{{ | | blank = <!-- 現状ではカテゴライズされるのを防ぐためコメントアウト [[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]] --><!-- 名前空間でソート --> | ||
}}<noinclude> | }}<noinclude> | ||
{{ | {{Documentation}} | ||
</noinclude> | </noinclude> |
2014年8月15日 (金) 02:06時点における最新版
テンプレートの解説[[{{fullurl:</noinclude>:/doc| action=edit&preload=Template:Documentation/preload }} 作成]]