Difference between revisions of "Template:Fmbox/test1"
Jump to navigation
Jump to search
imported>Davidgothberg (Copied the code from the main template. (Thus adding the "id" parameter.)) |
imported>Davidgothberg (Adding the "type=warning" with the "fmbox-warning" class and "Image:Cmbox deletion.png".) |
||
| Line 1: | Line 1: | ||
<table id="{{{id|}}}" class="plainlinks fmbox | <table id="{{{id|}}}" class="plainlinks fmbox | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| + | | warning = fmbox-warning | ||
| editnotice = fmbox-editnotice | | editnotice = fmbox-editnotice | ||
| system <!-- system = default --> | | system <!-- system = default --> | ||
| Line 6: | Line 7: | ||
}} {{{class|}}}" style="clear: both; margin: 0.2em 0; border: 1px solid #aaa; background: #f9f9f9; width: 100%; | }} {{{class|}}}" style="clear: both; margin: 0.2em 0; border: 1px solid #aaa; background: #f9f9f9; width: 100%; | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| + | | warning = background: #FFDBDB; border: 1px solid #BB7979; | ||
| editnotice = background: transparent; | | editnotice = background: transparent; | ||
| system <!-- system = default --> | | system <!-- system = default --> | ||
| Line 16: | Line 18: | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| − | | [[Image:Imbox notice.png|40x40px]] | + | | {{#switch:{{{type|}}} |
| + | | warning = [[Image:Cmbox deletion.png|40x40px]] | ||
| + | | editnotice = [[Image:Imbox notice.png|40x40px]] | ||
| + | | system <!-- system = default --> | ||
| + | | #default = [[Image:Imbox notice.png|40x40px]] | ||
| + | }} | ||
}}</td> | }}</td> | ||
}} | }} | ||
| Line 33: | Line 40: | ||
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 {{purge|purge this page}} to see the effect on the examples below. | 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 {{purge|purge this page}} to see the effect on the examples below. | ||
| + | {{fmbox/test1 | ||
| + | | type = warning | ||
| + | | text = type=warning | ||
| + | }} | ||
{{fmbox/test1 | {{fmbox/test1 | ||
| type = editnotice | | type = editnotice | ||
| − | | text = editnotice | + | | text = type=editnotice |
}} | }} | ||
{{fmbox/test1 | {{fmbox/test1 | ||
| type = system | | type = system | ||
| − | | text = system | + | | text = type=system |
}} | }} | ||
Revision as of 15:33, 28 October 2008
|
|
{{{text}}} |
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.
|
|
type=warning |
|
|
type=editnotice |
|
|
type=system |
Some text just to test bottom margin.
Special
Some other parameter combinations.
|
|
No type and no image given (default) |
| No type and image=none – No image is used and the text uses the whole message box area. |
|
|
image = |
|
|
Trying large left side image. - lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text |
|
|
Trying large left and right side image. - lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text | |
Parameters
List of all parameters:
{{fmbox/test1
| type = system / editnotice
| 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.
}}