Jump to content

Template:Fmbox/doc

From base48

{{#if: |

File:Edit-paste.svg This is the template documentation page for Template:Fmbox.
This page may not be intended to be viewed directly.
Links using variables may appear broken; do not replace these with hardcoded page names or URLs.

{{#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:

}}

 {{#if:
{{{image}}} [[File:{{#switch: warning = Cmbox deletion.png editnotice = Imbox notice.png system #default = Imbox notice.png
   }}|40x40px|link=|alt=]]
}}
Example message text. {{{imageright}}}
{{#switch:
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:

}}

 {{#if:
{{{image}}} [[File:{{#switch:warning warning = Cmbox deletion.png editnotice = Imbox notice.png system #default = Imbox notice.png
   }}|40x40px|link=|alt=]]
}}
Example message text. {{{imageright}}}
{{#switch:warning
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:

}}

 {{#if:
{{{image}}} [[File:{{#switch:editnotice warning = Cmbox deletion.png editnotice = Imbox notice.png system #default = Imbox notice.png
   }}|40x40px|link=|alt=]]
}}
Example message text. {{{imageright}}}
{{#switch:editnotice
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:

}}

 {{#if:
{{{image}}} [[File:{{#switch:system warning = Cmbox deletion.png editnotice = Imbox notice.png system #default = Imbox notice.png
   }}|40x40px|link=|alt=]]
}}
Example message text. {{{imageright}}}
{{#switch:system
warning editnotice system = #default =
This message box is using an invalid "type=system" parameter and needs fixing.

}}