Template:Mbox: Difference between revisions

wikademia>Davidgothberg
Updating the code comment since ambox and dmbox/ombox has been fixed. They can take empty parameters now.
wikademia>Wikademia
m 21 revisions
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{  
{{
   {{namespace detect  
   {{namespace detect  
   | demospace = {{{demospace|}}}
   | demospace = {{{demospace|}}}
   | main      = ambox
   | main      = ambox
<!-- | talk   = tmbox -->
  | talk     = tmbox
   | image    = imbox
   | file      = imbox
   | category  = cmbox
   | category  = cmbox
   | other    = ombox
   | other    = ombox
   }}
   }}
<!-- These if-cases should perhaps be removed since all current mboxes can take empty parameters. This code also means we are feeding several empty numbered parameters but that doesn't matter since the mboxes don't use numbered parameters.  -->
| type       = {{{type|}}}
| {{#if:{{{type|}}}| type={{{type|}}} }}
| image     = {{{image|}}}
| {{#if:{{{image|}}}| image={{{image|}}} }}
| imageright = {{{imageright|}}}
| {{#if:{{{imageright|}}}| imageright={{{imageright|}}} }}
| style      = {{{style|}}}
| {{#if:{{{style|}}}| style={{{style|}}} }}
| textstyle  = {{{textstyle|}}}
| {{#if:{{{textstyle|}}}| textstyle={{{textstyle|}}} }}
| text      = {{{text}}}
| {{#if:{{{text|}}}| text={{{text|}}} }}
| small      = {{{small|}}}
 
| smallimage = {{{smallimage|}}}
| smallimageright = {{{smallimageright|}}}
| smalltext  = {{{smalltext|}}}
}}<noinclude>
}}<noinclude>


<!-- {{pp-template|small=yes}} -->
{{pp-template|small=yes}}
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>