削除された内容 追加された内容
m 英語版と同様にstyleの画像変更、move追加
Kkkdc (会話 | 投稿記録)
from Template:Ambox/sandbox 2010-05-23T10:07:29Z User:新幹線 ノートページによる
1行目:
{{#switch:{{{small|{{#if:{{{section|}}}|section}}}}}
<table style="{{{style|}}}" class="plainlinks ambox {{#switch:{{{type|}}}
| left =
| protection = ambox-protection
{{Ambox/core/sandbox
| speedy = ambox-speedy
| small = left
| delete
| serioustype = ambox-delete{{{type|}}}
| contentimage = ambox-content{{#if:{{{smallimage|}}}
| style = ambox-style | {{{smallimage}}}
| {{{image|}}}
| move
| merge = ambox-merge }}
| noticeimage-file <!-- notice = default -{{#if:{{{smallimage->file|}}}
| {{{smallimage-file}}}
| #default = ambox-notice
| {{{image-file|}}}
}} {{#if:{{{section|}}} <!-- 節フラグ:指定すると節用のスタイルを適用 -->
}}
| ambox-section
| image-size = {{#if:{{{smallimage-size|{{{image-size-section|}}}}}}
}} {{#if:{{{printable|}}} <!-- 印刷フラグ:指定すると印刷時にも表示 -->
| {{{smallimage-size|{{{image-size-section}}}}}}
|
| 20x20
| noprint <!-- 規定値は印刷時非表示 -->
}}
}}" {{#if:{{{background|}}} <!-- 背景色 -->
| imageright = {{#if:{{{smallimageright|}}}
| style="background-color:{{{background}}}"
| {{{smallimageright}}}
}}>
| {{{imageright|}}}
<tr>
}}
<td class="ambox-image">
| imageright-file = {{#if:{{{smallimageright-file|}}}
{{#ifeq:{{{image}}}|none
| {{{smallimageright-file}}}
| <!-- 画像無しの場合の空白セル: テキスト用セルの幅を100%にするために必要 -->
| <div class="ambox-imagecontainer">{{#if: | {{{imageimageright-file|}}}
}}
| [[ファイル:{{{image-file}}}|{{#if:{{{section|}}}
| imageright-size = |{{#if:{{{imagesmallimageright-size|{{{imageright-size-section|}}}{{{smallimage-size|{{{image-size-section|}}}}}}}}}}|25}}
| {{#if:{smallimageright-size|{{image{imageright-size-section|}}}{{{smallimage-size|{{{image-size-section}}}}}}}}}}|40}}
| 20x20
}}px]]
| {{#switch:{{{image|} }}
| style = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}}
| protection | speedy | delete | serious | content | style | move | merge | notice <!-- 既定画像用キーワード -->
| textstyle = {{{textstyle|}}}
| <!-- 空白または未定義 --> = [[ファイル:{{#switch:{{#if:{{{image|}}}|{{{image}}}|{{{type|}}}}}
| text | speedy = Ambox speedy deletion.png{{#if:{{{smalltext|{{{text-section|}}}}}}
| {{{smalltext|{{{text-section}}}}}}
| delete
| serious = Ambox deletion.png | {{{text}}}
| content = Ambox content.png }}
| printable | style = Edit-clear.svg{{{printable|}}}
}}
| move
| section =
| merge = Ambox move.png
{{Ambox/core/sandbox
| protection = Ambox protection.png
| small | notice <!-- notice = default -->section
| type | #default = Ambox notice.png = {{{type|}}}
| image }}| = {{#if:{{{sectionsmallimage|}}}
| {{{smallimage}}}
|{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}}
|{{#if: {{{image-size|}}}|{{{image-size}}}|40}}
}}px]]
| image-file = {{#if:{{{smallimage-file|}}}
| blank = [[ファイル:No image.svg]]
| #default = | {{{imagesmallimage-file}}}
| {{{image-file|}}}
}}
}}
}}</div>
| image-size = {{#if:{{{smallimage-size|{{{image-size-section|}}}}}}
}}</td>
| {{{smallimage-size|{{{image-size-section}}}}}}
<td class="ambox-text">{{#if:{{{section|}}}|{{{text-section|{{{text}}}}}}|{{{text}}}}}</td>
| 25x25
{{#if:{{{imageright|}}}{{{imageright-file|}}}|
}}
<td class="ambox-imageright"><div class="ambox-imagecontainer"> {{#if:{{{imageright-file|}}}
| [[ファイル:{{{imageright-file}}}| = {{#if:{{{sectionsmallimageright|}}}
| {{{smallimageright}}}
|{{#if:{{{imageright-size-section|}}}|{{{imageright-size-section}}}|{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}}}}
| {{{imageright|}}}
|{{#if:{{{imageright-size|}}}|{{{imageright-size}}}|{{#if:{{{image-size|}}}|{{{image-size}}}|40}}}}
}}px]]
| imageright-file = {{#if:{{{smallimageright-file|}}}
| {{{imageright}}}
| {{{smallimageright-file}}}
}} </div></td>
| {{{imageright-file|}}}
}}
}}
</tr>
| imageright-size = {{#if:{{{smallimageright-size|{{{imageright-size-section|{{{smallimage-size|{{{image-size-section|}}}}}}}}}}}}
</table><!--
| {{{smallimageright-size|{{{imageright-size-section|{{{smallimage-size|{{{image-size-section}}}}}}}}}}}}
 
| 25x25
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq: {{NAMESPACE}}|Template|[[Category:記事メッセージボックス]]}}}}</includeonly><!--
}}
| style = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}}
| textstyle = {{{textstyle|}}}
| text = {{#if:{{{smalltext|{{{text-section|}}}}}}
| {{{smalltext|{{{text-section}}}}}}
| {{{text}}}
}}
| printable = {{{printable|}}}
}}
| #default =
{{Ambox/core/sandbox
| type = {{{type|}}}
| image = {{{image|}}}
| image-file = {{{image-file|}}}
| image-size = {{#if:{{{image-size|}}}
| {{{image-size}}}
| 40x40
}}
| imageright = {{{imageright|}}}
| imageright-file = {{{imageright-file|}}}
| imageright-size = {{#if:{{{imageright-size|{{{image-size|}}}}}}
| {{{imageright-size|{{{image-size}}}}}}
| 40x40
}}
| style = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}}
| textstyle = {{{textstyle|}}}
| text = {{{text}}}
| printable = {{{printable|}}}
}}
}}<!--
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:記事用メッセージボックス]]}}}}</includeonly><!--
 
--><noinclude>{{Documentation}}