“模板:Ambox”的版本间的差异
BearKidsTeam(讨论 | 贡献) |
BearKidsTeam(讨论 | 贡献) (撤销BearKidsTeam(讨论)的版本1442) (1个标签:撤销) |
||
第1行: | 第1行: | ||
− | {{# | + | {{#ifeq:{{{subst}}}|SUBST |
− | | | + | |{{#if:{{{name|}}} |
− | + | |{{Error|模板{{tlx|{{{name}}}}}被错误地替代。}} | |
− | + | }}[[Category:包含被错误地替代的模板的页面]] | |
− | + | }}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}} | |
− | + | |type = {{{type|}}} | |
− | + | |image = {{{image|}}} | |
− | + | |smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}} | |
− | + | |imageright = {{{imageright|}}} | |
− | + | |smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}} | |
− | + | |class = ambox-{{#switch:{{{type|}}} | |
− | + | |speedy = speedy | |
− | + | |delete = delete | |
− | | style | + | |content = content |
− | + | |style = style | |
− | + | |move = move | |
− | + | |protection = protection | |
− | + | |notice|#default = notice | |
− | + | }} {{{class|}}} | |
− | + | |style = {{{style|}}} | |
− | | #default = | + | |textstyle = {{{textstyle|}}} |
− | + | |smalltext = {{{smalltext|}}} | |
− | + | |talk = {{#switch:{{{talk|¬}}} | |
− | + | |¬ = <!-- No talk link used --> | |
− | + | | = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}} | |
− | | | + | |#default = {{{talk}}} |
− | | | + | }} |
− | + | |issue = {{{issue|}}} | |
− | + | |fix = {{{fix|}}} | |
+ | |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|}}} | ||
}} | }} |