Difference between revisions of "Template:Ambox"
Jump to navigation
Jump to search
m (1 revision) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <!--{{ | + | <table style="{{{style|}}}" class="plainlinks ambox {{#switch:{{{type|}}} |
− | | | + | | protection = ambox-protection |
− | {{ | + | | speedy = ambox-speedy |
− | | | + | | delete |
− | | | + | | serious = ambox-delete |
− | + | | content = ambox-content | |
− | + | | style = ambox-style | |
− | + | | merge = ambox-merge | |
− | + | | notice <!-- notice = default --> | |
− | + | | #default = ambox-notice | |
− | + | }} {{#if:{{{section|}}} <!-- 節フラグ:指定すると節用のスタイルを適用 --> | |
− | + | | ambox-section | |
− | + | }} {{#if:{{{printable|}}} <!-- 印刷フラグ:指定すると印刷時にも表示 --> | |
− | + | | | |
− | + | | noprint <!-- 規定値は印刷時非表示 --> | |
− | + | }}" {{#if:{{{background|}}} <!-- 背景色 --> | |
− | + | | style="background-color:{{{background}}}" | |
− | + | }}> | |
− | + | <tr> | |
− | }} | + | <td class="ambox-image"> |
− | | # | + | {{#ifeq:{{{image}}}|none |
− | {{ | + | | <!-- 画像無しの場合の空白セル: テキスト用セルの幅を100%にするために必要 --> |
− | + | | <div class="ambox-imagecontainer">{{#if:{{{image-file|}}} | |
− | + | | [[File:{{{image-file}}}|{{#if:{{{section|}}} | |
− | + | |{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}} | |
− | + | |{{#if:{{{image-size|}}}|{{{image-size}}}|40}} | |
− | + | }}px]] | |
− | + | | {{#switch:{{{image|}}} | |
− | }} | + | | protection | speedy | delete | serious | content | style | merge | notice <!-- 既定画像用キーワード --> |
− | }}<!-- | + | | <!-- 空白または未定義 --> = [[File:{{#switch:{{#if:{{{image|}}}|{{{image}}}|{{{type|}}}}} |
+ | | speedy = Ambox speedy deletion.png | ||
+ | | delete | ||
+ | | serious = Ambox deletion.png | ||
+ | | content = Ambox content.png | ||
+ | | style = Ambox_style.png | ||
+ | | merge = Ambox move.png | ||
+ | | protection = Ambox protection.png | ||
+ | | notice <!-- notice = default --> | ||
+ | | #default = Ambox notice.png | ||
+ | }}|{{#if:{{{section|}}} | ||
+ | |{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}} | ||
+ | |{{#if:{{{image-size|}}}|{{{image-size}}}|40}} | ||
+ | }}px]] | ||
+ | | blank = [[File:No image.svg]] | ||
+ | | #default = {{{image}}} | ||
+ | }} | ||
+ | }}</div> | ||
+ | }}</td> | ||
+ | <td class="ambox-text">{{#if:{{{section|}}}|{{{text-section|{{{text}}}}}}|{{{text}}}}}</td> | ||
+ | {{#if:{{{imageright|}}}{{{imageright-file|}}}| | ||
+ | <td class="ambox-imageright"><div class="ambox-imagecontainer"> {{#if:{{{imageright-file|}}} | ||
+ | | [[File:{{{imageright-file}}}|{{#if:{{{section|}}} | ||
+ | |{{#if:{{{imageright-size-section|}}}|{{{imageright-size-section}}}|{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}}}} | ||
+ | |{{#if:{{{imageright-size|}}}|{{{imageright-size}}}|{{#if:{{{image-size|}}}|{{{image-size}}}|40}}}} | ||
+ | }}px]] | ||
+ | | {{{imageright}}} | ||
+ | }} </div></td> | ||
+ | }} | ||
+ | </tr> | ||
+ | </table><!-- | ||
− | --><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category: | + | --><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq: {{NAMESPACE}}|Template|[[Category:記事メッセージボックス]]}}}}</includeonly><!-- |
− | + | --><noinclude>{{Documentation}} | |
− | + | <!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください --></noinclude> | |
− | |||
− | {{Documentation}} | ||
− | <!-- | ||
− | </noinclude> |