Editing Template:Ambox/core

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
<table class="metadata plainlinks ambox {{{class|}}}" style="{{{style|}}}">
+
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}
<tr>{{#switch:{{{image|}}}
+
| left = mbox-small-left
|blank
+
}} {{#switch:{{{type|}}}
|none = <td class="mbox-empty-cell"></td>
+
| speedy     = ambox-speedy
|#default = <td class="mbox-image"><div style="width: 52px;">{{#if:{{{image|}}}
+
| delete     = ambox-delete
  |{{{image}}}
+
| content   = ambox-content
  |[[File:{{#switch:{{{type|}}}
+
| style     = ambox-style
  |speedy = Ambox speedy deletion.png
+
| move       = ambox-move
  |delete = Ambox deletion.png
+
| protection = ambox-protection
  |content = Ambox content.png
+
| notice     <!-- notice = default -->
  |style = Edit-clear.svg
+
| #default   = ambox-notice
  |move = Ambox move.png
+
}} {{{class|}}}" style="{{{style|}}}">
  |protection = Ambox protection.png
+
<tr>
  |notice|#default = Ambox notice.png
+
{{#switch:{{{image|}}}
  }}|40x40px|link=|alt=]]
+
| blank    <!-- Fall back to "none", since deprecated. -->
}}</div></td>
+
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
}}<td class="mbox-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}<span class="hide-when-compact"> {{#if:{{{talk|}}}
+
| #default =
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
+
  <td class="mbox-image">{{
  |{{{talk}}}
+
  #switch:{{{small|}}}
  |{{TALKPAGENAME}}
+
  | left = <!-- Don't use the DIV -->
 +
  | #default = <div style="width: 52px;">
 
   }}
 
   }}
   |&#32;Relevant discussion may be found on {{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
+
   {{#if:{{{image|}}}
  |[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]]
+
  | {{{image}}}
  |the [[{{TALKPAGENAME}}#{{{talk}}}|talk page]]
+
  | [[File:{{#switch:{{{type|}}}
   }}.
+
    | speedy    = Ambox speedy deletion.png
}}
+
    | delete    = Ambox deletion.png
}} {{{fix|}}}</span>{{#if:{{{date|}}}
+
    | content    = Ambox content.png
  |&#32;<small>''({{{date}}})''</small>
+
    | style      = Edit-clear.svg
}}<span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}}
+
    | move      = Ambox move.png
|none =
+
    | protection = Ambox protection.png
|=
+
    | notice          <!-- notice = default -->
|#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td>
+
    | #default  = Ambox notice.png
}}</tr></table>
+
    }} | {{#switch:{{{small|}}}  
 +
      | left = 20x20px
 +
      | #default = 40x40px
 +
      }} |link=|alt=]]
 +
  }}{{#switch:{{{small|}}}
 +
  | left = <!-- Don't use the /DIV -->
 +
   | #default = </div>
 +
  }}</td>
 +
}}
 +
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} {{#if:{{{date|}}}
 +
  |<small>''({{{date}}})''</small>
 +
}}</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:TZMWiki message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}<!--
 +
Detect and report usage of deprecated "image=blank":
 +
-->{{#switch:{{{image|}}}
 +
| blank = [[Category:TZMWiki message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}<noinclude>
 +
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Please note that all contributions to The Crowdsourced Resource-Based Economy Knowledgebase are considered to be released under the Creative Commons Zero (Public Domain) (see RBEMWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Share