Jump to: navigation, search

Differenze tra le versioni di "Template:Ambox"

m (1 revisioni importate)
m (1 revisioni importate)
 
(5 versioni intermedie di 3 utenti non mostrate)
Riga 1: Riga 1:
<table class="metadata plainlinks ambox
+
{{#switch:{{{small|}}}
{{#switch:{{{type|}}}
+
| left =  
| speedy    = ambox-speedy
+
  {{ambox/core
| delete        <!-- delete = serious -->
+
  | small     = left
| serious    = ambox-delete
+
  | type      = {{{type|}}}
| content    = ambox-content
+
  | image      = {{#if:{{{smallimage|}}}
| style     = ambox-style
+
                | {{{smallimage}}}
| move          <!-- move = merge -->
+
                | {{{image|}}}
| merge      = ambox-move
+
                }}
| protection = ambox-protection
+
   | imageright = {{#if:{{{smallimageright|}}}
| notice        <!-- notice = default -->
+
                | {{{smallimageright}}}
| #default  = ambox-notice
+
                | {{{imageright|}}}
}}" style="{{{style|}}}">
+
                }}
<tr>
+
  | style      = {{{style|}}}
{{#ifeq:{{{image|}}}|none
+
  | textstyle  = {{{textstyle|}}}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
+
  | text       = {{#if:{{{smalltext|}}}
| <td class="ambox-image"><div style="width: 52px;">
+
                | {{{smalltext}}}  
  {{#ifeq:{{{image|}}}|blank
+
                | {{{text}}}  
  | &nbsp;
+
                }}
   | {{#if:{{{image|}}}
+
  }}
    | {{{image}}}
+
| #default =  
    | {{#switch:{{{type|}}}
+
  {{ambox/core
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
+
  | type      = {{{type|}}}
      | delete
+
  | image      = {{{image|}}}
      | serious    = [[Image:Ambox deletion.png|40x40px]]
+
  | imageright = {{{imageright|}}}
      | content    = [[Image:Ambox content.png|40x40px]]
+
  | style      = {{{style|}}}
      | style      = [[Image:Ambox style.png|40x40px]]
+
  | textstyle  = {{{textstyle|}}}
      | move
+
  | text      = {{{text}}}
      | merge      = [[Image:Ambox move.png|40x40px]]
+
  }}
      | protection = [[Image:Ambox protection.png|40x40px]]
+
}}<!--
       | notice          <!-- notice = default -->
 
      | #default  = [[Image:Ambox notice.png|40x40px]]
 
      }}
 
    }}
 
  }}</div></td>
 
}}
 
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
 
}}
 
</tr>
 
</table><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>

Versione attuale delle 06:30, 8 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 = }} }}