Difference between revisions of "Template:Mbox"
Jump to navigation
Jump to search
what>Davidgothberg (Planned new version from /sandbox. Many new additions and fixes. See discussions at Wikipedia talk:Article message boxes.) |
what>Happy-melon (steal unused template for a new high-level meta-template (for interaction between {{ambox}}, {{imbox}} and {{cmbox}}) |
||
Line 1: | Line 1: | ||
− | + | {{ {{#switch:{{NAMESPACE}} | |
− | {{#switch:{{ | + | |{{ns:0}}=ambox |
− | + | |{{ns:Image}}=imbox | |
− | + | |{{ns:Category}}=cmbox | |
− | + | |#default=ambox | |
− | + | }} | |
− | + | |{{#if:{{{type|}}}|type|}}={{{type|}}} | |
− | + | |{{#if:{{{image|}}}|image|}}={{{image|}}} | |
− | + | |{{#if:{{{style|}}}|style|}}={{{style|}}} | |
− | + | |{{#if:{{{textstyle|}}}|textstyle|}}={{{textstyle|}}} | |
− | + | |{{#if:{{{text|}}}|text|}}={{{text|}}} | |
− | |||
− | }} | ||
− | |||
− | |||
− | {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | {{#if:{{{ | ||
− | |||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |