この影響が特に大きいテンプレートは、荒らしを予防するために無期限に編集保護されています。

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

提供: miniwiki
移動先:案内検索
ja>K-iczn
(Template:Ambox/sandbox 2014年6月13日 (金) 06:02(UTC)より)
 
(「テンプレート:Ambox」を保護しました ([編集=管理者のみ許可] (無期限) [移動=管理者のみ許可] (無期限)))
 
(同じ利用者による、間の2版が非表示)
1行目: 1行目:
{{#invoke:Message box|ambox}}<!--  
+
{{#switch:{{{small|{{#if:{{{section|}}}|section}}}}}
誤った "type" パラメータの使用法の検出と報告:
+
| left =
-->{{#switch:{{{type|}}}
+
  {{Ambox/core
<!-- タイプが与えられないのも、有効な入力 -->
+
  | small          = left
| speedy
+
  | type            = {{{type|}}}
| delete
+
  | image          = {{#if:{{{smallimage|}}}
| content
+
                      | {{{smallimage}}}
| style
+
                      | {{{image|}}}
| move
+
                      }}
| protection
+
  | image-file      = {{#if:{{{smallimage-file|}}}
| notice    = <!-- 有効な "type" なので何もしない -->
+
                      | {{{smallimage-file}}}
| #default   = <div style="text-align: center;">このメッセージボックスは無効な "type={{{type|}}}" パラメータを使用しており、修正が必要です。</div><!-- 現状ではカテゴライズされるのを防ぐためコメントアウト [[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]] --><!-- 名前空間でソート -->
+
                      | {{{image-file|}}}
}}<noinclude>{{Documentation}}
+
                      }}
<!-- カテゴリはここではなく/doc サブページに、言語間リンクはウィキデータ追加してください --></noinclude>
+
  | image-size      = {{#if:{{{smallimage-size|}}}
 +
                      | {{{smallimage-size}}}
 +
                      | 20x20
 +
                      }}
 +
  | imageright      = {{#if:{{{smallimageright|}}}
 +
                      | {{{smallimageright}}}
 +
                      | {{{imageright|}}}
 +
                      }}
 +
  | imageright-file = {{#if:{{{smallimageright-file|}}}
 +
                      | {{{smallimageright-file}}}
 +
                      | {{{imageright-file|}}}
 +
                      }}
 +
  | imageright-size = {{#if:{{{smallimageright-size|{{{smallimage-size|}}}}}}
 +
                      | {{{smallimageright-size|{{{smallimage-size}}}}}}
 +
                      | 20x20
 +
                      }}
 +
  | style          = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}}
 +
  | textstyle      = {{{textstyle|}}}
 +
  | text            = {{#if:{{{smalltext|}}}
 +
                      | {{{smalltext}}}
 +
                      | {{{text}}}
 +
                      }}
 +
  | printable      = {{{printable|}}}
 +
  }}
 +
| section =
 +
  {{Ambox/core
 +
  | small          = section
 +
  | type            = {{{type|}}}
 +
  | image          = {{{image|}}}
 +
   | image-file      = {{{image-file|}}}
 +
  | image-size      = {{#if:{{{image-size-section|{{{image-size|}}}}}}
 +
                      | {{{image-size-section|{{{image-size}}}}}}
 +
                      | 40x40
 +
                      }}
 +
  | imageright      = {{{imageright|}}}
 +
  | imageright-file = {{{imageright-file|}}}
 +
  | imageright-size = {{#if:{{{imageright-size-section|{{{image-size-section|{{{imageright-size|{{{image-size|}}}}}}}}}}}}
 +
                      | {{{imageright-size-section|{{{image-size-section|{{{imageright-size|{{{image-size}}}}}}}}}}}}
 +
                      | 40x40
 +
                      }}
 +
  | style           = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}}
 +
  | textstyle      = {{{textstyle|}}}
 +
  | text            = {{#if:{{{text-section|}}}
 +
                      | {{{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>

2018/8/2/ (木) 08:26時点における最新版

edit Documentation