Template:Fmbox/doc
{{#if: |
{{#if:x||
}} |{{#ifeq: doc | doc
|
{{
#ifeq: show | show
| {{
{{#switch:
{{#if:
|
| {{#if:
|
{{#ifeq:|
| talk
|
}}
|
{{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox
}}
| type = notice
| image = File:Edit-copy green.svg
| imageright =
| class =
| style =
| textstyle =
| text = This is a documentation subpage for Template:Fmbox (see that page for the {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template | {{ #if: Template | template | article }}}}}} itself).
It contains usage information, categories, interlanguage links and other content that is not part of the original {{ #if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template page | {{ #if: Template |template page|article}}}}}}}}.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
}}
}}{{
#if:
|
| {{#ifeq:Template|Template|}}
}}
| }} }}
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.
}}
|
{{#ifeq:|none
}}
{{#if: }}
|
warning | editnotice | system = | #default = This message box is using an invalid "type=" parameter and needs fixing.
}} | ||||||||||||||
| warning |
{{Fmbox
|type = warning
|text = Example message text.
}}
|
{{#ifeq:|none
}}
{{#if: }}
|
warning | editnotice | system = | #default = This message box is using an invalid "type=warning" parameter and needs fixing.
}} | ||||||||||||||
| editnotice |
{{Fmbox
|type = editnotice
|text = Example message text.
}}
|
{{#ifeq:|none
}}
{{#if: }}
|
warning | editnotice | system = | #default = This message box is using an invalid "type=editnotice" parameter and needs fixing.
}} | ||||||||||||||
| system |
{{Fmbox
|type = system
|text = Example message text.
}}
|
{{#ifeq:|none
}}
{{#if: }}
|
warning | editnotice | system = | #default = This message box is using an invalid "type=system" parameter and needs fixing.
}} |