Template:Ambox View history

(Created page with "<!--{{Ambox}} begin-->{{#ifeq:{{{subst}}}|SUBST |{{#if:{{{name|}}} |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}} }}Category:Pages with incorre...")
 
m (updated category)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--{{Ambox}} begin-->{{#ifeq:{{{subst}}}|SUBST
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}
|{{#if:{{{name|}}}
| left = mbox-small-left
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
}}" style="margin:2px 10%;border:1px solid #AAAAAA;{{#if:{{{stacked|}}}|margin-top:-3px;}}{{#switch: {{{type|}}}
}}[[Category:Pages with incorrectly substituted templates]]
| danger    = background:#FFAAAA;border-left:10px #B22222 solid;
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
| warning    = background:#FFDDDD;border-left:10px #B22222 solid;
|type = {{{type|}}}
| caution    = background:#FFFFAA;border-left:10px #F28500 solid;
|image = {{{image|}}}
| approval   = background:#DDFFDD;border-left:10px #00FF00 solid;
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
| proposal   = background:#E4D8FF;border-left:10px #9933CC solid;
|imageright = {{{imageright|}}}
| detail    = background:#FBFBFB;border-left:10px #F4C430 solid;
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
| protection = background:#FBFBFB;border-left:10px #BBBBAA solid;
|class = ambox-{{#switch:{{{type|}}}
| notice<!-- = default -->
  |speedy = speedy
| #default   = background:#FBFBFB;border-left:10px #1E90FF solid;
   |delete = delete
}}{{{style|}}}"><tr>
  |content = content
{{#switch:{{{image|}}}
   |style = style
| blank      <!-- Fall back to "none", since deprecated. -->
  |move = move
| none    =
  |protection = protection
   <td class="mbox-empty-cell" style="width:1px;border:none;padding:0;"></td><!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
  |notice|#default = notice
| #default =  
}} {{{class|}}}
  <td class="mbox-image" style="border:none;padding:2px 0 2px 0.9em;text-align:center;">{{#switch:{{{small|}}}
|style = {{{style|}}}
   | left    = <!-- Don't use the DIV -->
|textstyle  = {{{textstyle|}}}
   | #default = <div style="width:52px;">
|smalltext  = {{{smalltext|}}}
   }}{{#if:{{{image|}}}
|talk = {{#switch:{{{talk|¬}}}
  | {{{image}}}
  |¬        = <!-- No talk link used -->
  | [[Image:{{#switch:{{{type|}}}
   |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
    | danger    = Ambox warning pn.svg{{!}}Danger
  |#default = {{{talk}}}
    | warning    = Ambox warning pn.svg{{!}}Warning
}}
    | caution    = Ambox important.svg{{!}}Caution
|issue = {{#switch:{{{sect|¬}}}
    | approval   = Thumb up icon.svg{{!}}Approved
   |¬ = <!-- No section parameter used -->
    | proposal  = Ambox warning purple.svg{{!}}Proposal
   | = This article
    | detail    = Broom icon.svg{{!}}Detail
   |This {{{sect}}}
    | protection = Ambox protection.png{{!}}Protection
}} {{{issue<includeonly>|</includeonly>}}} {{{text|}}}
    | notice<!-- = default -->
|fix = {{{fix<includeonly>|</includeonly>}}}
    | #default   = Information icon4.svg{{!}}Information
|date = {{#switch:{{{date|¬}}}
    }}|{{#switch:{{{small|}}}  
  |¬        = <!-- No date used -->
    | left    = 20x20px
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
    | #default = 40x40px
   |#default = {{{date}}}
    }}|link=]]
}}
   }}{{#switch:{{{small|}}}
|info = {{{info|}}}
  | left    = <!-- Don't use the /DIV -->
}}{{Category handler
  | #default = </div>
|nocat={{{nocat|<noinclude>true</noinclude>}}}
  }}</td>
|1={{Ambox/category
}}
  |cat={{{cat|{{{category|}}}}}}  
<td class="mbox-text" style="width:100%;border:none;padding:0.25em 0.9em;text-align:center;{{{textstyle|}}}">{{#if:{{{edit|}}}
  |all={{{all|}}}
| <div style="float:right">{{Edit|{{{edit|}}}}}</div>
   |date={{{date|}}}
}}{{{text|}}}</td>
}}{{Ambox/category
{{#if:{{{imageright|}}}
  |cat={{{cat2|{{{category2|}}}}}}  
| {{#ifeq:{{{imageright|}}}|none
  |all={{{all2|}}}
  | <!-- No image. -->
  |date={{{date|}}}
  | <td class="mbox-imageright" style="border:none;padding:2px 0.9em 2px 0;text-align:center;">{{#switch:{{{small|}}}
}}{{Ambox/category
    | left    = {{{imageright|}}}
   |cat={{{cat3|{{{category3|}}}}}}
    | #default = <div style="width:{{{imagerightwidth|52}}}px;">{{{imageright|}}}</div>
  |all={{{all3|}}}
    }}</td>
  |date={{{date|}}}
}}
|main=1
|help=1
|wikipedia=1
|talk=<!--none-->
|other=<!--none-->
|template={{#switch:Template:{{{name|}}}
  |{{FULLPAGENAME}} = [[Category:Article message boxes]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
  |[[Category:Message boxes with errors|{{#expr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}}}]]
  }}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}}
  |[[Category:Message boxes with errors|C]]
   }}
   }}
  |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Message boxes with errors]]}}
}}
}}
</tr></table><noinclude>[[Category:Ambox derived works|{{PAGENAME}}]]{{Documentation}}</noinclude><noinclude>[[Category:Templates not transcluded as of 2016-08]]</noinclude>
}}<!--{{Ambox}} end--><noinclude>
{{documentation}}{{nobots}}<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 04:27, 7 May 2017

Documentation icon Template documentation[create]
Please add categories to the /doc subpage.
Subpages of this template.