|
|
第1行: |
第1行: |
− | {{#ifeq:{{{subst}}}|SUBST
| + | <includeonly><table style="border-style: solid; border-width: 1px 1px 1px 10px; border-color:grey grey grey {{{bdcolor|grey}}}; width: 90%; margin: 0px 5%;"> |
− | |{{#if:{{{name|}}}
| + | <tr> |
− | |{{Error|模板{{tlx|{{{name}}}}}被错误地替代。}}
| + | <th rowspan="2" style="width:24px; height:24px; padding: 2px 10px 2px 10px">[[Image:{{{img}}}|24px]]</th> |
− | }}[[Category:包含被错误地替代的模板的页面]]
| + | <td><div style="font-size:18px; font-weight:bold; padding: 5px 0px 0px 0px">{{{title}}}</div></td> |
− | }}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
| + | </tr> |
− | |type = {{{type|}}}
| + | <tr> |
− | |image = {{{image|}}}
| + | <td><div style="font-family:sans;">{{{content}}}</div></td> |
− | |smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
| + | </tr> |
− | |imageright = {{{imageright|}}}
| + | </table> |
− | |smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
| + | </includeonly> |
− | |class = ambox-{{#switch:{{{type|}}}
| + | <noinclude> |
− | |speedy = speedy
| + | == 用法== |
− | |delete = delete
| + | <nowiki>{{Ambox |
− | |content = content
| + | |img= 在消息框左边显示的Wiki内图片文件名(必须) |
− | |style = style
| + | |title= 大字标题(必须) |
− | |move = move
| + | |content= 小字正文(必须) |
− | |protection = protection
| + | |bdcolor= 左边框粗线条颜色(可选,默认为“grey”) |
− | |notice|#default = notice
| + | }}</nowiki> |
− | }} {{{class|}}}
| + | |
− | |style = {{{style|}}}
| + | == 实例== |
− | |textstyle = {{{textstyle|}}}
| + | {{Ambox |
− | |smalltext = {{{smalltext|}}}
| + | |img= [[ 文件:Yanggen1.jpg]] |
− | |talk = {{#switch:{{{talk|¬}}}
| + | |title= 我是可爱 的 标题 |
− | |¬ = <!-- No talk link used --> | + | |content= StephDC技术宅拯救世界 |
− | | = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
| + | |bdcolor= red |
− | |#default = {{{talk}}}
| |
− | }}
| |
− | |issue = {{#switch:{{{sect|¬}}}
| |
− | | ¬ = <!-- No section parameter used -->
| |
− | | = 本条目
| |
− | |本{{{sect}}}
| |
− | }}{{{issue<includeonly>|</includeonly>}}}{{{text|}}}
| |
− | |fix = {{{fix<includeonly>|</includeonly>}}}
| |
− | |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> |