Difference between revisions of "Template:Mbox"

From FIThydrowiki
Jump to navigation Jump to search
what>Rich Farmbrough
m (Add code for incorrectly substed templates, or minor tidy up using AWB)
what>Davidgothberg
(This template has now been checked and tested, it works correctly in the new "Book:" and "Book talk:" namespaces. And a minor update to "{{pp-template}}".)
Line 1: Line 1:
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
+
{{
| left =
+
   {{namespace detect
   {{Ambox/core
+
   | demospace = {{{demospace|}}}
  | small      = left
+
   | main     = ambox
   | type      = {{{type|}}}
+
   | talk      = tmbox
   | image     = {{#if:{{{smallimage|}}}
+
   | file     = imbox
                | {{{smallimage}}}
+
   | category = cmbox
                | {{{image|}}}
+
   | other    = ombox
                }}
 
   | imageright = {{#if:{{{smallimageright|}}}
 
                | {{{smallimageright}}}
 
                | {{{imageright|}}}
 
                }}
 
   | style     = {{{style|}}}
 
   | textstyle = {{{textstyle|}}}
 
   | text      = {{#if:{{{smalltext|}}}
 
                | {{{smalltext}}}
 
                | {{{text}}}
 
                }}
 
 
   }}
 
   }}
| #default =
+
| type      = {{{type|}}}
  {{Ambox/core
+
| image      = {{{image|}}}
  | type      = {{{type|}}}
+
| imageright = {{{imageright|}}}
  | image      = {{{image|}}}
+
| style      = {{{style|}}}
  | imageright = {{{imageright|}}}
+
| textstyle  = {{{textstyle|}}}
  | style      = {{{style|}}}
+
| text      = {{{text}}}
  | textstyle  = {{{textstyle|}}}
+
| small      = {{{small|}}}
  | text      = {{{text}}}
+
| smallimage = {{{smallimage|}}}
  }}
+
| smallimageright = {{{smallimageright|}}}
}}<!--
+
| smalltext  = {{{smalltext|}}}
 
+
}}<noinclude>
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
 
 
 
--><!--{{Ambox}} end--><noinclude>
 
  
 
{{pp-template}}
 
{{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 02:03, 30 December 2009

{{

 Template:Namespace detect

| type = | image = | imageright = | style = | textstyle = | text = {{{text}}} | small = | smallimage = | smallimageright = | smalltext = }}

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.