Template:Fmbox/doc
{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:fmbox/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}
|
{{#ifeq:show |show
|
| File:Codex icon book color-base.svg | <translate> This is a documentation [[<tvar name=2>Special:MyLanguage/Help:Subpages</tvar>|subpage]] for <tvar name=1>Template:Fmbox</tvar>.</translate> {{#if: |<translate> It contains usage information, [[<tvar name=7>Special:MyLanguage/Help:Categories</tvar>|categories]] and other content that is not part of the original <tvar name=1>{{{text1}}}</tvar>.</translate>
|<translate> It contains usage information, [[<tvar name=7>Special:MyLanguage/Help:Categories</tvar>|categories]] and other content that is not part of the original <tvar name=1>Template</tvar> page.</translate>
}} |
}}{{#if: |
| {{#ifexist:Template:Fmbox
| [[Category:{{#switch:Template
| Template | Project = Template
| Module = Module
| User = User
| #default = MediaWiki
}} documentation pages{{#translation:}}]]
| [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
}}
}}
|
}}
| #default=
{{#switch:
| = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:fmbox/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}
|
{{#ifeq:show |show
|
| File:Codex icon book color-base.svg | This is a documentation subpage for Template:Fmbox. {{#if: |It contains usage information, categories and other content that is not part of the original {{{text1}}}. |It contains usage information, categories and other content that is not part of the original Template page.}} |
}}{{#if: |
| {{#ifexist:Template:Fmbox
| [[Category:{{#switch:Template
| Template | Project = Template
| Module = Module
| User = User
| #default = MediaWiki
}} documentation pages{{#translation:}}]]
| [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
}}
}}
|
}}
| #default=
Lua error: expandTemplate: template loop detected.
}} }} Lua error: Module:TNT:192: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Lua banner.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''. Lua error: callParserFunction: function "#translation" was not found. {{#switch:<translate></translate> | =
| File:OOjs UI icon alert-warning.svg | {{#switch:Template
|Module={{#if:
|<translate> This Lua module is used on approximately <tvar name=5>{{{1}}}</tvar> pages.</translate>
|<translate> This Lua module is used on many pages.</translate>
}}
|#default={{#if:
|<translate> This template is used on approximately <tvar name=5>{{{1}}}</tvar> pages.</translate>
|<translate> This template is used on many pages.</translate>
}}
}}
{{#switch:Template |Module=<translate> To avoid large-scale disruption and unnecessary server load, any changes to this module should first be tested in its [[<tvar name=4>{{#switch:doc|doc|sandbox=Template:Fmbox|#default=Template:Fmbox/doc}}/sandbox</tvar>|/sandbox]] or [[<tvar name=5>{{#switch:doc|doc|sandbox=Template:Fmbox|#default=Template:Fmbox/doc}}/testcases</tvar>|/testcases]] subpages.</translate>
|#default=<translate> To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its [[<tvar name=4>{{#switch:doc|doc|sandbox=Template:Fmbox|#default=Template:Fmbox/doc}}/sandbox</tvar>|/sandbox]] or [[<tvar name=5>{{#switch:doc|doc|sandbox=Template:Fmbox|#default=Template:Fmbox/doc}}/testcases</tvar>|/testcases]] subpages or in your own [[<tvar name=9>Special:MyLanguage/Help:Subpages#Use of subpages</tvar>|user subpage]].</translate>
}} <translate> The tested changes can then be added to this page in one single edit.</translate> {{#if: |<translate> Please consider discussing any changes at <tvar name=2>[[Template:Trim]]</tvar> before implementing them.</translate> |<translate> Please consider discussing any changes on the [[<tvar name=3>{{#switch:doc|doc|sandbox=Template talk:Fmbox|#default=Template talk:Fmbox/doc}}</tvar>|talk page]] before implementing them.</translate>}} |
| #default=
{{#switch:
| =
| File:OOjs UI icon alert-warning.svg | {{#switch:Template
|Module={{#if:
|This Lua module is used on approximately {{{1}}} pages.
|This Lua module is used on many pages.
}}
|#default={{#if:
|This template is used on approximately {{{1}}} pages.
|This template is used on many pages.
}}
}}
{{#switch:Template |Module=To avoid large-scale disruption and unnecessary server load, any changes to this module should first be tested in its [[{{#switch:doc|doc|sandbox=Template:Fmbox|#default=Template:Fmbox/doc}}/sandbox|/sandbox]] or [[{{#switch:doc|doc|sandbox=Template:Fmbox|#default=Template:Fmbox/doc}}/testcases|/testcases]] subpages.
|#default=To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its [[{{#switch:doc|doc|sandbox=Template:Fmbox|#default=Template:Fmbox/doc}}/sandbox|/sandbox]] or [[{{#switch:doc|doc|sandbox=Template:Fmbox|#default=Template:Fmbox/doc}}/testcases|/testcases]] subpages or in your own user subpage.
}} The tested changes can then be added to this page in one single edit. {{#if: |Please consider discussing any changes at [[Template:Trim]] before implementing them. |Please consider discussing any changes on the [[{{#switch:doc|doc|sandbox=Template talk:Fmbox|#default=Template talk:Fmbox/doc}}|talk page]] before implementing them.}} |
| #default=
Lua error: expandTemplate: template loop detected.
}} }} {{#switch:<translate></translate> | =
| File:OOjs UI icon notice-warning.svg | {{#switch:template
|module=<translate> This module is used {{<tvar name=2>#if:|{{{1}}}</tvar>|in system messages}}.</translate>
|template=<translate> This template is used {{<tvar name=2>#if:|{{{1}}}</tvar>|in system messages}}.</translate>
}} | doc | sandbox = Template:Fmbox
| #default = Template:Fmbox/doc
}}/sandbox</tvar>|/sandbox]] or [[<tvar name=3>{{#switch: doc
| doc | sandbox = Template:Fmbox
| #default = Template:Fmbox/doc
}}/testcases</tvar>|/testcases]] subpage, or in your own [[<tvar name=4>Special:MyLanguage/Help:Subpages</tvar>|user space]].</translate>{{#switch:template
|module=<translate> The tested changes can then be added in one single edit to this module.</translate> |template=<translate> The tested changes can then be added in one single edit to this template.</translate> }} <translate> Please discuss any changes {{<tvar name=1>#if:</tvar>|at <tvar name=2>[[{{{2}}}]]</tvar>|on the [[<tvar name=3>{{#switch: doc | doc | sandbox = Template talk:Fmbox | #default = Template talk:Fmbox/doc}}</tvar>|talk page]]}} before implementing them.</translate> |
| #default=
{{#switch:
| =
| File:OOjs UI icon notice-warning.svg | {{#switch:template
|module=This module is used {{#if:|{{{1}}}|in system messages}}.
|template=This template is used {{#if:|{{{1}}}|in system messages}}.
}} | doc | sandbox = Template:Fmbox
| #default = Template:Fmbox/doc
}}/sandbox|/sandbox]] or [[{{#switch: doc
| doc | sandbox = Template:Fmbox
| #default = Template:Fmbox/doc
}}/testcases|/testcases]] subpage, or in your own user space.{{#switch:template
|module=The tested changes can then be added in one single edit to this module. |template=The tested changes can then be added in one single edit to this template. }} Please discuss any changes {{#if:|at [[{{{2}}}]]|on the [[{{#switch: doc | doc | sandbox = Template talk:Fmbox | #default = Template talk:Fmbox/doc}}|talk page]]}} before implementing them. |
| #default=
Lua error: expandTemplate: template loop detected.
}} }}
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dir | ltr or rtl
|
}}[[Special:MyLanguage/Template:dir|{{#if: |
{{{2}}} | Template:}}Dir/Page display title/en | 1|0}} and 10!=0 | en | Dir | {{#if: | 0 | String Module Error: Target string is empty
}} |
{{#if:{{ Template:TNTN | nsp = 0 }} | {{ Template:TNTN | nsp = 0 }} | Template:dir
}}
}}
}}
|
{{ Template:TNTN }}
}} |
{{#if:0 | {{#if:Dir | Dir | Template:dir
}} |
Template:dir
}} }}}}]]{{#ifeq:Template:Dir| |
}}}} and {{{{#ifeq:Template:Uselang| |
}}[[Special:MyLanguage/Template:uselang|{{#if: |
{{{2}}} | Template:}}Uselang/Page display title/en | 1|0}} and 10!=0 | en | Uselang | {{#if: | 0 | String Module Error: Target string is empty
}} |
{{#if:{{ Template:TNTN | nsp = 0 }} | {{ Template:TNTN | nsp = 0 }} | Template:uselang
}}
}}
}}
|
{{ Template:TNTN }}
}} |
{{#if:0 | {{#if:Uselang | Uselang | Template:uselang
}} |
Template:uselang
}} }}}}]]{{#ifeq:Template:Uselang| |
}}}} or {{{{#ifeq:Template:Pagelang| |
}}[[Special:MyLanguage/Template:pagelang|{{#if: |
{{{2}}} | Template:}}Pagelang/Page display title/en | 1|0}} and 10!=0 | en | Pagelang | {{#if: | 0 | String Module Error: Target string is empty
}} |
{{#if:{{ Template:TNTN | nsp = 0 }} | {{ Template:TNTN | nsp = 0 }} | Template:pagelang
}}
}}
}}
|
{{ Template:TNTN }}
}} |
{{#if:0 | {{#if:Pagelang | Pagelang | Template:pagelang
}} |
Template:pagelang
}} }}}}]]{{#ifeq:Template:Pagelang| |
}}}} |
Example messages
| Message type | Code | Example output |
|---|---|---|
| (default) | {{Fmbox
|type =
|text = Example message text.
}}
|
sandbox|/sandbox}} |type= |text=Example message text.}} |
| warning |
{{Fmbox
|type = warning
|text = Example message text.
}}
|
sandbox|/sandbox}} |type=warning |text=Example message text.}} |
| editnotice |
{{Fmbox
|type = editnotice
|text = Example message text.
}}
|
sandbox|/sandbox}} |type=editnotice |text=Example message text.}} |
| system |
{{Fmbox
|type = system
|text = Example message text.
}}
|
sandbox|/sandbox}} |type=system |text=Example message text.}} |
TemplateData
{{#switch:<translate></translate> |=
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:Mbox/TemplateData|{{#ifeq:Template:Fmbox/doc|{{#switch:
|#default = Mbox/TemplateData
| =
{{#ifeq: |
| Template:Mbox/TemplateData
| Mbox/TemplateData
}}
}}|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:fmbox/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|
|#default = Mbox/TemplateData
| =
{{#ifeq: |
| Template:Mbox/TemplateData
| Mbox/TemplateData
}}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Mbox/TemplateData
| =
{{#ifeq: |
| Template:Mbox/TemplateData
| Mbox/TemplateData
}}
}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:1|]}}}}}} {{#if:||<translate> This is the [[<tvar name=1>Special:MyLanguage/Help:TemplateData</tvar>|TemplateData]] documentation for this template used by [[<tvar name=2>Special:MyLanguage/VisualEditor</tvar>|VisualEditor]] and other tools.</translate>}}
Fmbox
{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (
{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:fmbox/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=
{{#switch:
|=
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:Mbox/TemplateData|{{#ifeq:Template:Fmbox/doc|{{#switch:
|#default = Mbox/TemplateData
| =
{{#ifeq: |
| Template:Mbox/TemplateData
| Mbox/TemplateData
}}
}}|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:fmbox/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|
|#default = Mbox/TemplateData
| =
{{#ifeq: |
| Template:Mbox/TemplateData
| Mbox/TemplateData
}}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Mbox/TemplateData
| =
{{#ifeq: |
| Template:Mbox/TemplateData
| Mbox/TemplateData
}}
}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:1|]}}}}}} {{#if:||This is the TemplateData documentation for this template used by VisualEditor and other tools.}}
Fmbox
{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (
{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:fmbox/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=
Lua error: expandTemplate: template loop detected.
}} }} <templatedata> { "description": {
"cs": "Toto je specializovaná verze metašablony
| File:OOjs UI icon information-progressive.svg |
nebo “multi namespace message box“.", "en": "This is the specialized version of the
| File:OOjs UI icon information-progressive.svg |
or \"multi-namespace message box\" meta-template.", "pt-br": "Esta é a versão especializada da meta-predefinição
| File:OOjs UI icon information-progressive.svg |
, ou “caixa de mensagem para múltiplos espaços nominais”."
},
"format": "block",
"params": {
"type": {
"label": {
"en": "Type",
"cs": "Typ",
"pt-br": "Tipo"
},
"suggestedvalues": [
"notice",
"style",
"content",
"delete",
"speedy",
"protection",
"move"
],
"type": "string",
"default": "notice",
"suggested": true,
"description": "Adjusts border and background for the appropriate use-case. Default notice is gray with a blue border.",
"autovalue": "notice"
},
"image": {
"label": {
"en": "Image (left)",
"cs": "Obrázek (vlevo)",
"pt-br": "Imagem (esquerda)"
},
"suggestedvalues": [
"none"
],
"default": {
"en": "Depends on the “type” parameter.",
"cs": "Závisí na parametru “type“.",
"pt-br": "Depende do parâmetro “type”."
},
"suggested": true,
"type": "content"
},
"imageright": {
"label": {
"en": "Image (right)",
"cs": "Obrázek (vpravo)",
"pt-br": "Imagem (direita)"
},
"type": "content"
},
"style": {
"label": {
"en": "CSS Style",
"cs": "Styl CSS",
"pt-br": "Estilo CSS"
},
"type": "string"
},
"textstyle": {
"label": {
"en": "Text CSS Style",
"cs": "Textový styl CSS",
"pt-br": "Estilo CSS para o texto"
},
"type": "string"
},
"text": {
"label": {
"en": "Text",
"cs": "Text",
"pt-br": "Texto"
},
"suggested": true,
"type": "content"
},
"small": {
"label": {
"en": "Small?",
"cs": "Malý?",
"pt-br": "Caixa pequena?"
},
"suggestedvalues": [
"",
"left",
"yes",
"1"
],
"default": "0",
"type": "boolean"
},
"smallimage": {
"label": {
"en": "Small Image (left)",
"cs": "Malý obrázek (vlevo)",
"pt-br": "Imagem da caixa pequena (esquerda)"
},
"suggestedvalues": [
"none"
],
"default": "{{{image}}}",
"type": "content"
},
"smallimageright": {
"label": {
"en": "Small Image (right)",
"cs": "Malý obrázek (vpravo)",
"pt-br": "Imagem da caixa pequena (direita)"
},
"suggestedvalues": [
"none"
],
"default": "{{{imageright}}}",
"type": "content"
},
"smalltext": {
"label": {
"en": "Small Text",
"cs": "Malý text",
"pt-br": "Texto da caixa pequena"
},
"default": "{{{text}}}",
"type": "content"
}
}
}
</templatedata>