Template:Ambox/core:修订间差异

来自Quickpedia wiki
sec
25個修訂: 在維基百科的「世界大典」條目已經進入存廢討論,可能會被刪除,因此上傳自此作留存
 
(未显示6个用户的15个中间版本)
第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>
    | style      = Ambox style.png
<span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}}
    | move      = Ambox move.png
|none =
    | protection = Ambox protection.png
|=
    | notice          <!-- notice = default -->
|#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td>
    | #default  = Ambox notice.png
}}</tr></table><noinclude>
    }} | {{#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 -->
}}<noinclude>
{{pp-template}}
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

2015年2月26日 (四) 13:12的最新版本