「テンプレート:Ambox/core」の版間の差分

提供:Tsubopedia
(en:Template:Ambox/core 19:06, 23 April 2009(UTC)の版を転記。修正。)
 
編集の要約なし
 
(10人の利用者による、間の13版が非表示)
1行目: 1行目:
<table class="plainlinks ambox {{#switch:{{{small|}}}
<table class="<!-- metadata -->plainlinks ambox {{#switch:{{{small|}}}
| left = mbox-small-left
| left = mbox-small-left
| section = ambox-section
}} {{#switch:{{{type|}}}
}} {{#switch:{{{type|}}}
| speedy    = ambox-speedy
| speedy    = ambox-speedy
| serious    <!-- この値は "非推奨" とされています。使わないでください。 -->
| delete    = ambox-delete
| delete    = ambox-delete
| content    = ambox-content
| content    = ambox-content
| style      = ambox-style
| style      = ambox-style
| merge      <!-- この値は "非推奨" とされています。使わないでください。 -->
| move      = ambox-move
| move      = ambox-move
| protection = ambox-protection
| protection = ambox-protection
| notice    <!-- notice = default -->
| notice    <!-- notice = default -->
| #default  = ambox-notice
| #default  = ambox-notice
}} {{#if:{{{printable|}}} <!-- 印刷フラグ:指定すると印刷時にも表示 -->
  |
  | noprint <!-- 既定値は印刷時非表示 -->
}}" style="{{{style|}}}">
}}" style="{{{style|}}}">
<tr>
<tr>
{{#switch:{{{image|}}}
{{#switch:{{{image|}}}
| blank    <!-- Fall back to "none", since deprecated. -->
| blank    <!-- 非推奨のため、"none" の値が返される -->
| none = <td class="mbox-empty-cell" style="border: none; padding: 0px; width: 1px;"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| none = <td class="mbox-empty-cell"></td>  <!-- 画像なし。100%の幅があるテキストセルのために必要な、いくらかの幅や余白のあるセル。 -->
| #default =  
| #default =  
   <td class="mbox-image">{{
   <td class="mbox-image">{{
   #switch:{{{small|}}}
   #switch:{{{small|}}}
   | left = <!-- Don't use the DIV -->  
   | left = <!-- DIVを使わない -->  
   | #default = <div style="width: 52px;">  
   | #default = <div class="ambox-imagecontainer">  
   }}
   }}
   {{#if:{{{image|}}}
   {{#if:{{{image-file|}}}
   | {{{image}}}
   | [[File:{{{image-file}}}|{{{image-size}}}px]]
   | [[Image:{{#switch:{{{type|}}}
   | {{#if:{{{image|}}}
    | speedy    = Ambox speedy deletion.png
    | {{{image}}}
    | delete    = Ambox deletion.png
    | [[File:{{#switch:{{{type|}}}
    | content    = Ambox content.png
      | speedy    = Ambox speedy deletion.png
    | style      = Ambox style.png
      | serious    <!-- この値は "非推奨" とされています。使わないでください。 -->
    | move      = Ambox move.png
      | delete    = Ambox deletion.png
    | protection = Ambox protection.png
      | content    = Ambox content.png
    | notice         <!-- notice = default -->
      | style      = Edit-clear svg.png
    | #default  = Ambox notice.png
      | merge      <!-- この値は "非推奨" とされています。使わないでください。 -->
    }} | {{#switch:{{{small|}}}  
      | move      = Ambox move.png
      | left = 20x20px
      | protection = Ambox protection.png
      | #default = 40x40px
      | notice     <!-- notice = default -->
      }} ]]
      | #default  = Ambox notice.png
      }} | {{{image-size}}}px |alt=|link=]]
    }}
   }}{{#switch:{{{small|}}}
   }}{{#switch:{{{small|}}}
   | left = <!-- Don't use the /DIV -->
   | left = <!-- /DIV を使わない -->
   | #default = </div>  
   | #default = </div>  
   }}</td>
   }}</td>
}}
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}{{{imageright-file|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
   | <!-- No image. -->
   | <!-- 画像なし -->
   | <td class="mbox-imageright">{{#switch:{{{small|}}}
   | <td class="mbox-imageright">{{#switch:{{{small|}}}
     | left = {{{imageright}}}
     | left = {{#if:{{{imageright-file|}}}
     | #default = <div style="width: 52px;"> {{{imageright}}} </div>
      | [[File:{{{imageright-file}}}|{{{imageright-size}}}px]]
      | {{{imageright}}}
      }}
     | #default = <div class="ambox-imagecontainer">{{#if:{{{imageright-file|}}}
      | [[File:{{{imageright-file}}}|{{{imageright-size}}}px]]
      | {{{imageright}}}
      }}</div>
     }}</td>
     }}</td>
   }}
   }}
}}
}}</tr>
</tr>
</table><!--  
</table><!--  
Detect and report usage with faulty "type" parameter:
誤った "type" パラメータの使用法の検出と報告:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
|  <!-- タイプが与えられないのも、有効な入力 -->
| speedy
| speedy
| delete
| delete
62行目: 75行目:
| move
| move
| protection
| protection
| notice    = <!-- Do nothing, valid "type" -->
| notice    = <!-- 有効な "type" なので何もしない -->
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| #default  = <div style="text-align: center;">このメッセージボックスは無効な "type={{{type|}}}" パラメータを使用しており、修正が必要です。</div><!-- 現状ではカテゴライズされるのを防ぐためコメントアウト [[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]] --><!-- 名前空間でソート -->
}}<!--  
}}<!--  
Detect and report usage of deprecated "image=blank":
非推奨の "image=blank" の使用の検出と報告:
-->{{#switch:{{{image|}}}
-->{{#switch:{{{image|}}}
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| blank = <!-- 現状ではカテゴライズされるのを防ぐためコメントアウト [[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]] --><!-- 名前空間でソート -->
}}<noinclude>
}}<noinclude>
{{documentation}}
{{Documentation}}
</noinclude>
</noinclude>

2014年8月15日 (金) 02:06時点における最新版

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