Template:Ambox: Difference between revisions

From RadioWiki
Jump to navigation Jump to search
m (1 revision)
No edit summary
Line 1: Line 1:
<table style="{{{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|}}}
   | #default = ambox-notice
|image = {{{image|}}}
}}">
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
<tr>
|imageright = {{{imageright|}}}
<td class="ambox-image">
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
{{#ifeq:{{{image}}}|none
|class = ambox-{{#switch:{{{type|}}}
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
   |speedy = speedy
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
  |delete = delete
    | serious = [[Image:Stop.png|40px]]
   |content = content
    | content = [[Image:Important.png|40px]]
   |style = style
    | style    = [[Image:Broom.png|40px]]
   |move = move
    | merge    = [[Image:Merge-split.png|40px]]
   |protection = protection
    | notice   = [[Image:Info.png|40px]]
   |notice|#default = notice
    | blank    = [[Image:No image.png]]
}} {{{class|}}}
    | #default = {{{image|[[Image:Info.png|40px]]}}}
|style = {{{style|}}}
  }}</div>
|textstyle  = {{{textstyle|}}}
}}</td>
|smalltext  = {{{smalltext|}}}
<td class="ambox-text">{{{text}}}</td>
|talk = {{#switch:{{{talk|¬}}}
<td class="ambox-image">{{#if:{{{imageright|}}}|<div style="width:52px;">{{{imageright}}}</div>}}</td>
  |¬        = <!-- No talk link used -->
</tr>
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
</table><noinclude>
   |#default = {{{talk}}}
{{template doc}}
}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
|issue = {{#switch:{{{sect|¬}}}
  |¬ = <!-- No section parameter used -->
   | = 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 17:36, 28 October 2012