Difference between revisions of "Template:Ambox"

From AIE Wiki
Jump to: navigation, search
(whoops, should be THIS way round :D)
m (90 revisions)
 
(48 intermediate revisions by 17 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks ambox  
+
{{#ifeq:{{{subst}}}|SUBST
{{#switch:{{{type|}}}
+
|{{#if:{{{name|}}}
| speedy     = ambox-speedy
+
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
| serious    <!-- this value is **deprecated**, please don't use it! -->
+
}}[[Category:Pages with incorrectly substituted templates]]
| delete     = ambox-delete
+
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
| content   = ambox-content
+
|type = {{{type|}}}
| style     = ambox-style
+
|image = {{{image|}}}
| merge      <!-- this value is **deprecated**, please don't use it! -->
+
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
| move       = ambox-move
+
|imageright = {{{imageright|}}}
| protection = ambox-protection
+
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
| notice     <!-- notice = default -->
+
|class = ambox-{{#switch:{{{type|}}}
| #default   = ambox-notice
+
  |speedy = speedy
}}" style="{{{style|}}}">
+
  |delete = delete
<tr>
+
  |warning = warning
{{#ifeq:{{{image|}}}|none
+
  |content = content
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
+
  |style = style
| <td class="ambox-image"><div style="width: 52px;">
+
  |move = move
  {{#ifeq:{{{image|}}}|blank
+
  |protection = protection
   | &nbsp;
+
  |notice|#default = notice
   | {{#if:{{{image|}}}
+
}} {{{class|}}}
    | {{{image}}}
+
|style = {{{style|}}}
    | {{#switch:{{{type|}}}
+
|textstyle  = {{{textstyle|}}}
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
+
|smalltext  = {{{smalltext|}}}
      | serious    <!-- this value is **deprecated**, please don't use it! -->
+
|talk = {{#switch:{{{talk|¬}}}
      | delete    = [[Image:Ambox deletion.png|40x40px]]
+
  |¬        = <!-- No talk link used -->
      | content    = [[Image:Ambox content.png|40x40px]]
+
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
      | style      = [[Image:Ambox style.png|40x40px]]
+
  |#default = {{{talk}}}
      | merge      <!-- this value is **deprecated**, please don't use it! -->
+
}}
      | move      = [[Image:Ambox move.png|40x40px]]
+
|issue = {{#switch:{{{sect|¬}}}
      | protection = [[Image:Ambox protection.png|40x40px]]
+
  |¬ = <!-- No section parameter used -->
      | notice    <!-- notice = default -->
+
   | = This article
      | #default   = [[Image:Ambox notice.png|40x40px]]
+
   |This {{{sect}}}
      }}
+
}} {{{issue<includeonly>|</includeonly>}}} {{{text|}}}
    }}
+
|fix = {{{fix<includeonly>|</includeonly>}}}
   }}</div></td>
+
|date = {{#switch:{{{date|¬}}}
}}
+
  |¬        = <!-- No date used -->
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
  |         = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
{{#if:{{{imageright|}}}
+
  |#default = {{{date}}}
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
+
}}
}}
+
|info = {{{info|}}}
</tr>
+
}}{{Category handler
</table><noinclude>
+
|nocat={{{nocat|<noinclude>true</noinclude>}}}
 
+
|main={{Ambox/category
{{pp-template|small=yes}}
+
  |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>
 
{{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