Template:Tmbox/doc
{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:tmbox/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:Tmbox</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:Tmbox
| [[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:tmbox/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:Tmbox. {{#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:Tmbox
| [[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.
This is the {{{{#ifeq:Template:Tmbox|
|
}}[[Special:MyLanguage/Template:tmbox|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Template|Template:}}Tmbox/Page display title/en
|{{#ifexpr:{{#if:0|1|0}} and 10!=0
|{{#ifeq:en|en
|Tmbox
|{{#if:
|{{#ifeq:0|0
|
| String Module Error: Target string is empty
}}
|{{#if:{{ Template:TNTN | nsp = 0 }}
|{{ Template:TNTN | nsp = 0 }}
|Template:tmbox
}}
}}
}}
|{{ Template:TNTN }}
}}
|{{#if:0
|{{#if:Tmbox
|Tmbox
|Template:tmbox
}}
|Template:tmbox
}}
}}}}]]{{#ifeq:Template:Tmbox|
|
}}}}, or talk page message box, meta-template.
Parameters
type
{{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = speedy | text = type=speedy }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = delete | text = type=delete }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = content | text = type=warning }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = style | text = type=style }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = notice | text = type=notice }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = move | text = type=move }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = protection | text = type=protection }}
small=true
{{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = speedy | text = type=speedy | small = true }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = delete | text = type=delete | small = true }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = content | text = type=warning | small = true }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = style | text = type=style | small = true }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = notice | text = type=notice | small = true }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = move | text = type=move | small = true }} {{tmbox{{#ifeq:doc|sandbox|/sandbox}} | nocat = true | type = protection | text = type=protection | small = true }}
TemplateData
{{#switch:<translate></translate> |=
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:Mbox/TemplateData|{{#ifeq:Template:Tmbox/doc|{{#switch:
|#default = Mbox/TemplateData
| =
{{#ifeq: |
| Template:Mbox/TemplateData
| Mbox/TemplateData
}}
}}|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:tmbox/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>}}
Tmbox
{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (
{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:tmbox/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:Tmbox/doc|{{#switch:
|#default = Mbox/TemplateData
| =
{{#ifeq: |
| Template:Mbox/TemplateData
| Mbox/TemplateData
}}
}}|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:tmbox/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.}}
Tmbox
{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (
{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:tmbox/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>
See also
Other pages:
- w:Template:Mbox
- w:Wikipedia:Ambox CSS classes – Describes how to use the ambox CSS classes directly in wikitables and HTML tables.
- w:Wikipedia:Article message boxes – The style guideline for creating article message boxes.
- w:Wikipedia talk:Article message boxes – For discussion about these matters.