Difference between revisions of "Template:Ambox"

From AIE Wiki
Jump to: navigation, search
m (slight change to categorisation of ambox templates)
m (90 revisions)
 
(13 intermediate revisions by 7 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
   |class      = {{{class|}}}
+
  |move = move
  |style     = {{{style|}}}
+
  |protection = protection
  |textstyle  = {{{textstyle|}}}
+
  |notice|#default = notice
  |text      = {{#if:{{{smalltext|}}}
+
}} {{{class|}}}
  |{{{smalltext}}}
+
|style = {{{style|}}}
  |{{{text}}}  
+
|textstyle  = {{{textstyle|}}}
   }}
+
|smalltext  = {{{smalltext|}}}
 +
|talk = {{#switch:{{{talk|¬}}}
 +
  |¬        = <!-- No talk link used -->
 +
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
 +
   |#default = {{{talk}}}
 
  }}
 
  }}
  |{{Ambox/core
+
  |issue = {{#switch:{{{sect|¬}}}
  |type      = {{{type|}}}
+
  |¬ = <!-- No section parameter used -->
  |image      = {{{image|}}}
+
  | = This article
  |imageright = {{{imageright|}}}
+
  |This {{{sect}}}
  |class      = {{{class|}}}
+
}} {{{issue<includeonly>|</includeonly>}}} {{{text|}}}
  |style      = {{{style|}}}
+
|fix = {{{fix<includeonly>|</includeonly>}}}
  |textstyle  = {{{textstyle|}}}
+
|date = {{#switch:{{{date|¬}}}
  |text      = {{{text}}}{{#switch:{{{talk|¬}}}
+
  |¬        = <!-- No date used -->
        = <!-- No talk link used -->
+
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
  |         = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|&#32;More details and relevant discussion can be found on the [[{{TALKPAGENAME}}|talk page]].}}
+
  |#default = {{{date}}}
  |#default = &#32;More details and relevant discussion can be found on {{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
+
    |[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]]
+
    |the [[{{TALKPAGENAME}}#{{{talk}}}|talk page]]
+
  }}.
+
  }}{{#switch:{{{date|¬}}}
+
  |¬        = <!-- No date used -->
+
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|&#32;<small>''({{CURRENTMONTHNAME}} {{CURRENTYEAR}})''</small>}}
+
  |#default = &#32;<small>''({{{date}}})''</small>
+
  }}
+
 
  }}
 
  }}
 +
|info = {{{info|}}}
 
}}{{Category handler
 
}}{{Category handler
 +
|nocat={{{nocat|<noinclude>true</noinclude>}}}
 
  |main={{Ambox/category
 
  |main={{Ambox/category
 
   |cat={{{cat|{{{category|}}}}}}  
 
   |cat={{{cat|{{{category|}}}}}}  
Line 57: Line 54:
 
   |date={{{date|}}}
 
   |date={{{date|}}}
 
  }}
 
  }}
  |template={{#ifeq:{{FULLPAGENAME}}|Template:{{{name}}}
+
  |template={{#switch:Template:{{{name|}}}
  | [[Category:Article message templates]]
+
  |{{FULLPAGENAME}} = [[Category:Article message templates]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
  |{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|<!--We are on a rootpage, not a /doc or /sandbox page-->{{#ifeq:{{{nocat|}}}|true
+
  |[[Category:Article message templates with missing parameters|{{#expr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}}}]]
    | <!--Don't categorise-->
+
  }}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}}
    | [[Category:Article message boxes|{{BASEPAGENAME}}]]
+
  |[[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>

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