Changes

Template:Mbox

230 bytes added, 22:43, 20 August 2008
Widening the detection and reporting of faulty "type" parameter to cover all namespaces. See Template talk:Tmbox#Deprecated ambox parameters.
{{#switch:{{{type|}}}
| speedy = ambox-speedy
| serious <!-- this This value is **deprecated**, please don't use it! -->
| delete = ambox-delete
| content = ambox-content
| style = ambox-style
| merge <!-- this This value is **deprecated**, please don't use it! -->
| move = ambox-move
| protection = ambox-protection
| {{#switch:{{{type|}}}
| speedy = [[Image:Ambox speedy deletion.png|40x40px]]
| serious <!-- this This value is **deprecated**, please don't use it! -->
| delete = [[Image:Ambox deletion.png|40x40px]]
| content = [[Image:Ambox content.png|40x40px]]
| style = [[Image:Ambox style.png|40x40px]]
| merge <!-- this This value is **deprecated**, please don't use it! -->
| move = [[Image:Ambox move.png|40x40px]]
| protection = [[Image:Ambox protection.png|40x40px]]
}}
</tr>
</table>{{#ifeq<!-- Detect and report usage with faulty "type" parameter:{{NAMESPACE}}|{{ns:template}}|-->{{#switch:{{{type|}}}| <!-- No type fed, is also valid input -->| speedy| delete| content| style|seriousmove|mergeprotection| notice = <!-- Do nothing, valid "type" -->| #default =[[Category:Ambox templates using deprecated types|{{PAGENAMEmain other|Main:}}{{FULLPAGENAME}}]]}}<!-- Sort on namespace -->}}<noinclude> 
{{pp-template|small=yes}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
Anonymous user