Difference between revisions of "Template:Ambox"

From ALFA
Jump to: navigation, search
Line 1: Line 1:
−
{{#ifeq:{{{subst}}}|SUBST
+
<table style="width: 80%; margin: 0 auto; border-collapse: collapse; background: #fbfbfb; border: 1px solid #aaa; border-left: 10px solid #1e90ff; {{#switch:{{{type|}}}
−
|{{#if:{{{name|}}}
+
   | serious  = border-left: 10px solid #b22222;
−
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
+
   | content = border-left: 10px solid #f28500;
−
}}[[Category:Pages with incorrectly substituted templates]]
+
   | style   = border-left: 10px solid #f4c430;
−
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
+
   | merge    = border-left: 10px solid #9932cc;
−
|type = {{{type|}}}
+
   | notice  = border-left: 10px solid #bba;
−
|image = {{{image|}}}
+
   | #default = border-left: 10px solid #bba;
−
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
+
}}" class="plainlinks">
−
|imageright = {{{imageright|}}}
+
<tr>
−
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
+
<td style="padding: 2px 0px 2px 0.5em; text-align: center;">
−
|class = ambox-{{#switch:{{{type|}}}
+
{{#ifeq:{{{image}}}|none
−
   |speedy = speedy
+
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
−
  |delete = delete
+
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
−
  |warning = warning
+
    | serious = [[Image:Stop hand nuvola.svg|40px]]
−
   |content = content
+
    | content = [[Image:Emblem-important.svg|40px]]
−
   |style = style
+
    | style    = [[Image:Broom icon.svg|40px]]
−
   |move = move
+
    | merge    = [[Image:Merge-split-transwiki default.svg]]
−
   |protection = protection
+
    | notice   = [[Image:Info non-talk.png|40px]]
−
   |notice|#default = notice
+
    | blank    = [[Image:No image.svg]]
−
}} {{{class|}}}
+
    | #default = {{{image|[[Image:Info non-talk.svg|40px]]}}}
−
|style = {{{style|}}}
+
   }}</div>
−
|textstyle  = {{{textstyle|}}}
+
}}</td>
−
|smalltext  = {{{smalltext|}}}
+
<td style="padding: 0.25em 0.25em 0.25em 0.5em; width: 100%;">{{{text}}}</td>
−
|talk = {{#switch:{{{talk|¬}}}
+
{{#if:{{{imageright|}}}|
−
  |¬        = <!-- No talk link used -->
+
  <td style="padding: 2px 4px 2px 0px; text-align: center;"><div style="width:52px;"> {{{imageright}}} </div></td>
−
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
+
}}
−
  |#default = {{{talk}}}
+
</tr>
−
}}
+
</table><noinclude>
−
|issue = {{#switch:{{{sect|¬}}}
+
{{/doc}}
−
   |¬ = <!-- No section parameter used -->
+
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
−
   | = 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>
 
−
{{Documentation}}
 
−
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Revision as of 08:36, 23 January 2014

Template:Ambox/doc