Difference between pages "Template:Ambox" and "Template:Ambox/core"

From Harding Wiki
(Difference between pages)
Jump to navigationJump to search
Page 1
Page 2
(Created page with '{{#ifeq:{{{subst}}}|SUBST |{{#if:{{{name|}}} |{{error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}} }}[[Category:Pages with incorrectly substituted template...')
 
(Created page with '<table class="metadata plainlinks ambox {{#switch:{{{small|}}} | left = mbox-small-left }} {{#switch:{{{type|}}} | speedy = ambox-speedy | delete = ambox-delete | content...')
 
Line 1: Line 1:
{{#ifeq:{{{subst}}}|SUBST
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}
|{{#if:{{{name|}}}
| left = mbox-small-left
  |{{error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
}} {{#switch:{{{type|}}}
}}[[Category:Pages with incorrectly substituted templates]]
| speedy    = ambox-speedy
}}{{#ifeq:{{{small}}}|left
| delete    = ambox-delete
|{{Ambox/core
| content    = ambox-content
  |small      = left
| style      = ambox-style
   |type      = {{{type|}}}
| move      = ambox-move
   |image      = {{#if:{{{smallimage|}}}
| protection = ambox-protection
  |{{{smallimage}}}
| notice    <!-- notice = default -->
  |{{{image|}}}
| #default  = ambox-notice
}}" style="{{{style|}}}">
<tr>
{{#switch:{{{image|}}}
| blank    <!-- Fall back to "none", since deprecated. -->
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| #default =  
   <td class="mbox-image">{{
   #switch:{{{small|}}}
  | left = <!-- Don't use the DIV -->
  | #default = <div style="width: 52px;">
   }}
   }}
   |imageright = {{#if:{{{smallimageright|}}}
   {{#if:{{{image|}}}
  |{{{smallimageright}}}
  | {{{image}}}
  |{{{imageright|}}}
  | [[File:{{#switch:{{{type|}}}
    | speedy    = Ambox speedy deletion.png
    | delete    = Ambox deletion.png
    | content    = Ambox content.png
    | style      = Edit-clear.svg
    | move      = Ambox move.png
    | protection = Ambox protection.png
    | notice          <!-- notice = default -->
    | #default  = Ambox notice.png
    }} | {{#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>
   }}
   }}
  |style      = {{{style|}}}
}}
  |textstyle  = {{{textstyle|}}}
</tr>
  |text      = {{#if:{{{smalltext|}}}
</table><!--
  |{{{smalltext}}}
Detect and report usage with faulty "type" parameter:
  |{{{text}}}
-->{{#switch:{{{type|}}}
  }}
|   <!-- No type fed, is also valid input -->
}}
| speedy
|{{Ambox/core
| delete
  |type      = {{{type|}}}
| content
  |image      = {{{image|}}}
| style
  |imageright = {{{imageright|}}}
| move
   |style      = {{{style|}}}
| protection
  |textstyle  = {{{textstyle|}}}
| notice    = <!-- Do nothing, valid "type" -->
  |text       = {{{text}}}
| #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 -->
  |date      = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
}}<!--
  |{{#ifeq:{{{date|¬}}}|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
Detect and report usage of deprecated "image=blank":
  |{{{date|}}}
-->{{#switch:{{{image|}}}
  }}
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}
}}{{cat handler
|main={{ambox/category
  |cat={{{cat|{{{category|}}}}}}
  |date={{{date|}}}
  |all={{{all|}}}
}}
|template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message boxes]]}}
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
|{{#ifeq:{{{doc}}}|no|
  |{{documentation}}<!-- Transclude documentation on template page -->
}}
}}<noinclude>
}}<noinclude>
 
{{documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>