Jump to: navigation, search

Differenze tra le versioni di "Template:Ambox"

m (1 revisioni importate)
(Oops, how embarrassing, I had left a line break in the category name. Fixed.)
Riga 2: Riga 2:
 
{{#switch:{{{type|}}}
 
{{#switch:{{{type|}}}
 
| speedy    = ambox-speedy
 
| speedy    = ambox-speedy
| delete        <!-- delete = serious -->
+
| serious    <!-- This value is **deprecated**, please don't use it! -->
| serious    = ambox-delete
+
| delete    = ambox-delete
 
| content    = ambox-content
 
| content    = ambox-content
 
| style      = ambox-style
 
| style      = ambox-style
| move          <!-- move = merge -->
+
| merge      <!-- This value is **deprecated**, please don't use it! -->
| merge      = ambox-move
+
| move      = ambox-move
 
| protection = ambox-protection
 
| protection = ambox-protection
| notice       <!-- notice = default -->
+
| notice     <!-- notice = default -->
 
| #default  = ambox-notice
 
| #default  = ambox-notice
 
}}" style="{{{style|}}}">
 
}}" style="{{{style|}}}">
Riga 22: Riga 22:
 
     | {{#switch:{{{type|}}}
 
     | {{#switch:{{{type|}}}
 
       | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
 
       | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
       | delete
+
       | serious    <!-- This value is **deprecated**, please don't use it! -->
       | serious    = [[Image:Ambox deletion.png|40x40px]]
+
       | delete    = [[Image:Ambox deletion.png|40x40px]]
 
       | content    = [[Image:Ambox content.png|40x40px]]
 
       | content    = [[Image:Ambox content.png|40x40px]]
 
       | style      = [[Image:Ambox style.png|40x40px]]
 
       | style      = [[Image:Ambox style.png|40x40px]]
       | move
+
       | merge      <!-- This value is **deprecated**, please don't use it! -->
       | merge      = [[Image:Ambox move.png|40x40px]]
+
       | move      = [[Image:Ambox move.png|40x40px]]
 
       | protection = [[Image:Ambox protection.png|40x40px]]
 
       | protection = [[Image:Ambox protection.png|40x40px]]
       | notice         <!-- notice = default -->
+
       | notice     <!-- notice = default -->
 
       | #default  = [[Image:Ambox notice.png|40x40px]]
 
       | #default  = [[Image:Ambox notice.png|40x40px]]
 
       }}
 
       }}
Riga 40: Riga 40:
 
}}
 
}}
 
</tr>
 
</tr>
</table><noinclude>
+
</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  = [[Category:Ambox templates using deprecated types|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}<noinclude>
  
 
{{pp-template|small=yes}}
 
{{pp-template|small=yes}}

Revisione 08:34, 21 Ago 2008

{{#ifeq:|none | |

}}

{{#if:

|

}}

{{#switch:

| | speedy | delete | content | style | move | protection | notice = | #default = }}