コンテンツにスキップ

「Template:Ambox/core」の版間の差分

削除された内容 追加された内容
en:Template:Ambox/core 19:06, 23 April 2009(UTC)の版を転記。修正。
 
Kkkdc (会話 | 投稿記録)
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|}}} <!-- 印刷フラグ:指定すると印刷時にも表示 -->
}}" style="{{{style|}}}">
|
| noprint <!-- 規定値は印刷時非表示 -->
}}" style="{{{style|}}}"
}}>
<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" style="border: none; padding: 0px; width: 1px;"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| 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 style="width: 52px;">
| #default = <div class="ambox-imagecontainer">
}}
}}
{{#if:{{{image|}}}
{{#if:{{{image-file|}}}
| {{{image}}}
| [[Image:{{{image-file}}}|{{{image-size}}}px]]
| [[Image:{{#switch:{{{type|}}}
| {{#if:{{{image|}}}
| {{{image}}}
| speedy = Ambox speedy deletion.png
| [[Image:{{#switch:{{{type|}}}
| delete = Ambox deletion.png
| content = Ambox content.png
| speedy = Ambox speedy deletion.png
| serious <!-- This value is **deprecated**, please don't use it! -->
| style = Ambox style.png
| move = Ambox move.png
| delete = Ambox deletion.png
| protection = Ambox protection.png
| content = Ambox content.png
| notice <!-- notice = default -->
| style = Edit-clear.svg
| merge <!-- This value is **deprecated**, please don't use it! -->
| #default = Ambox notice.png
| move = Ambox move.png
}} | {{#switch:{{{small|}}}
| left = 20x20px
| protection = Ambox protection.png
| #default = 40x40px
| notice <!-- notice = default -->
| #default = Ambox notice.png
}} ]]
}} | {{{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|}}}
| #default = <div style="width: 52px;"> {{{imageright}}} </div>
| [[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|{{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 -->
}}<!--
}}<!--
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|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| blank = <!-- 現状ではカテゴライズされるのを防ぐためコメントアウト [[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]] --><!-- Sort on namespace -->
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}

2010年7月10日 (土) 18:08時点における版

テンプレートの解説[作成]