Difference between revisions of "Template:Ambox/core"

From blackwiki
Jump to navigation Jump to search
blackwiki>Davidgothberg
m (Protected Template:Ambox/core: Highly visible template: Now plugging this into {{ambox}}, thus will be visible on 300,000+ pages. ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
m (31 revisions imported)
 
(20 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}
+
<table class="metadata plainlinks ambox {{{class|}}}" style="{{{style|}}}" role="presentation">
| left = mbox-small-left
+
<tr>{{#switch:{{{image|}}}
}} {{#switch:{{{type|}}}
+
|blank
| speedy     = ambox-speedy
+
|none = <td class="mbox-empty-cell"></td>
| delete     = ambox-delete
+
|#default = <td class="mbox-image"><div style="width: 52px;">{{#if:{{{image|}}}
| content   = ambox-content
+
  |{{{image}}}
| style     = ambox-style
+
  |[[File:{{#switch:{{{type|}}}
| move       = ambox-move
+
  |speedy = Ambox speedy deletion.png
| protection = ambox-protection
+
  |delete = Ambox deletion.png
| notice     <!-- notice = default -->
+
  |content = Ambox content.png
| #default  = ambox-notice
+
  |style = Edit-clear.svg
}}" style="{{#switch:{{{small|}}}
+
  |move = Ambox move.png
| left = margin: 4px 1em 4px 0; width: 238px; border-collapse: collapse; font-size: 88%; line-height: 1.25em;
+
  |protection = Ambox protection.png
}} {{{style|}}}">
+
  |notice|#default = Ambox notice.png
<tr>
+
   }}|40x40px|link=|alt=]]
{{#ifeq:{{{image|}}}|none
+
}}</div></td>
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell" style="border: none; padding: 0px; width: 1px;"></td>
+
}}<td class="mbox-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}<span class="hide-when-compact"> {{#if:{{{talk|}}}
| <td class="mbox-image">{{#switch:{{{small|}}}
+
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
  | left = <!-- Don't use the DIV -->
+
  |{{{talk}}}
  | #default = <div style="width: 52px;">
+
  |{{TALKPAGENAME}}
 
   }}
 
   }}
   {{#if:{{{image|}}}
+
   |&#32;Relevant discussion may be found on {{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
  | {{{image}}}
+
  |[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]]
  | [[Image:{{#switch:{{{type|}}}
+
  |the [[{{TALKPAGENAME}}#{{{talk}}}|talk page]]
    | speedy    = Ambox speedy deletion.png
+
   }}.
    | delete    = Ambox deletion.png
+
}}
    | content    = Ambox content.png
+
}} {{{fix|}}}</span>{{#if:{{{date|}}}
    | style      = Ambox style.png
+
|&#32;<small>''({{{date}}})''</small>
    | move      = Ambox move.png
+
}}<span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}}
    | protection = Ambox protection.png
+
|none =
    | notice          <!-- notice = default -->
+
|=
    | #default  = Ambox notice.png
+
|#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td>
    }} | {{#switch:{{{small|}}}  
+
}}</tr></table><noinclude>
      | left = 20x20px
+
{{documentation}}
      | #default = 40x40px
 
      }} ]]
 
  }}{{#switch:{{{small|}}}
 
  | left = <!-- Don't use the /DIV -->
 
  | #default = </div>
 
   }}</td>
 
}}
 
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
| {{#ifeq:{{{imageright|}}}|none
 
  | <!-- No image. -->
 
  | <td class="mbox-imageright">{{#switch:{{{small|}}}
 
    | left = {{{imageright}}}
 
    | #default = <div style="width: 52px;"> {{{imageright}}} </div>
 
    }}</td>
 
  }}
 
}}
 
</tr>
 
</table><!-- Detect and report usage with faulty "type" parameter:
 
-->{{#switch:{{{type|}}}
 
|   <!-- No type fed, is also valid input -->
 
| speedy
 
| delete
 
| content
 
| style
 
| move
 
| protection
 
| notice    = <!-- Do nothing, valid "type" -->
 
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
}}<noinclude>
 
 
 
{{Documentation}}
 
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 13:15, 20 October 2020

Template documentation[view] [edit] [history] [purge]

This is the former sub-template of {{Ambox}}.