Difference between revisions of "Template:Ambox"

From London Hackspace Wiki
Jump to navigation Jump to search
m (+css)
 
m (Reverted edits by 930913 (talk) to last revision by MSGJ)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<table style="margin:0px 10%;border: 1px solid #aaa;background:#fbfbfb; border-left:10px solid #f4c430;{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
+
{{#ifeq:{{{subst}}}|SUBST
   | serious  = ambox-serious
+
|{{#if:{{{name|}}}
   | content = ambox-content
+
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
   | style   = ambox-style
+
}}[[Category:Pages with incorrectly substituted templates]]
   | merge    = ambox-merge
+
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
   | notice  = ambox-notice
+
|type = {{{type|}}}
   | growth  = ambox-growth
+
|image = {{{image|}}}
   | #default = ambox-notice
+
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
}}">
+
|imageright = {{{imageright|}}}
<tr>
+
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
{{#ifeq:{{{image}}}|none
+
|class = ambox-{{#switch:{{{type|}}}
   | <!-- no image cell -->
+
   |speedy = speedy
   | <td class="ambox-image"> {{#switch:{{{image|{{{type|}}}}}}
+
  |delete = delete
    | 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
    | growth  = [[Image:Green plus icon.png]]
+
}} {{{class|}}}
    | blank    = <!-- empty image cell -->
+
|style = {{{style|}}}
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
+
|textstyle  = {{{textstyle|}}}
  }}</td>
+
|smalltext  = {{{smalltext|}}}
}}
+
|talk = {{#switch:{{{talk|¬}}}
<td>{{{text}}}</td>
+
   |¬        = <!-- No talk link used -->
{{#if:{{{imageright|}}}|
+
   |         = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
   <td class="ambox-imageright"> {{{imageright}}} </td>
+
   |#default = {{{talk}}}
}}
+
}}
</tr>
+
|issue = {{#switch:{{{sect|¬}}}
</table><noinclude>
+
  |¬ = <!-- No section parameter used -->
{{template doc}}
+
  |  = This article
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
+
  |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>

Latest revision as of 10:35, 29 April 2013

[create] Documentation icon Template documentation