Difference between revisions of "Template:Ambox"

From AIE Wiki
Jump to: navigation, search
(remove category sortkey which is now the default after bugzilla:16552)
m (90 revisions)
 
(36 intermediate revisions by 14 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|}}}
 +
|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|}}}
+
{{Documentation}}
  | imageright = {{{imageright|}}}
+
  | style      = {{{style|}}}
+
  | textstyle  = {{{textstyle|}}}
+
  | text      = {{{text}}}
+
  }}
+
}}<!--
+
 
+
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
+
 
+
--><noinclude>
+
 
+
{{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