Difference between revisions of "Template:Ambox"

From YUIkipedia
Jump to navigation Jump to search
 
Line 22: Line 22:
 
   | <!-- 画像無しの場合の空白セル: テキスト用セルの幅を100%にするために必要 -->
 
   | <!-- 画像無しの場合の空白セル: テキスト用セルの幅を100%にするために必要 -->
 
   | <div class="ambox-imagecontainer">{{#if:{{{image-file|}}}
 
   | <div class="ambox-imagecontainer">{{#if:{{{image-file|}}}
     | [[ファイル:{{{image-file}}}|{{#if:{{{section|}}}
+
     | [[File:{{{image-file}}}|{{#if:{{{section|}}}
 
       |{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}}
 
       |{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}}
 
       |{{#if:{{{image-size|}}}|{{{image-size}}}|40}}
 
       |{{#if:{{{image-size|}}}|{{{image-size}}}|40}}
Line 28: Line 28:
 
     | {{#switch:{{{image|}}}
 
     | {{#switch:{{{image|}}}
 
       | protection | speedy | delete | serious | content | style | merge | notice <!-- 既定画像用キーワード -->
 
       | protection | speedy | delete | serious | content | style | merge | notice <!-- 既定画像用キーワード -->
       | <!-- 空白または未定義 --> = [[ファイル:{{#switch:{{#if:{{{image|}}}|{{{image}}}|{{{type|}}}}}
+
       | <!-- 空白または未定義 --> = [[File:{{#switch:{{#if:{{{image|}}}|{{{image}}}|{{{type|}}}}}
 
         | speedy    = Ambox speedy deletion.png
 
         | speedy    = Ambox speedy deletion.png
 
         | delete
 
         | delete
Line 42: Line 42:
 
         |{{#if:{{{image-size|}}}|{{{image-size}}}|40}}
 
         |{{#if:{{{image-size|}}}|{{{image-size}}}|40}}
 
       }}px]]
 
       }}px]]
       | blank    = [[ファイル:No image.svg]]
+
       | blank    = [[File:No image.svg]]
 
       | #default = {{{image}}}
 
       | #default = {{{image}}}
 
     }}
 
     }}
Line 50: Line 50:
 
{{#if:{{{imageright|}}}{{{imageright-file|}}}|
 
{{#if:{{{imageright|}}}{{{imageright-file|}}}|
 
   <td class="ambox-imageright"><div class="ambox-imagecontainer"> {{#if:{{{imageright-file|}}}
 
   <td class="ambox-imageright"><div class="ambox-imagecontainer"> {{#if:{{{imageright-file|}}}
     | [[ファイル:{{{imageright-file}}}|{{#if:{{{section|}}}
+
     | [[File:{{{imageright-file}}}|{{#if:{{{section|}}}
 
       |{{#if:{{{imageright-size-section|}}}|{{{imageright-size-section}}}|{{#if:{{{image-size-section|}}}|{{{image-size-section}}}|25}}}}
 
       |{{#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}}}}
 
       |{{#if:{{{imageright-size|}}}|{{{imageright-size}}}|{{#if:{{{image-size|}}}|{{{image-size}}}|40}}}}

Latest revision as of 15:26, 22 March 2010

[create] 50px Template documentation