Difference between revisions of "Template:Mbox"

From Self-sufficiency
Jump to: navigation, search
(steal unused template for a new high-level meta-template (for interaction between {{ambox}}, {{imbox}} and {{cmbox}})
m (1 revision)
 
(18 intermediate revisions by 6 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|}}}
 +
| class      = {{{class|}}}
 +
| style      = {{{style|}}}
 +
| textstyle  = {{{textstyle|}}}
 +
| text      = {{{text}}}
 +
| small      = {{{small|}}}
 +
| smallimage = {{{smallimage|}}}
 +
| smallimageright = {{{smallimageright|}}}
 +
| smalltext  = {{{smalltext|}}}
 +
| subst      = {{{subst|}}}
 +
| date      = {{{date|}}}
 +
}}<noinclude>
 +
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Latest revision as of 14:53, 10 December 2011