「テンプレート:ambox」の版間の差分

提供:Tsubopedia
*>Kurz
(Atanabe がページ「テンプレート:Ambox」をリダイレクトの「テンプレート:ambox」に移動しました)
 
(10人の利用者による、間の18版が非表示)
1行目: 1行目:
<table style="{{{style|}}}" class="plainlinks ambox {{#switch:{{{type|}}}
{{#switch:{{{small|{{#if:{{{section|}}}|section}}}}}
  | protection = ambox-protection
| left =  
  | speedy    = ambox-speedy
   {{Ambox/core
   | serious    = ambox-serious
   | small          = left
   | content    = ambox-content
   | type            = {{{type|}}}
   | style      = ambox-style
   | image          = {{#if:{{{smallimage|}}}
  | merge      = ambox-merge
                      | {{{smallimage}}}
   | notice        <!-- notice = default -->
                      | {{{image|}}}
  | #default  = ambox-notice
                      }}
}} {{#if:{{{section|}}} <!-- 節フラグ:指定すると節用のスタイルを適用 -->
  | image-file      = {{#if:{{{smallimage-file|}}}
  | ambox-section
                      | {{{smallimage-file}}}
}} {{#if:{{{printable|}}} <!-- 印刷フラグ:指定すると印刷時にも表示 -->
                      | {{{image-file|}}}
  |
                      }}
  | noprint <!-- 規定値は印刷時非表示 -->
  | image-size      = {{#if:{{{smallimage-size|}}}
}}" {{#if:{{{background|}}} <!-- 背景色 -->
                      | {{{smallimage-size}}}
  | style="background-color:{{{background}}}"
                      | 20x20
}}>
                      }}
<tr>
  | imageright      = {{#if:{{{smallimageright|}}}
<td class="ambox-image">
                      | {{{smallimageright}}}
{{#ifeq:{{{image}}}|none
                      | {{{imageright|}}}
  | <!-- 画像無しの場合の空白セル: テキスト用セルの幅を100%にするために必要 -->
                      }}
   | <div class="ambox-imagecontainer">{{#if:{{{image-file|}}}
   | imageright-file = {{#if:{{{smallimageright-file|}}}
    | [[ファイル:{{{image-file}}}|{{#if:{{{section|}}}
                      | {{{smallimageright-file}}}
      |{{{image-size-section|25}}}
                      | {{{imageright-file|}}}
      |{{{image-size|40}}}
                      }}
    }}px]]
  | imageright-size = {{#if:{{{smallimageright-size|{{{smallimage-size|}}}}}}
    | {{#switch:{{{image|}}}
                      | {{{smallimageright-size|{{{smallimage-size}}}}}}
      | protection | speedy | serious | content | style | merge | notice <!-- 既定画像用キーワード -->
                      | 20x20
      | <!-- 空白または未定義 --> = [[ファイル:{{#switch:{{#if:{{{image|}}}|{{{image}}}|{{{type|}}}}}
                      }}
        | speedy    = Ambox speedy deletion.png
  | style          = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}}
        | serious    = Ambox deletion.png
  | textstyle      = {{{textstyle|}}}
        | content    = Ambox content.png
  | text            = {{#if:{{{smalltext|}}}
        | style      = Ambox style.png
                      | {{{smalltext}}}
        | merge     = Ambox move.png
                      | {{{text}}}
        | protection = Ambox protection.png
                      }}
        | notice      <!-- notice = default -->
  | printable      = {{{printable|}}}
        | #default   = Ambox notice.png
  }}
      }}|{{#if:{{{section|}}}
| section =  
        |{{{image-size-section|25}}}
  {{Ambox/core
        |{{{image-size|40}}}
  | small          = section
      }}px]]
  | type            = {{{type|}}}
      | blank    = [[ファイル:No image.svg]]
  | image          = {{{image|}}}
      | #default = {{{image}}}
  | image-file     = {{{image-file|}}}
    }}
  | image-size      = {{#if:{{{image-size-section|{{{image-size|}}}}}}
   }}</div>
                      | {{{image-size-section|{{{image-size}}}}}}
}}</td>
                      | 40x40
<td class="ambox-text">{{#if:{{{section|}}}|{{{text-section|{{{text}}}}}}|{{{text}}}}}</td>
                      }}
{{#if:{{{imageright|}}}{{{imageright-file|}}}|
   | imageright      = {{{imageright|}}}
   <td class="ambox-imageright"><div class="ambox-imagecontainer"> {{#if:{{{imageright-file|}}}
  | imageright-file = {{{imageright-file|}}}
    | [[ファイル:{{{imageright-file}}}|{{#if:{{{section|}}}
  | imageright-size = {{#if:{{{imageright-size-section|{{{image-size-section|{{{imageright-size|{{{image-size|}}}}}}}}}}}}
      |{{{imageright-size-section|{{{image-size-section|25}}}}}}
                      | {{{imageright-size-section|{{{image-size-section|{{{imageright-size|{{{image-size}}}}}}}}}}}}
      |{{{imageright-size|{{{image-size|40}}}}}}
                      | 40x40
    }}px]]
                      }}
    | {{{imageright}}}
  | style          = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}}
   }} </div></td>
   | textstyle      = {{{textstyle|}}}
}}
  | text            = {{#if:{{{text-section|}}}
</tr>
                      | {{{text-section}}}
</table><!--
                      | {{{text}}}
 
                      }}
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq: {{NAMESPACE}}|Template|[[Category:記事メッセージボックス| {{PAGENAME}}]]}}}}</includeonly><!--
  | printable      = {{{printable|}}}
  }}
| #default =
  {{Ambox/core
  | 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|}}}
  }}
}}<!--
--><noinclude>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:記事メッセージボックス]]}}}}</noinclude><!--


--><noinclude>{{Documentation}}
--><noinclude>{{Documentation}}
<!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください --></noinclude>
<!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください --></noinclude>

2014年8月1日 (金) 04:33時点における最新版

Documentation icon テンプレートの解説[[{{fullurl:</noinclude>:/doc| action=edit&preload=Template:Documentation/preload }} 作成]]