“模板:Ambox/core”的版本间的差异

来自Ballance Wiki
跳转至: 导航搜索
(撤销BearKidsTeam讨论)的版本1444)
1个标签撤销
第1行: 第1行:
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}
+
<table class="metadata plainlinks ambox {{{class|}}}" style="{{{style|}}}">
| left = mbox-small-left
+
<tr>{{#switch:{{{image|}}}
}} {{#switch:{{{type|}}}
+
|blank
| speedy     = ambox-speedy
+
|none = <td class="mbox-empty-cell"></td>
| delete     = ambox-delete
+
|#default = <td class="mbox-image"><div style="width: 52px;">{{#if:{{{image|}}}
| content   = ambox-content
+
  |{{{image}}}
| style     = ambox-style
+
  |[[File:{{#switch:{{{type|}}}
| move       = ambox-move
+
  |speedy = Ambox speedy deletion.png
| protection = ambox-protection
+
  |delete = Ambox deletion.png
| notice     <!-- notice = default -->
+
  |content = Ambox content.png
| #default   = ambox-notice
+
  |style = Edit-clear.svg
}} {{#if:{{{section|}}} <!-- 宣告章節用小型格式 -->
+
  |move = Ambox move.png
  | ambox-section
+
  |protection = Ambox protection.png
}}" style="{{{style|}}}">
+
  |notice|#default = Ambox notice.png
<tr>
+
  }}|40x40px|link=|alt=]]
{{#switch:{{{image|}}}
+
}}</div></td>
| blank    <!-- Fall back to "none", since deprecated. -->
+
}}<td class="mbox-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}{{#if:{{{date|}}}
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
+
|<small>''({{{date}}})''</small>
| #default =
+
}}<span class="hide-when-compact"> {{#if:{{{talk|}}}
  <td class="mbox-image">{{
+
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
  #switch:{{{small|}}}
+
  |{{{talk}}}
  | left = <!-- Don't use the DIV -->
+
  |{{TALKPAGENAME}}
  | #default = <div style="width: 52px;">
 
 
   }}
 
   }}
   {{#if:{{{image|}}}
+
   |&#32;相關討論可見於{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
  | {{{image}}}
+
   |[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]]
  | [[File:{{#switch:{{{type|}}}
+
  |[[{{TALKPAGENAME}}#{{{talk}}}|討論頁]]
    | speedy    = Ambox speedy deletion.png
+
   }}.
    | delete    = Ambox deletion.png
+
}}
    | content   = Ambox content.png
+
}}{{#ifeq:{{{fix|}}}|-{zh;zh-hans;zh-hant{{!}} }-||<br><small>{{{fix|}}}</small>}}</span><span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}}
    | style      = Ambox style.png
+
|none =
    | move      = Ambox move.png
+
|=
    | protection = Ambox protection.png
+
|#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td>
    | notice          <!-- notice = default -->
+
}}</tr></table>
    | #default  = Ambox notice.png
 
    }} | {{#switch:{{{small|}}}  
 
      | left = 20x20px
 
      | #default = 40x40px
 
      }}{{#if:{{{section|}}}
 
        |25px
 
        |40px
 
      }} ]]
 
  }}{{#switch:{{{small|}}}
 
  | left = <!-- Don't use the /DIV -->
 
  | #default = </div>
 
   }}</td>
 
}}
 
<td class="mbox-text" style="{{{textstyle|}}}">{{#if:{{{section|}}}|{{{text-section|{{{text}}}}}}|{{{text}}}}}</td>
 
{{#if:{{{imageright|}}}
 
| {{#ifeq:{{{imageright|}}}|none
 
  | <!-- No image. -->
 
  | <td class="mbox-imageright">{{#switch:{{{small|}}}
 
    | left = {{{imageright}}}
 
    | #default = <div style="width: 52px;"> {{{imageright}}} </div>
 
    }}</td>
 
  }}
 
}}
 
</tr>
 
</table><!--
 
Detect and report usage with faulty "type" parameter:
 
-->{{#switch:{{{type|}}}
 
|  <!-- No type fed, is also valid input -->
 
| speedy
 
| delete
 
| content
 
| style
 
| move
 
| protection
 
| notice    = <!-- Do nothing, valid "type" -->
 
| #default  = [[Category:需要修复的信息框|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
}}<!--
 
Detect and report usage of deprecated "image=blank":
 
-->{{#switch:{{{image|}}}
 
| blank = [[Category:需要修复的信息框|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
}}
 

2019年7月8日 (一) 23:52的版本