No edit summary
Line 1: Line 1:
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
{{#ifeq:{{{subst}}}|SUBST
| left =
|{{#if:{{{name|}}}
  {{Ambox/core
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
  | small     = left
}}[[Category:Pages with incorrectly substituted templates]]
  | type       = {{{type|}}}
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
  | image     = {{#if:{{{smallimage|}}}
|type = {{{type|}}}
                | {{{smallimage}}}
|image = {{{image|}}}
                | {{{image|}}}
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
                }}
|imageright = {{{imageright|}}}
  | imageright = {{#if:{{{smallimageright|}}}
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
                | {{{smallimageright}}}
|class = ambox-{{#switch:{{{type|}}}
                | {{{imageright|}}}
  |speedy = speedy
                }}
  |delete = delete
   | style     = {{{style|}}}
  |content = content
  | textstyle  = {{{textstyle|}}}
   |style = style
   | text       = {{#if:{{{smalltext|}}}
  |move = move
                | {{{smalltext}}}  
  |protection = protection
                | {{{text}}}  
  |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
|nocat={{{nocat|<noinclude>true</noinclude>}}}
|main={{Ambox/category
  |cat={{{cat|{{{category|}}}}}}
  |all={{{all|}}}
  |date={{{date|}}}
}}{{Ambox/category
  |cat={{{cat2|{{{category2|}}}}}}
  |all={{{all2|}}}
  |date={{{date|}}}
}}{{Ambox/category
  |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]]
   }}
   }}
| #default =
   |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}}
  {{Ambox/core
}}
   | type      = {{{type|}}}
}}<noinclude>
  | image      = {{{image|}}}
  | imageright = {{{imageright|}}}
  | style      = {{{style|}}}
  | textstyle  = {{{textstyle|}}}
  | text      = {{{text}}}
  }}
}}<!--
 
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
 
--><!--{{Ambox}} end--><noinclude>
 
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 23:00, 23 February 2013

Template:Ambox/coreTemplate:Category handler

Template documentation

Create

Cookies help us deliver our services. By using our services, you agree to our use of cookies.