Difference between revisions of "Template:Fmbox/test1"

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(Adding "type=warning" to "List of all parameters".)
imported>Davidgothberg
(Adding error reporting of faulty "type" parameter.)
Line 31: Line 31:
 
}}
 
}}
 
</tr>
 
</tr>
</table><noinclude>
+
</table><!-- Detect and report usage with faulty "type" parameter:
 +
-->{{#switch:{{{type|}}}
 +
|  <!-- No type fed, is also valid input -->
 +
| warning
 +
| editnotice
 +
| system    =    <!-- Do nothing, valid "type" -->
 +
| #default  = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}<noinclude>
  
  
Line 99: Line 106:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
=== Testing error reporting ===
 +
 +
{{fmbox/test1
 +
| type = fun
 +
| text = type=fun
 +
}}

Revision as of 16:01, 28 October 2008


David's sandbox for {{fmbox}}

Here David Göthberg is testing and showing new code versions. Please do not edit this page. If you want to experiment do so in {{fmbox/sandbox}} or create your own subpage under {{fmbox}} or in your own user space.

The box above is template code on this page, the boxes below are transclusions of this page and show how that code renders when the box is used in different ways. If you anyway have updated the code above then you have to Script error: No such module "Purge". to see the effect on the examples below.

Some text just to test bottom margin.

Special

Some other parameter combinations.

Parameters

List of all parameters:

{{fmbox/test1
| type  = system / editnotice / warning
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| class = CSS class names
| style = CSS values
| textstyle = CSS values
| text  = The message body text.
}}

Testing error reporting