Difference between revisions of "Template:Fmbox"
From Xen
(remove {{pp-template}}) |
m (1 revision from w:en:Template:Fmbox: update to en.wiki) |
||
Line 1: | Line 1: | ||
− | <table |
+ | <table id="{{{id|}}}" class="mbox mbox-wide |
{{#switch:{{{type|}}} |
{{#switch:{{{type|}}} |
||
− | | warning = |
+ | | warning = mbox-warning |
− | | editnotice = |
+ | | editnotice = |
| system <!-- system = default --> |
| system <!-- system = default --> |
||
− | | #default = |
+ | | #default = mbox-notice |
}} {{{class|}}}" style="{{{style|}}}"> |
}} {{{class|}}}" style="{{{style|}}}"> |
||
<tr> |
<tr> |
||
{{#ifeq:{{{image|}}}|none |
{{#ifeq:{{{image|}}}|none |
||
− | | <!-- No image. --> |
+ | | <td class="mbox-empty-cell"><!-- No image. --></td> |
| <td class="mbox-image"> |
| <td class="mbox-image"> |
||
{{#if:{{{image|}}} |
{{#if:{{{image|}}} |
||
Line 25: | Line 25: | ||
}} |
}} |
||
</tr> |
</tr> |
||
− | </table><!-- |
+ | </table><!-- |
Detect and report usage with faulty "type" parameter: |
Detect and report usage with faulty "type" parameter: |
||
-->{{#switch:{{{type|}}} |
-->{{#switch:{{{type|}}} |
Revision as of 01:39, 24 May 2011
{{{text}}} |
[edit] [ ] Template documentation
Parameters
Parameter | Options | Notes |
---|---|---|
type | warning/editnotice/system | |
class | Additional CSS styling for the message box (pulled from another stylesheet (Mediawiki:Common.css) | |
style | Additional CSS styling for the message box (manually declared) | |
image | [[File:example.example|40px]]
|
If bank, Auto detected and chosen by type .
Default images:
|
textstyle | CSS formatting for the displayed text | |
text | The message to be displayed | |
imageright | [[File:example.example|40px]]
|
File to be shown on the right side of the message |
Example messages
Message type | Code | Example output | ||
---|---|---|---|---|
(default) | {{Fmbox |type = |text = Example message text. }} |
| ||
warning |
{{Fmbox |type = warning |text = Example message text. }} |
| ||
editnotice |
{{Fmbox |type = editnotice |text = Example message text. }} |
| ||
system |
{{Fmbox |type = system |text = Example message text. }} |
|
The above documentation is transcluded from Template:Fmbox/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |