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

来自Ballance Wiki
跳转至: 导航搜索
2个标签移动版编辑移动网页编辑
 
(未显示2个用户的13个中间版本)
第1行: 第1行:
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}
+
<div style="margin: 0 8%"><table class="metadata plainlinks ambox {{{class|}}}" style="box-sizing: border-box; min-width: 100%; background: #f7f8f9; border: 1px solid #828991; margin: 0 auto; border-collapse: collapse; box-shadow: 0 1.25px 3.75px rgba(0, 0, 0, 0.12), 0 1.25px 2.5px rgba(0, 0, 0, 0.24); {{{style|}}}">
| left = mbox-small-left
+
<tr><td style="min-width: 9px; width: 9px; min-height: 72px; background: {{#switch:{{{type|}}}
}} {{#switch:{{{type|}}}
+
  |speedy = #b32424
| speedy     = ambox-speedy
+
  |delete = #b32424
| delete     = ambox-delete
+
  |content = #f28500
| content   = ambox-content
+
  |style = #fc3
| style     = ambox-style
+
  |move = #9932cc
| move       = ambox-move
+
  |protection = #a2a9b1
| protection = ambox-protection
+
  |notice|#default = #36c
| notice     <!-- notice = default -->
+
}}" rowspan="2"></td>{{#if:{{{image|}}}
| #default   = ambox-notice
+
  |<td style="width: 40px; padding: 2px 6px 2px 12px; min-height: 72px" rowspan="2">{{{image}}}</td>
}} {{#if:{{{section|}}} <!-- 宣告章節用小型格式 -->
+
  |<td style="width: 40px; padding: 2px 6px 2px 12px; min-height: 72px" rowspan="2">[[File:{{#switch:{{{type|}}}
   | ambox-section
+
  |speedy = Ambox deletion.png
}}" style="{{{style|}}}">
+
  |delete = Ambox deletion.png
<tr>
+
  |content = Ambox content.png
{{#switch:{{{image|}}}
+
  |style = EditClear.png
| blank    <!-- Fall back to "none", since deprecated. -->
+
  |move = Ambox move.png
| none = <td class="mbox-empty-cell"></td>   <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
+
  |protection = Ambox protection.png
| #default =
+
  |notice|#default = AmboxNotice.png
  <td class="mbox-image">{{
+
   }}|40x40px|link=|alt=]]
  #switch:{{{small|}}}
+
}}</td>
  | left = <!-- Don't use the DIV -->
+
<th class="mbox-text" style="text-align: left; padding: 10px 4px 1px 9px; font: bold 15px Arial, sans-serif; line-height: 21px; color: #222; {{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}{{#if:{{{date|}}}
  | #default = <div style="width: 52px;">
+
|<small>''({{{date}}})''</small>
 +
}}</th>{{#switch:{{{imageright|}}}
 +
|none =
 +
|=
 +
|#default = <td class="mbox-imageright" rowspan="2"><div style="width: 52px">{{{imageright}}}</div></td>
 +
}}</tr><tr><td class="mbox-text" style="font-size: 13.5px; color: #222; padding: 1px 11.2px 10px 11px; line-height: 18px; {{{textstyle|}}}"><span class="hide-when-compact"> {{#if:{{{talk|}}}
 +
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
 +
  |{{{talk}}}
 +
  |{{TALKPAGENAME}}
 
   }}
 
   }}
   {{#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
+
<br>}}
    | content   = Ambox content.png
+
}}{{#ifeq:{{{fix|}}}|-{zh;zh-hans;zh-hant{{!}} }-||<small>{{{fix|}}}</small>}}</span><span class="hide-when-compact"> {{{info|}}}</span></span></td></tr></table></div>
    | style      = Ambox style.png
 
    | move      = Ambox move.png
 
    | protection = Ambox protection.png
 
    | notice          <!-- notice = default -->
 
    | #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年9月7日 (六) 17:12的最新版本