Template:Ambox: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ (only show talk page link if talk page exists, add info parameter for additional information, make nocat=true work, tracking category adjustments) |
meta>MSGJ (major rewrite, splitting code for small ambox, add section parameter) |
||
Line 1: | Line 1: | ||
{{#ifeq:{{{subst}}}|SUBST | {{#ifeq:{{{subst}}}|SUBST | ||
|{{#if:{{{name|}}} | |{{#if:{{{name|}}} | ||
|{{Error|Template {{ | |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}} | ||
}}[[Category:Pages with incorrectly substituted templates]] | }}[[Category:Pages with incorrectly substituted templates]] | ||
}}{{#ifeq:{{{small}}}|left | }}{{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 | |||
|content = content | |||
|style = style | |||
|move = move | |||
|protection = protection | |||
|style | |notice|#default = notice | ||
}} {{{class|}}} | |||
|style = {{{style|}}} | |||
|textstyle = {{{textstyle|}}} | |||
|smalltext = {{{smalltext|}}} | |||
|talk = {{#switch:{{{talk|¬}}} | |||
|¬ = <!-- No talk link used --> | |||
| = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}} | |||
}} | |#default = {{{talk}}} | ||
}} | }} | ||
| | |issue = {{#switch:{{{sect|¬}}} | ||
|¬ = <!-- No section parameter used --> | |||
| = This article | |||
|This {{{sect}}} | |||
}} {{{issue<includeonly>|</includeonly>}}} {{{text|}}} | |||
|fix = {{{fix<includeonly>|</includeonly>}}} | |||
|date = {{#switch:{{{date|¬}}} | |||
|¬ = <!-- No date used --> | |||
| = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} | |||
|#default = {{{date}}} | |||
}} | }} | ||
|info = {{{info|}}} | |||
}}{{Category handler | }}{{Category handler | ||
|nocat={{{nocat|}}} | |nocat={{{nocat|<noinclude>true</noinclude>}}} | ||
|main={{Ambox/category | |main={{Ambox/category | ||
|cat={{{cat|{{{category|}}}}}} | |cat={{{cat|{{{category|}}}}}} | ||
Line 66: | Line 53: | ||
|date={{{date|}}} | |date={{{date|}}} | ||
}} | }} | ||
|template={{#switch:Template:{{{name| | |template={{#switch:Template:{{{name|}}} | ||
|{{FULLPAGENAME}} = [[Category:Article message templates]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}} | |||
|[[Category:Article message templates with missing parameters|{{#expr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}}}]] | |||
}}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}} | |||
|[[Category:Article message templates with missing parameters|C]] | |||
}} | |||
|Template: = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}} | |||
}} | }} | ||
}}<noinclude> | }}<noinclude> |