ページ「テンプレート:Notice」と「テンプレート:Main other」の間の差分

提供: MonoBook
(ページ間の差分)
ナビゲーションに移動 検索に移動
imported>Administrator
(ページの作成:「{{Main other |{{Ambox | type = {{{type|notice}}} | section = {{{section|}}} | image-file = {{ #if: {{{image|}}} | {{{image}}} | {{ #switch: {{{3|{{{style}}}}}} | stop...」)
 
imported>Administrator
(ページの作成:「{{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"-...」)
 
1行目: 1行目:
{{Main other
+
{{#switch:
|{{Ambox
+
   <!--If no or empty "demospace" parameter then detect namespace-->
| type  = {{{type|notice}}}
+
   {{#if:{{{demospace|}}}  
| section = {{{section|}}}
+
  | {{lc: {{{demospace}}} }}   <!--Use lower case "demospace"-->
| image-file = {{ #if: {{{image|}}} | {{{image}}} | {{ #switch: {{{3|{{{style}}}}}}
+
  | {{#ifeq:{{NAMESPACE}}|{{ns:0}}
| stop      = Stop_hand_nuvola.svg
+
    | main
| warning   = Stop_x_nuvola.svg
+
    | other
| question  = Ambox question.svg
+
    }}  
| attention = Nuvola apps important.svg
+
  }}
| important = Ambox_important.svg
+
| main    = {{{1|}}}
| search    = Searchtool.svg
+
| other
| fix      = Tools_nicu_buculei_01.svg
+
| #default = {{{2|}}}
| announce  = Stock volume.svg
+
}}<!--End switch--><noinclude>
| help      = Gnome-help-openclipart.svg
 
| idea      = Dialog-information on.svg
 
| news      = Network-wireless.svg
 
| propose   = Nuvola apps edu languages.svg }} }}
 
| text  = {{#if:{{{header|}}} | <div style="text-align:center;">'''{{{header}}}'''</div>}}{{ #if: {{{title|{{{2|}}}}}} | '''{{{title|{{{2}}}}}}''': }}{{#if: {{{text|{{{1|}}}}}} | {{{text|{{{1}}}}}} | 文字列の例 }}
 
}}
 
|{{Mbox
 
| demospace = {{{demospace|}}}
 
| type  = {{{type|notice}}}
 
| section = {{{section|}}}
 
| style = {{#if:{{{section|}}}|width:100%;}}
 
| small = {{#if:{{{section|}}}|yes}}{{{small|}}}
 
| image-file = {{ #if: {{{image|}}} | {{{image}}} | {{ #switch: {{{3|{{{style}}}}}}
 
| stop      = Stop_hand_nuvola.svg
 
| warning  = Stop_x_nuvola.svg
 
| question  = Ambox question.svg
 
| attention = Nuvola apps important.svg
 
| important = Ambox_important.svg
 
| search    = Searchtool.svg
 
| fix      = Tools_nicu_buculei_01.svg
 
| announce  = Stock volume.svg
 
| help      = Gnome-help-openclipart.svg
 
| idea      = Dialog-information on.svg
 
| news      = Network-wireless.svg
 
| propose  = Nuvola apps edu languages.svg }} }}
 
| text  = {{#if:{{{header|}}} | <div style="text-align:center;">'''{{{header}}}'''</div>}}{{ #if: {{{title|{{{2|}}}}}} | '''{{{title|{{{2}}}}}}''': }}{{#if: {{{text|{{{1|}}}}}} | {{{text|{{{1}}}}}} | 文字列の例 }}
 
}}}}<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
<!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください -->
 
 
</noinclude>
 
</noinclude>

2013年9月25日 (水) 04:51時点における最新版

[作成]ファイル:Template-info.svg テンプレートの解説
このテンプレートには、サンドボックステストケースもありません。(解説