Difference between revisions of "Template:Mbox"

From FIThydrowiki
Jump to navigation Jump to search
what>Davidgothberg
(Changed deprecated "{{namespace detect|image=}}" to "{{namespace detect|file=}}, due to change of namespace "Image:" to "File:". No change in functionality.)
what>Davidgothberg
(Deploying the "small=left" feature, thus now using {{ambox/core}}. Tested in /sandbox and discussed in many places, see talk page.)
Line 1: Line 1:
{{
+
{{#switch:{{{small|}}}
   {{namespace detect
+
| left =
   | demospace = {{{demospace|}}}
+
   {{ambox/core
   | main     = ambox
+
   | small      = left
   | talk     = tmbox
+
  | type      = {{{type|}}}
   | file     = imbox
+
   | image     = {{#if:{{{smallimage|}}}
   | category = cmbox
+
                | {{{smallimage}}}
   | other    = ombox
+
                | {{{image|}}}
 +
                }}
 +
  | imageright = {{#if:{{{smallimageright|}}}
 +
                | {{{smallimageright}}}
 +
                | {{{imageright|}}}
 +
                }}
 +
  | style      = {{{style|}}}
 +
  | textstyle  = {{{textstyle|}}}
 +
  | text      = {{#if:{{{smalltext|}}}
 +
                | {{{smalltext}}}
 +
                | {{{text}}}
 +
                }}
 +
  }}
 +
| #default =
 +
  {{ambox/core
 +
   | type      = {{{type|}}}
 +
  | image     = {{{image|}}}
 +
  | imageright = {{{imageright|}}}
 +
   | style     = {{{style|}}}
 +
   | textstyle = {{{textstyle|}}}
 +
   | text      = {{{text}}}
 
   }}
 
   }}
| type      = {{{type|}}}
 
| image      = {{{image|}}}
 
| imageright = {{{imageright|}}}
 
| style      = {{{style|}}}
 
| textstyle  = {{{textstyle|}}}
 
| text      = {{{text}}}
 
| small      = {{{small|}}}
 
| smallimage = {{{smallimage|}}}
 
| smallimageright = {{{smallimageright|}}}
 
| smalltext  = {{{smalltext|}}}
 
 
}}<noinclude>
 
}}<noinclude>
  
{{pp-template|small=yes}}
+
{{pp-template}}
{{Documentation}}
+
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 19:21, 15 March 2009

Template:Ambox/core

Lua error in package.lua at line 80: module 'Module:Arguments' not found. Lua error in package.lua at line 80: module 'Module:Arguments' not found.