Jump to: navigation, search

Differenze tra le versioni di "Template:Ambox"

m (1 revisioni importate)
(remove category sortkey which is now the default after bugzilla:16552)
Riga 1: Riga 1:
<table class="metadata plainlinks ambox
+
{{#switch:{{{small|}}}
{{#switch:{{{type|}}}
+
| left =  
| speedy    = ambox-speedy
+
  {{ambox/core
| delete    = ambox-delete
+
  | small     = left
| content    = ambox-content
+
  | type       = {{{type|}}}
| style     = ambox-style
+
  | image      = {{#if:{{{smallimage|}}}
| move       = ambox-move
+
                | {{{smallimage}}}
| protection = ambox-protection
+
                | {{{image|}}}
| notice    <!-- notice = default -->
+
                }}
| #default  = ambox-notice
+
   | imageright = {{#if:{{{smallimageright|}}}
}}" style="{{{style|}}}">
+
                | {{{smallimageright}}}
<tr>
+
                | {{{imageright|}}}
{{#ifeq:{{{image|}}}|none
+
                }}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
+
  | style      = {{{style|}}}
| <td class="mbox-image"><div style="width: 52px;">
+
  | textstyle  = {{{textstyle|}}}
  {{#ifeq:{{{image|}}}|blank
+
  | text       = {{#if:{{{smalltext|}}}
  | &nbsp;
+
                | {{{smalltext}}}  
   | {{#if:{{{image|}}}
+
                | {{{text}}}  
    | {{{image}}}
+
                }}
    | {{#switch:{{{type|}}}
+
  }}
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
+
| #default =  
      | delete    = [[Image:Ambox deletion.png|40x40px]]
+
  {{ambox/core
      | content    = [[Image:Ambox content.png|40x40px]]
+
  | type      = {{{type|}}}
      | style      = [[Image:Ambox style.png|40x40px]]
+
  | image      = {{{image|}}}
      | move      = [[Image:Ambox move.png|40x40px]]
+
  | imageright = {{{imageright|}}}
      | protection = [[Image:Ambox protection.png|40x40px]]
+
  | style     = {{{style|}}}
       | notice    <!-- notice = default -->
+
  | textstyle  = {{{textstyle|}}}
      | #default  = [[Image:Ambox notice.png|40x40px]]
+
   | text       = {{{text}}}
      }}
+
  }}
    }}
+
}}<!--
  }}</div></td>
 
}}
 
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
| <td class="mbox-imageright"><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:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 
}}<noinclude>
 
  
{{pp-template|small=yes}}
+
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
{{Documentation}}
+
 
 +
--><noinclude>
 +
 
 +
{{pp-template}}
 +
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revisione 11:47, 5 Lug 2009

{{#switch: | left =

{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =

| #default =

}} {{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }} {{#switch:

| | speedy | delete | content | style | move | protection | notice =

| #default =
This message box is using an invalid "type=" parameter and needs fixing.

}}{{#switch:{{#if:

                | {{{smallimage}}}
                | 
                }}

| blank = }} | #default =

{{#switch: | blank | none =

| #default =

}}

{{#if: | {{#ifeq:|none

 | 
| }} }} {{#switch:

| | speedy | delete | content | style | move | protection | notice =

| #default =
This message box is using an invalid "type=" parameter and needs fixing.

}}{{#switch: | blank = }} }}