Difference between revisions of "Template:Ambox/core"

From blackwiki
Jump to navigation Jump to search
blackwiki>Happy-melon
(image sizing)
m (31 revisions imported)
 
(28 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 = Edit-clear.svg
 
+
  |move = Ambox move.png
 
+
  |protection = Ambox protection.png
-->{{#switch:{{{small|}}}|left=margin:4px 1em 4px 0; width:238px; border-collapse:collapse; font-size: 88%; line-height:1.25em;}}<!--
+
  |notice|#default = Ambox notice.png
 
+
  }}|40x40px|link=|alt=]]
 
+
}}</div></td>
-->{{{style|}}}">
+
}}<td class="mbox-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}<span class="hide-when-compact"> {{#if:{{{talk|}}}
<tr>
+
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
{{#ifeq:{{{image|}}}|none
+
  |{{{talk}}}
  | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->{{td}}
+
  |{{TALKPAGENAME}}
  | <td class="mbox-image">{{#switch: {{{small|}}} | left=<!--nothing--> | <div style="width:52px;"> }}
 
{{#if:{{{image|}}}
 
   | {{{image}}}
 
   | [[Image:{{#switch:{{{type|}}}
 
    | speedy     = Ambox speedy deletion.png
 
    | delete     = Ambox deletion.png
 
    | content   = Ambox content.png
 
    | style     = Ambox style.png
 
    | move       = Ambox move.png
 
    | protection = Ambox protection.png
 
    | notice         <!-- notice = default -->
 
    | #default   = Ambox notice.png
 
    }} | {{#switch: {{{small|}}} | left=20x20px | 40x40px }} ]]
 
  }}{{#switch: {{{small|}}} | left=<!--nothing--> | </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}}.