Difference between revisions of "Template:Ambox/core"

From blackwiki
Jump to navigation Jump to search
blackwiki>Happy-melon
(core breakout)
 
m (31 revisions imported)
 
(30 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}|left=mbox-small-left}}
+
<table class="metadata plainlinks ambox {{{class|}}}" style="{{{style|}}}" role="presentation">
{{#switch:{{{type|}}}
+
<tr>{{#switch:{{{image|}}}
| speedy    = ambox-speedy
+
|blank
| delete    = ambox-delete
+
  |none = <td class="mbox-empty-cell"></td>
| content    = ambox-content
+
  |#default = <td class="mbox-image"><div style="width: 52px;">{{#if:{{{image|}}}
| style      = ambox-style
+
  |{{{image}}}
| move      = ambox-move
+
  |[[File:{{#switch:{{{type|}}}
| protection = ambox-protection
+
  |speedy = Ambox speedy deletion.png
| notice    <!-- notice = default -->
+
  |delete = Ambox deletion.png
| #default  = ambox-notice
+
  |content = Ambox content.png
}}" style="{{{style|}}}">
+
  |style = Edit-clear.svg
<tr>
+
  |move = Ambox move.png
{{#ifeq:{{{image|}}}|none
+
  |protection = Ambox protection.png
  | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->{{td}}
+
  |notice|#default = Ambox notice.png
  | <td class="mbox-image"><div style="width: 52px;">
+
  }}|40x40px|link=|alt=]]
  {{#ifeq:{{{image|}}}|blank
+
}}</div></td>
    | &nbsp;
+
}}<td class="mbox-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}<span class="hide-when-compact"> {{#if:{{{talk|}}}
    | {{#if:{{{image|}}}
+
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
      | {{{image}}}
+
  |{{{talk}}}
      | {{#switch:{{{type|}}}
+
  |{{TALKPAGENAME}}
          | speedy     = [[Image:Ambox speedy deletion.png|40x40px]]
 
          | delete     = [[Image:Ambox deletion.png|40x40px]]
 
          | content   = [[Image:Ambox content.png|40x40px]]
 
          | style     = [[Image:Ambox style.png|40x40px]]
 
          | move       = [[Image:Ambox move.png|40x40px]]
 
          | protection = [[Image:Ambox protection.png|40x40px]]
 
          | notice     <!-- notice = default -->
 
          | #default   = [[Image:Ambox notice.png|40x40px]]
 
        }}
 
      }}
 
  }}</div></td>
 
}}
 
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
| {{#ifeq:{{{imageright|}}}|none
 
  | <!-- No image. -->
 
  | <td class="mbox-imageright"> {{{imageright}}} </td>
 
 
   }}
 
   }}
}}
+
  |&#32;Relevant discussion may be found on {{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
</tr>
+
  |[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]]
</table><!-- Detect and report usage with faulty "type" parameter:
+
  |the [[{{TALKPAGENAME}}#{{{talk}}}|talk page]]
-->{{#switch:{{{type|}}}
+
  }}.
|   <!-- No type fed, is also valid input -->
+
}}
| speedy
+
}} {{{fix|}}}</span>{{#if:{{{date|}}}
| delete
+
|&#32;<small>''({{{date}}})''</small>
| content
+
}}<span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}}
| style
+
|none =
| move
+
|=
| protection
+
|#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td>
| notice    = <!-- Do nothing, valid "type" -->
+
}}</tr></table><noinclude>
| #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 -->
+
{{documentation}}
}}<noinclude>
 
 
 
{{pp-template|small=yes}}
 
{{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}}.