Template:Mbox: Difference between revisions

Template page
(Updating the code comment since ambox and dmbox/ombox has been fixed. They can take empty parameters now.)
m (31 revisions imported: Imported from https://en.wikipedia.org/w/)
 
(16 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{
{{#invoke:Message box|mbox}}<noinclude>
  {{namespace detect
{{documentation}}
  | demospace = {{{demospace|}}}
<!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! -->
  | main      = ambox
<!-- | talk  = tmbox -->
  | image    = imbox
  | category  = cmbox
  | 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.  -->
| {{#if:{{{type|}}}| type={{{type|}}} }}
| {{#if:{{{image|}}}| image={{{image|}}} }}
| {{#if:{{{imageright|}}}| imageright={{{imageright|}}} }}
| {{#if:{{{style|}}}| style={{{style|}}} }}
| {{#if:{{{textstyle|}}}| textstyle={{{textstyle|}}} }}
| {{#if:{{{text|}}}| text={{{text|}}} }}
 
}}<noinclude>
 
<!-- {{pp-template|small=yes}} -->
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 16:04, 1 November 2023

{{#invoke:Message box|mbox}} This page has been transcluded from Template:Mbox/Documentation.


Template:Mbox/Documentation