Difference between revisions of "Template:Csb-pageincludes/confirmation"

From blackwiki
Jump to navigation Jump to search
imported>Ebe123
(start)
 
imported>Ebe123
(subst)
Line 4: Line 4:
 
  }}[[Category:Pages with incorrectly substituted templates]]
 
  }}[[Category:Pages with incorrectly substituted templates]]
 
}}{{#ifeq:{{{small}}}|left
 
}}{{#ifeq:{{{small}}}|left
  |{{Ambox/core
+
  |<table class="metadata plainlinks ambox {{#switch:left
  |small      = left
+
| left = mbox-small-left
  |type       = notice
+
}} {{#switch:notice
   |image      = {{#if:
+
| speedy    = ambox-speedy
 +
| delete    = ambox-delete
 +
| content    = ambox-content
 +
| style     = ambox-style
 +
| move       = ambox-move
 +
| protection = ambox-protection
 +
| notice     <!-- notice = default -->
 +
| #default   = ambox-notice
 +
}}" style="">
 +
<tr>
 +
{{#switch:{{#if:
 
   |{{{smallimage}}}
 
   |{{{smallimage}}}
 
   |[[Image:Artículo_bueno.svg|50px|alt=|link=]]
 
   |[[Image:Artículo_bueno.svg|50px|alt=|link=]]
 
   }}
 
   }}
   |imageright = {{#if:
+
| 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:left
 +
  | left = <!-- Don't use the DIV -->
 +
  | #default = <div style="width: 52px;">
 +
  }}
 +
  {{#if:{{#if:
 +
  |{{{smallimage}}}
 +
  |[[Image:Artículo_bueno.svg|50px|alt=|link=]]
 +
  }}
 +
  | {{#if:
 +
  |{{{smallimage}}}
 +
  |[[Image:Artículo_bueno.svg|50px|alt=|link=]]
 +
  }}
 +
  | [[File:{{#switch:notice
 +
    | 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:left
 +
      | left = 20x20px
 +
      | #default = 40x40px
 +
      }} |link=|alt=]]
 +
  }}{{#switch:left
 +
   | left = <!-- Don't use the /DIV -->
 +
  | #default = </div>
 +
  }}</td>
 +
}}
 +
<td class="mbox-text" style=""> {{#if:
 +
  |{{{smalltext}}}
 +
  |This has been confirmed as an copyright infringement.
 +
  }} {{#if:
 +
|<small>''({{{date}}})''</small>
 +
}}</td>
 +
{{#if:{{#if:
 
   |{{{smallimageright}}}
 
   |{{{smallimageright}}}
 
   |
 
   |
 
   }}
 
   }}
   |style     =  
+
| {{#ifeq:{{#if:
   |textstyle =  
+
  |{{{smallimageright}}}
   |text       = {{#if:
+
  |
   |{{{smalltext}}}  
+
   }}|none
  |This has been confirmed as an copyright infringement.  
+
  | <!-- No image. -->
 +
  | <td class="mbox-imageright">{{#switch:left
 +
    | left = {{#if:
 +
  |{{{smallimageright}}}
 +
  |
 +
  }}
 +
    | #default = <div style="width: 52px;"> {{#if:
 +
  |{{{smallimageright}}}
 +
  |
 +
  }} </div>
 +
    }}</td>
 +
  }}
 +
}}
 +
</tr>
 +
</table><!--
 +
Detect and report usage with faulty "type" parameter:
 +
-->{{#switch:notice
 +
|  <!-- 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=notice" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}<!--
 +
Detect and report usage of deprecated "image=blank":
 +
-->{{#switch:{{#if:
 +
  |{{{smallimage}}}
 +
  |[[Image:Artículo_bueno.svg|50px|alt=|link=]]
 +
   }}
 +
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}
 +
  |<table class="metadata plainlinks ambox {{#switch:
 +
| left = mbox-small-left
 +
}} {{#switch:notice
 +
| speedy    = ambox-speedy
 +
| delete    = ambox-delete
 +
| content    = ambox-content
 +
| style      = ambox-style
 +
| move      = ambox-move
 +
| protection = ambox-protection
 +
| notice    <!-- notice = default -->
 +
| #default   = ambox-notice
 +
}}" style="">
 +
<tr>
 +
{{#switch:[[Image:Artículo_bueno.svg|50px|alt=|link=]]
 +
| 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:
 +
  | left = <!-- Don't use the DIV -->
 +
  | #default = <div style="width: 52px;">
 +
  }}
 +
  {{#if:[[Image:Artículo_bueno.svg|50px|alt=|link=]]
 +
  | [[Image:Artículo_bueno.svg|50px|alt=|link=]]
 +
  | [[File:{{#switch:notice
 +
    | 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:
 +
      | left = 20x20px
 +
      | #default = 40x40px
 +
      }} |link=|alt=]]
 +
  }}{{#switch:
 +
  | left = <!-- Don't use the /DIV -->
 +
  | #default = </div>
 +
  }}</td>
 +
}}
 +
<td class="mbox-text" style=""> This has been confirmed as an copyright infringement. {{#if:{{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 +
  |{{#ifeq:¬|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
 +
  |
 
   }}
 
   }}
}}
+
  |<small>''({{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
  |{{Ambox/core
 
  |type      = notice
 
  |image      = [[Image:Artículo_bueno.svg|50px|alt=|link=]]
 
  |imageright =
 
  |style      =
 
  |textstyle  =
 
  |text      = This has been confirmed as an copyright infringement.
 
  |date      = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 
 
   |{{#ifeq:¬|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
 
   |{{#ifeq:¬|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
 
   |
 
   |
 +
  }})''</small>
 +
}}</td>
 +
{{#if:
 +
| {{#ifeq:|none
 +
  | <!-- No image. -->
 +
  | <td class="mbox-imageright">{{#switch:
 +
    | left =
 +
    | #default = <div style="width: 52px;">  </div>
 +
    }}</td>
 
   }}
 
   }}
}}
+
}}
 +
</tr>
 +
</table><!--
 +
Detect and report usage with faulty "type" parameter:
 +
-->{{#switch:notice
 +
|  <!-- 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=notice" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}<!--
 +
Detect and report usage of deprecated "image=blank":
 +
-->{{#switch:[[Image:Artículo_bueno.svg|50px|alt=|link=]]
 +
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}
 
}}{{cat handler
 
}}{{cat handler
 
  |main={{ambox/category
 
  |main={{ambox/category

Revision as of 20:11, 28 May 2011