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

提供:Tsubopedia
*>新幹線
(保護テンプレの画像変更)
(Atanabe がページ「テンプレート:Ambox」をリダイレクトの「テンプレート:ambox」に移動しました)
 
(18人の利用者による、間の39版が非表示)
1行目: 1行目:
<table style="{{{style|}}}" class="plainlinks ambox {{#switch:{{{type|}}}
{{#switch:{{{small|{{#if:{{{section|}}}|section}}}}}
  | protection = ambox-protection
| left =  
  | serious    = ambox-serious
   {{Ambox/core
   | content    = ambox-content
   | small          = left
   | style      = ambox-style
   | type            = {{{type|}}}
   | merge      = ambox-merge
   | image          = {{#if:{{{smallimage|}}}
  | notice    = ambox-notice
                      | {{{smallimage}}}
   | #default  = ambox-notice
                      | {{{image|}}}
}} {{#if:{{{section|}}} <!-- 節フラグ: 指定すると節用のスタイルを適用 -->
                      }}
  | ambox-section
  | image-file      = {{#if:{{{smallimage-file|}}}
}} {{#if:{{{printable|}}} <!-- 印刷フラグ: 指定すると印刷時にも表示 -->
                      | {{{smallimage-file}}}
  |
                      | {{{image-file|}}}
  | noprint <!-- 規定値は印刷時非表示 -->
                      }}
}}" {{#if:{{{background|}}} <!-- 背景色 -->
  | image-size      = {{#if:{{{smallimage-size|}}}
  | style="background-color:{{{background}}}"
                      | {{{smallimage-size}}}
}}>
                      | 20x20
<tr>
                      }}
<td class="ambox-image">
  | imageright      = {{#if:{{{smallimageright|}}}
{{#ifeq:{{{image}}}|none
                      | {{{smallimageright}}}
  | <!-- 画像無しの場合の空白セル: テキスト用セルの幅を100%にするために必要 -->
                      | {{{imageright|}}}
   | <div class="ambox-imagecontainer">{{#if:{{{image-file|}}}
                      }}
    | [[画像:{{{image-file}}}|{{#if:{{{section|}}}
   | imageright-file = {{#if:{{{smallimageright-file|}}}
      |{{{image-size-section|25}}}
                      | {{{smallimageright-file}}}
      |{{{image-size|40}}}
                      | {{{imageright-file|}}}
    }}px]]
                      }}
    | {{#switch:{{{image|}}}
  | imageright-size = {{#if:{{{smallimageright-size|{{{smallimage-size|}}}}}}
      | protection | serious | content | style | merge | notice <!-- 既定画像用キーワード -->
                      | {{{smallimageright-size|{{{smallimage-size}}}}}}
      | <!-- 空白または未定義 --> = [[画像:{{#switch:{{#if:{{{image|}}}|{{{image}}}|{{{type|}}}}}
                      | 20x20
        | protection = Padlock.svg
                      }}
        | serious    = Stop hand nuvola.svg
  | style          = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}}
        | content    = Emblem-important.svg
  | textstyle      = {{{textstyle|}}}
        | style     = Broom icon.svg
  | text            = {{#if:{{{smalltext|}}}
        | merge     = Merge-split-transwiki default.svg
                      | {{{smalltext}}}
        | notice    = Info non-talk.svg
                      | {{{text}}}
        | #default   = Info non-talk.svg
                      }}
      }}|{{#if:{{{section|}}}
  | printable      = {{{printable|}}}
        |{{{image-size-section|25}}}
  }}
        |{{{image-size|40}}}
| section =  
      }}px]]
  {{Ambox/core
      | blank    = [[画像:No image.svg]]
  | small          = section
      | #default = {{{image}}}
  | type            = {{{type|}}}
    }}
  | image          = {{{image|}}}
   }}</div>
  | image-file     = {{{image-file|}}}
}}</td>
  | image-size     = {{#if:{{{image-size-section|{{{image-size|}}}}}}
<td class="ambox-text">{{#if:{{{section|}}}|{{{text-section|{{{text}}}}}}|{{{text}}}}}</td>
                      | {{{image-size-section|{{{image-size}}}}}}
{{#if:{{{imageright|}}}{{{imageright-file|}}}|
                      | 40x40
   <td class="ambox-imageright"><div class="ambox-imagecontainer"> {{#if:{{{imageright-file|}}}
                      }}
    | [[画像:{{{imageright-file}}}|{{#if:{{{section|}}}
  | imageright      = {{{imageright|}}}
      |{{{imageright-size-section|{{{image-size-section|25}}}}}}
   | imageright-file = {{{imageright-file|}}}
      |{{{imageright-size|{{{image-size|40}}}}}}
  | imageright-size = {{#if:{{{imageright-size-section|{{{image-size-section|{{{imageright-size|{{{image-size|}}}}}}}}}}}}
    }}px]]
                      | {{{imageright-size-section|{{{image-size-section|{{{imageright-size|{{{image-size}}}}}}}}}}}}
    | {{{imageright}}}
                      | 40x40
   }} </div></td>
                      }}
}}
  | style          = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}}
</tr>
   | textstyle      = {{{textstyle|}}}
</table><noinclude>
  | text            = {{#if:{{{text-section|}}}
{{Documentation}}
                      | {{{text-section}}}
                      | {{{text}}}
                      }}
  | 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}}
<!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください --></noinclude>
<!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください --></noinclude>

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

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