close
Sayahna Sayahna
Search

Difference between revisions of "Template:Ambox"


(Created page with "{{#ifeq:{{{subst}}}|SUBST |{{#if:{{{name|}}} |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}} }}[[Category:Pages with incorrectly substituted template...")
 
Line 1: Line 1:
{{#ifeq:{{{subst}}}|SUBST
+
<table class="metadata plainlinks ambox {{#switch:{{{type|}}}
|{{#if:{{{name|}}}
+
  |speedy = ambox-speedy
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
+
  |delete = ambox-delete
  }}[[Category:Pages with incorrectly substituted templates]]
+
  |serious = ambox-serious
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
+
  |content = ambox-content
|type = {{{type|}}}
+
  |style = ambox-style
  |image = {{{image|}}}
+
  |merge = ambox-move
  |smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
+
|move = ambox-move
  |imageright = {{{imageright|}}}
+
|protection = ambox-protection
  |smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
+
|notice = ambox-notice
  |class = ambox-{{#switch:{{{type|}}}
+
|#default = ambox-notice
  |speedy = speedy
+
}} {{{class|}}}" style="{{{style|display:table}}};">
  |delete = delete
+
<tr>
  |content = content
+
{{#switch:{{{image|}}}
  |style = style
+
  |blank = <td class="mbox-image"><div style="width:52px;">&#160;</div></td>
  |move = move
+
  |none = <td class="mbox-empty-cell"></td>
  |protection = protection
+
  |#default = <td class="mbox-image"><div style="width:52px;">{{#if:{{{image|}}}
  |notice|#default = notice
+
   |{{{image}}}
}} {{{class|}}}
+
  |[[File:{{#switch:{{{type|}}}
|style = {{{style|}}}
+
  |speedy = Ambox speedy deletion.png
|textstyle  = {{{textstyle|}}}
+
  |delete = Ambox deletion.png
|smalltext  = {{{smalltext|}}}
+
  |serious = Stop hand nuvola.svg
|talk = {{#switch:{{{talk|¬}}}
+
  |content = Ambox content.png
  |¬        = <!-- No talk link used -->
+
  |style = Edit-clear.svg
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
+
  |merge = Merge-arrows.svg
  |#default = {{{talk}}}
+
  |move = Merge-split-transwiki default.svg
}}
+
  |protection = Ambox protection.png
  |issue = {{#switch:{{{sect|¬}}}
+
  |notice
  |¬ = <!-- No section parameter used -->
+
  |#default = Ambox notice.png
  |  = This article
+
   }}|40x40px|link=|alt=]]
  |This {{{sect}}}
+
  }}</div></td>
}} {{{issue<includeonly>|</includeonly>}}} {{{text|}}}
+
}}
  |fix = {{{fix<includeonly>|</includeonly>}}}
+
<td class="mbox-text" style="{{{textstyle|display:table-cell}}};">{{{text}}}{{#if:{{{lang|}}}|
  |date = {{#switch:{{{date|¬}}}
+
<hr />
  |¬        = <!-- No date used -->
+
{{{{{lang|}}}}}}}</td>
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
+
{{#if:{{{imageright|}}}
   |#default = {{{date}}}
+
| {{#ifeq:{{{imageright|}}}|none
}}
+
  | <!-- No image. --><td class="mbox-empty-cell"></td>
|info = {{{info|}}}
+
   | <td class="mbox-imageright"><div style="width:52px;">{{{imageright}}}</div></td>
}}{{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]]}}
+
}}
}}
+
</tr>
}}<noinclude>
+
</table><noinclude>
{{Documentation}}
+
{{template doc}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 00:44, 1 September 2013

Documentation icon Template documentation[create]