Difference between revisions of "Template:Ambox"

From AIE Wiki
Jump to: navigation, search
(Deploying the "small=left" feature, thus now using {{ambox/core}}. Tested in /sandbox and discussed in many places, see talk page.)
m (90 revisions)
 
(39 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{#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|}}}
+
  |warning = warning
  | textstyle  = {{{textstyle|}}}
+
  |content = content
   | text      = {{#if:{{{smalltext|}}}
+
   |style = style
                | {{{smalltext}}}  
+
  |move = move
                | {{{text}}}  
+
  |protection = protection
                }}
+
  |notice|#default = notice
   }}
+
}} {{{class|}}}
| #default =  
+
|style = {{{style|}}}
   {{ambox/core
+
|textstyle  = {{{textstyle|}}}
   | type      = {{{type|}}}
+
|smalltext  = {{{smalltext|}}}
   | image      = {{{image|}}}
+
|talk = {{#switch:{{{talk|¬}}}
   | imageright = {{{imageright|}}}
+
   |¬        = <!-- No talk link used -->
   | style      = {{{style|}}}
+
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
   | textstyle = {{{textstyle|}}}
+
  |#default = {{{talk}}}
   | text      = {{{text}}}
+
}}
 +
|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]]
 
   }}
 
   }}
 +
  |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}}
 +
}}
 
}}<noinclude>
 
}}<noinclude>
 
+
{{Documentation}}
{{pp-template}}
+
{{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