「Template:Ambox/core」の版間の差分
表示
削除された内容 追加された内容
en:Template:Ambox/core 19:06, 23 April 2009(UTC)の版を転記。修正。 |
from Template:Ambox/core/sandbox 2010-05-23T10:11:40Z User:新幹線 - Template talk:Amboxによる |
||
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 <!-- This value is **deprecated**, please don't use it! --> |
|||
| delete = ambox-delete |
| delete = ambox-delete |
||
| content = ambox-content |
| content = ambox-content |
||
| style = ambox-style |
| style = ambox-style |
||
| merge <!-- This value is **deprecated**, please don't use it! --> |
|||
| 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 <!-- 規定値は印刷時非表示 --> |
|||
⚫ | |||
}}> |
|||
<tr> |
<tr> |
||
{{#switch:{{{image|}}} |
{{#switch:{{{image|}}} |
||
| blank <!-- Fall back to "none", since deprecated. --> |
| blank <!-- Fall back to "none", since deprecated. --> |
||
| none = <td class="mbox-empty-cell |
| none = <td class="mbox-empty-cell"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> |
||
| #default = |
| #default = |
||
<td class="mbox-image">{{ |
<td class="mbox-image">{{ |
||
#switch:{{{small|}}} |
#switch:{{{small|}}} |
||
| left = <!-- Don't use the DIV --> |
| left = <!-- Don't use the DIV --> |
||
| #default = <div |
| #default = <div class="ambox-imagecontainer"> |
||
}} |
}} |
||
{{#if:{{{image|}}} |
{{#if:{{{image-file|}}} |
||
| {{{image}}} |
| [[Image:{{{image-file}}}|{{{image-size}}}px]] |
||
| |
| {{#if:{{{image|}}} |
||
| {{{image}}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
| |
| speedy = Ambox speedy deletion.png |
||
| serious <!-- This value is **deprecated**, please don't use it! --> |
|||
| style = Ambox style.png |
|||
| delete = Ambox deletion.png |
|||
| |
| content = Ambox content.png |
||
| style = Edit-clear.svg |
|||
| merge <!-- This value is **deprecated**, please don't use it! --> |
|||
| #default = Ambox notice.png |
|||
⚫ | |||
⚫ | |||
| |
| protection = Ambox protection.png |
||
| |
| notice <!-- notice = default --> |
||
⚫ | |||
⚫ | |||
}} | {{{image-size}}}px]] |
|||
}} |
|||
}}{{#switch:{{{small|}}} |
}}{{#switch:{{{small|}}} |
||
| left = <!-- Don't use the /DIV --> |
| left = <!-- Don't use the /DIV --> |
||
42行目: | 51行目: | ||
}} |
}} |
||
<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 |
||
| <!-- No image. --> |
| <!-- No image. --> |
||
| <td class="mbox-imageright">{{#switch:{{{small|}}} |
| <td class="mbox-imageright">{{#switch:{{{small|}}} |
||
| left = {{{imageright}}} |
| left = {{#if:{{{imageright-file|}}} |
||
| [[Image:{{{imageright-file}}}|{{{imageright-size}}}px]] |
|||
| {{{imageright}}} |
|||
⚫ | |||
| #default = <div class="ambox-imagecontainer">{{#if:{{{imageright-file|}}} |
|||
| [[Image:{{{imageright-file}}}|{{{imageright-size}}}px]] |
|||
| {{{imageright}}} |
|||
}}</div> |
|||
}}</td> |
}}</td> |
||
}} |
}} |
||
63行目: | 78行目: | ||
| protection |
| protection |
||
| notice = <!-- Do nothing, valid "type" --> |
| 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|{{ |
| #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 --> |
||
}}<!-- |
}}<!-- |
||
Detect and report usage of deprecated "image=blank": |
Detect and report usage of deprecated "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}}]] --><!-- Sort on namespace --> |
||
}}<noinclude> |
}}<noinclude> |
||
{{documentation}} |
{{documentation}} |