Changes

Jump to: navigation, search

Template:Mbox

391 bytes added, 18:36, 22 May 2008
Changed the "#ifeq:" statements to "#if:", changed to using {{namespace detect}} so a demospace parameter can be used and talk space can be easily detected, and other fixes.
{{ {{#switch:namespace detect | demospace = {{{NAMESPACEdemospace|}}} |{{ns:0}} main = ambox <!-- | talk = tmbox --> |{{ns:Image}} image = imbox | category |{{ns:Category}} = cmbox |#default other = dmbox }}<!-- These if-cases soon unnecessary since all but ambox and dmbox can take empty parameters, and ambox and dmbox will be fixed. This code means we are feeding several empty numbered parameters but that doesn't matter since the mboxes don't use numbered parameters. -->|{{#ifeqif:{{{type|μ}}}|μ||type}}={{{type|}}}}}|{{#ifeqif:{{{image|μ}}}|μ||image}}={{{image|}}}}}|{{#ifeqif:{{{imageright|μ}}}|μ||imageright}}={{{imageright|}}}}}|{{#ifeqif:{{{style|μ}}}|μ||style}}={{{style|}}}}}|{{#ifeqif:{{{textstyle|μ}}}|μ||textstyle}}={{{textstyle|}}}}}|{{#ifeqif:{{{text|μ}}}|μ||text}}={{{text|}}}}} 
}}<noinclude>
 <!-- {{documentationpp-template|small=yes}}-->{{Documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
Anonymous user

Navigation menu