Template:Ambox:修订间差异

来自Quickpedia wiki
疯掉
65個修訂: 在維基百科的「世界大典」條目已經進入存廢討論,可能會被刪除,因此上傳自此作留存
 
(未显示12个用户的59个中间版本)
第1行: 第1行:
<table style="{{{style|}}}" width: 80%; margin: 0 auto; border-collapse: collapse; background: #fbfbfb; border: 1px solid #aaa; border-left: 10px solid #1e90ff; {{#switch:{{{type|}}}
{{#ifeq:{{{subst}}}|SUBST
   | serious  = border-left: 10px solid #b22222;
|{{#if:{{{name|}}}
   | content = border-left: 10px solid #f28500;
  |{{Error|模板{{tlx|{{{name}}}}}不应被替换引用。}}
   | style   = border-left: 10px solid #f4c430;
}}[[Category:錯誤使用替換引用的頁面]]
   | merge    = border-left: 10px solid #9932cc;
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
   | notice  = border-left: 10px solid #1e90ff;
|type = {{{type|}}}
   | growth  = border-left: 10px solid #228b22;
|image = {{{image|}}}
   | protection = border-left: 10px solid #bba;
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
   | #default = border-left: 10px solid #1e90ff;
|imageright = {{{imageright|}}}
}}">
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
<tr>
|class = ambox-{{#switch:{{{type|}}}
{{#ifeq:{{{image}}}|none
   |speedy = speedy
   | <!-- no image cell -->
  |delete = delete
   | <td class="ambox-image"> {{#switch:{{{image|{{{type|}}}}}}
   |content = content
    | serious = [[Image:Stop hand nuvola.svg|40px]]
   |style = style
    | content = [[Image:Emblem-important.svg|40px]]
  |move = move
    | style    = [[Image:Broom icon.svg|40px]]
   |protection = protection
    | merge    = [[Image:Merge-split-transwiki default.svg]]
   |notice|#default = notice
    | notice  = [[Image:Info non-talk.png|40px]]
}} {{{class|}}}
    | growth   = [[Image:N write green black.svg|40px]]
|style = {{{style|}}}
    | blank    = <!-- empty image cell -->
|textstyle  = {{{textstyle|}}}
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
|smalltext  = {{{smalltext|}}}
  }}</td>
|talk = {{#switch:{{{talk|¬}}}
}}
   |¬        = <!-- No talk link used -->
<td>{{{text}}}</td>
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
{{#if:{{{imageright|}}}|
   |#default = {{{talk}}}
   <td class="ambox-imageright"> {{{imageright}}} </td>
}}
}}
|issue = {{#if:{{{textconvert|}}}||-{zh;zh-hans;zh-hant{{!}} }}{{#switch:{{{sect|¬}}}
</tr>
   |¬ = <!-- No section parameter used -->
</table><noinclude>
  |  = 本条目
{{template doc}}
   |本{{{sect}}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
}}{{{issue<includeonly>|</includeonly>}}}{{{text|}}}{{#if:{{{textconvert|}}}|| }- }}
|fix = {{#if:{{{textconvert|}}}||-{zh;zh-hans;zh-hant{{!}} }}{{{fix<includeonly>|</includeonly>}}}{{#if:{{{textconvert|}}}|| }- }}
|date = {{#switch:{{#if:{{{date|}}}|{{{date}}}|{{{time|¬}}}}}
   |¬        = <!-- No date/time used -->
   |         = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{#time:Y年n月j日}}}}
  |#default = {{#if:{{{date|}}}|{{{date}}}|{{#time:Y年n月j日|{{{time}}}}}}}
}}
|info = {{{info|}}}
}}{{Category handler
  |nocat={{{nocat|<noinclude>true</noinclude>}}}
|main={{Ambox/category
  |cat={{{cat|{{{category|}}}}}}
  |all={{{all|}}}
  |date={{#if:{{{date|}}}|{{{date}}}|{{#if:{{{time|}}}|{{#time:Y年n月|{{{time}}}}}}}}}
  |idx={{#switch:{{#if:{{{time|}}}|{{#time:j|{{{time}}}}}}}|1=㏠|2=㏡|3=㏢|4=㏣|5=㏤|6=㏥|7=㏦|8=㏧|9=㏨|10=㏩|11=㏪|12=㏫|13=㏬|14=㏭|15=㏮|16=㏯|17=㏰|18=㏱|19=㏲|20=㏳|21=㏴|22=㏵|23=㏶|24=㏷|25=㏸|26=㏹|27=㏺|28=㏻|29=㏼|30=㏽|31=㏾}}
  }}{{Ambox/category
  |cat={{{cat2|{{{category2|}}}}}}
  |all={{{all2|}}}
  |date={{#if:{{{date|}}}|{{{date}}}|{{#if:{{{time|}}}|{{#time:Y年n月|{{{time}}}}}}}}}
  |idx={{#switch:{{#if:{{{time|}}}|{{#time:j|{{{time}}}}}}}|1=㏠|2=㏡|3=㏢|4=㏣|5=㏤|6=㏥|7=㏦|8=㏧|9=㏨|10=㏩|11=㏪|12=㏫|13=㏬|14=㏭|15=㏮|16=㏯|17=㏰|18=㏱|19=㏲|20=㏳|21=㏴|22=㏵|23=㏶|24=㏷|25=㏸|26=㏹|27=㏺|28=㏻|29=㏼|30=㏽|31=㏾}}
}}{{Ambox/category
  |cat={{{cat3|{{{category3|}}}}}}
  |all={{{all3|}}}
  |date={{#if:{{{date|}}}|{{{date}}}|{{#if:{{{time|}}}|{{#time:Y年n月|{{{time}}}}}}}}}
  |idx={{#switch:{{#if:{{{time|}}}|{{#time:j|{{{time}}}}}}}|1=㏠|2=㏡|3=㏢|4=㏣|5=㏤|6=㏥|7=㏦|8=㏧|9=㏨|10=㏩|11=㏪|12=㏫|13=㏬|14=㏭|15=㏮|16=㏯|17=㏰|18=㏱|19=㏲|20=㏳|21=㏴|22=㏵|23=㏶|24=㏷|25=㏸|26=㏹|27=㏺|28=㏻|29=㏼|30=㏽|31=㏾}}
}}
|template={{#switch:Template:{{{name|}}}
   |{{FULLPAGENAME}} = [[Category:條目訊息模板]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
  |[[Category:缺少參數的條目訊息模板|{{#expr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}}}]]
  }}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}}
  |[[Category:缺少參數的條目訊息模板|C]]
  }}
   |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:缺少參數的條目訊息模板]]}}
}}
}}<noinclude>
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

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

{{Ambox/core

|type = 
|image = 
|smallimage = 
|imageright = 
|smallimageright = 
|class = ambox-notice 
|style = 
|textstyle  = 
|smalltext  = 
|talk = 
|issue = {{#if:|| }}{{{issue}}}
|fix = {{#if:|| }}{{{fix}}}
|date = 
|info = 

}}