Difference between revisions of "Template:Ambox"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{#ifeq:{{{subst}}}|SUBST | {{#ifeq:{{{subst}}}|SUBST | ||
− | + | |{{#if:{{{name|}}} | |
− | |{{#if:{{{name|}}} | + | |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}} |
− | + | }}[[Category:Pages with incorrectly substituted templates]] | |
− | |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}} | ||
− | |||
− | }}[[Category:Pages with incorrectly substituted templates]] | ||
− | |||
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}} | }}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}} | ||
− | + | |type = {{{type|}}} | |
− | |type = {{{type|}}} | + | |image = {{{image|}}} |
− | + | |smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}} | |
− | |image = {{{image|}}} | + | |imageright = {{{imageright|}}} |
− | + | |smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}} | |
− | |smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}} | + | |class = ambox-{{#switch:{{{type|}}} |
− | + | | critical = critical | |
− | |imageright = {{{imageright|}}} | + | | warning = warning |
− | + | |content = content | |
− | |smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}} | + | | caution = caution |
− | + | |move = move | |
− | |class = ambox-{{#switch:{{{type|}}} | + | |protection = protection |
− | + | |notice|#default = notice | |
− | | critical = critical | + | }} {{{class|}}} |
− | + | |style = {{{style|}}} | |
− | | warning = warning | + | |textstyle = {{{textstyle|}}} |
− | + | |smalltext = {{{smalltext|}}} | |
− | |content = content | + | |talk = {{#switch:{{{talk|¬}}} |
− | + | |¬ = <!-- No talk link used --> | |
− | | caution = caution | + | | = {{Template:{{PAGENAME:{{{name}}}}}|#}} |
− | + | |#default = {{{talk}}} | |
− | |move = move | + | }} |
− | + | |issue = {{#switch:{{{sect|¬}}} | |
− | |protection = protection | + | |¬ = <!-- No section parameter used --> |
− | + | | = This article | |
− | |notice|#default = notice | + | |This {{{sect}}} |
− | + | }} {{{issue<includeonly>|</includeonly>}}} {{{text|}}} | |
− | }} {{{class|}}} | + | |fix = {{{fix<includeonly>|</includeonly>}}} |
− | + | |date = {{#switch:{{{date|¬}}} | |
− | |style = {{{style|}}} | + | |¬ = <!-- No date used --> |
− | + | | = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} | |
− | |textstyle = {{{textstyle|}}} | + | |#default = {{{date}}} |
− | + | }} | |
− | |smalltext = {{{smalltext|}}} | + | |info = {{{info|}}} |
− | |||
− | |talk = {{#switch:{{{talk|¬}}} | ||
− | |||
− | |¬ = <!-- No talk link used --> | ||
− | |||
− | | = {{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|<noinclude>true</noinclude>}}} | |
− | |nocat={{{nocat|<noinclude>true</noinclude>}}} | + | |main={{Ambox/category |
− | + | |cat={{{cat|{{{category|}}}}}} | |
− | |main={{Ambox/category | + | |all={{{all|}}} |
− | + | |date={{{date|}}} | |
− | |cat={{{cat|{{{category|}}}}}} | + | }}{{Ambox/category |
− | + | |cat={{{cat2|{{{category2|}}}}}} | |
− | |all={{{all|}}} | + | |all={{{all2|}}} |
− | + | |date={{{date|}}} | |
− | |date={{{date|}}} | + | }}{{Ambox/category |
− | + | |cat={{{cat3|{{{category3|}}}}}} | |
− | }}{{Ambox/category | + | |all={{{all3|}}} |
− | + | |date={{{date|}}} | |
− | |cat={{{cat2|{{{category2|}}}}}} | + | }} |
− | + | |template={{#switch:Template:{{{name|}}} | |
− | |all={{{all2|}}} | + | |{{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}}}}]] | |
− | |date={{{date|}}} | + | }}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}} |
− | + | |[[Category:Article message templates with missing parameters|C]] | |
− | }}{{Ambox/category | + | }} |
− | + | |Template: = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}} | |
− | |cat={{{cat3|{{{category3|}}}}}} | + | }} |
− | |||
− | |all={{{all3|}}} | ||
− | |||
− | |date={{{date|}}} | ||
− | |||
− | }} | ||
− | |||
− | |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> | ||
− | |||
{{Documentation}} | {{Documentation}} | ||
− | |||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
− | |||
</noinclude> | </noinclude> |
Revision as of 21:11, 3 June 2013
{{#ifeq:{{{subst}}}|SUBST
|{{#if: |Template:Error }}
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
|type = |image = |smallimage = {{#if:|{{{smallimage}}}|}} |imageright = |smallimageright = {{#if:|{{{smallimageright}}}|}} |class = ambox-{{#switch: | critical = critical | warning = warning |content = content | caution = caution |move = move |protection = protection |notice|#default = notice }} |style = |textstyle = |smalltext = |talk = {{#switch:¬ |¬ = | = {{Template:|#}} |#default = {{{talk}}} }} |issue = {{#switch:¬ |¬ = | = This article |This {{{sect}}} }} {{{issue}}} |fix = {{{fix}}} |date = {{#switch:¬ |¬ = | = {{#ifeq:Template:FULLROOTPAGENAME|Template:|October 2024}} |#default = {{{date}}} }} |info =