Jump to content

Template:Mbox: Difference between revisions

From IdeaWazaWiki
wikademia>Happy-melon
steal unused template for a new high-level meta-template (for interaction between {{ambox}}, {{imbox}} and {{cmbox}}
wikademia>Wikademia
m 21 revisions
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ {{#switch:{{NAMESPACE}}
{{
|{{ns:0}}=ambox
  {{namespace detect
|{{ns:Image}}=imbox
  | demospace = {{{demospace|}}}
  |{{ns:Category}}=cmbox
  | main      = ambox
|#default=ambox
  | talk      = tmbox
}}
  | file      = imbox
|{{#if:{{{type|}}}|type|}}={{{type|}}}
  | category = cmbox
|{{#if:{{{image|}}}|image|}}={{{image|}}}
  | other    = ombox
|{{#if:{{{style|}}}|style|}}={{{style|}}}
  }}
|{{#if:{{{textstyle|}}}|textstyle|}}={{{textstyle|}}}
| type      = {{{type|}}}
|{{#if:{{{text|}}}|text|}}={{{text|}}}
| image      = {{{image|}}}
}}
| imageright = {{{imageright|}}}
| style      = {{{style|}}}
| textstyle  = {{{textstyle|}}}
| text      = {{{text}}}
| small      = {{{small|}}}
| smallimage = {{{smallimage|}}}
| smallimageright = {{{smallimageright|}}}
| smalltext  = {{{smalltext|}}}
}}<noinclude>
 
{{pp-template|small=yes}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 06:25, 6 April 2009

[create] Template documentation