Difference between revisions of "Template:Ambox"

From AIE Wiki
Jump to: navigation, search
m (don't show documentation on sandbox or testcases)
m (90 revisions)
 
(30 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
{{#ifeq:{{{subst}}}|SUBST
 
{{#ifeq:{{{subst}}}|SUBST
 
  |{{#if:{{{name|}}}
 
  |{{#if:{{{name|}}}
   |{{error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
+
   |{{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}}
  |{{Ambox/core
+
  |type = {{{type|}}}
  |small      = left
+
|image = {{{image|}}}
  |type      = {{{type|}}}
+
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
  |image      = {{#if:{{{smallimage|}}}
+
|imageright = {{{imageright|}}}
  |{{{smallimage}}}
+
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
  |{{{image|}}}
+
|class = ambox-{{#switch:{{{type|}}}
  }}
+
  |speedy = speedy
  |imageright = {{#if:{{{smallimageright|}}}
+
  |delete = delete
  |{{{smallimageright}}}
+
  |warning = warning
  |{{{imageright|}}}
+
  |content = content
  }}
+
   |style = style
   |style     = {{{style|}}}
+
  |move = move
  |textstyle  = {{{textstyle|}}}
+
  |protection = protection
   |text      = {{#if:{{{smalltext|}}}
+
  |notice|#default = notice
  |{{{smalltext}}}  
+
}} {{{class|}}}
  |{{{text}}}  
+
|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}}}
 
  }}
 
  }}
  |{{Ambox/core
+
  |info = {{{info|}}}
   |type      = {{{type|}}}
+
}}{{Category handler
   |image      = {{{image|}}}
+
|nocat={{{nocat|<noinclude>true</noinclude>}}}
   |imageright = {{{imageright|}}}
+
|main={{Ambox/category
   |style      = {{{style|}}}
+
   |cat={{{cat|{{{category|}}}}}}  
   |textstyle = {{{textstyle|}}}
+
   |all={{{all|}}}
   |text      = {{{text}}}
+
   |date={{{date|}}}
 +
}}{{Ambox/category
 +
   |cat={{{cat2|{{{category2|}}}}}}  
 +
   |all={{{all2|}}}
 +
  |date={{{date|}}}
 +
  }}{{Ambox/category
 +
  |cat={{{cat3|{{{category3|}}}}}}  
 +
   |all={{{all3|}}}
 +
  |date={{{date|}}}
 
  }}
 
  }}
}}{{cat handler
+
  |template={{#switch:Template:{{{name|}}}
  |main={{#if:{{{cat|}}}
+
   |{{FULLPAGENAME}} = [[Category:Article message templates]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
   |{{#if:{{{date|}}}
+
  |[[Category:Article message templates with missing parameters|{{#expr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}}}]]
  |[[Category:{{{cat}}} {{{preposition|from}}} {{{date}}}]]{{#ifexist:Category:{{{cat}}} {{{preposition|from}}} {{{date}}}|
+
  }}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}}
    |[[Category:Articles with invalid date parameter in template]]
+
   |[[Category:Article message templates with missing parameters|C]]
  }}
+
  |[[Category:{{#if:{{{undated|}}}
+
    |{{{undated}}}
+
    |{{{cat}}}
+
   }}]]
+
 
   }}
 
   }}
}}{{#if:{{{all|}}}
+
  |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}}
  |[[Category:{{{all}}}]]
+
 
  }}
 
  }}
|template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message boxes]]}}
 
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 
|{{documentation}}<!-- Transclude documentation on template page -->
 
 
}}<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>

Latest revision as of 13:40, 28 August 2013

50px Template documentation[view] [edit] [history] [purge]

This is the {{Ambox}} or Article message box meta-template.

Type preview

See also

50px Message box templates {{ambox}}{{asbox}}{{cmbox}}{{dmbox}}{{fmbox}}{{imbox}}{{ombox}}{{tmbox}}

Other pages:


Language: English