Jump to content

Template:Mbox/TemplateData: Difference between revisions

From Project Reproka
t/d 1
Tag: Recreated
 
m 1 revision imported
 
(No difference)

Latest revision as of 00:02, 3 December 2025

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:templatedata|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:mbox/templatedata|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Mbox
                  | [[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:templatedata|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:mbox/templatedata|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Mbox
                  | [[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.

}} }} {{#switch:<translate></translate> |=

{{#if:{{safesubst:#switch: 1
|no
|n
|false
|0        = 
|         = 
|¬        = 
|yes
|y
|true
|1        = yes
|#default = yes

}}|{{#ifexpr:{{#if:Mbox/TemplateData|{{#ifeq:Template:Mbox/TemplateData|{{#switch:

|#default = Mbox/TemplateData 
| = 
   {{#ifeq:  | 
     | Template:Mbox/TemplateData            
     | Mbox/TemplateData      
   }}

}}|0|1}}|not{{#ifexpr: ( {{#ifeq:templatedata|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:mbox/templatedata|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|{{#if:1||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:1|[}}[[{{#switch:

|#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>}}

Mbox

{{#ifeq:TemplateData|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:templatedata|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:mbox/templatedata|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=

 {{#switch:

|=

{{#if:{{safesubst:#switch: 1
|no
|n
|false
|0        = 
|         = 
|¬        = 
|yes
|y
|true
|1        = yes
|#default = yes

}}|{{#ifexpr:{{#if:Mbox/TemplateData|{{#ifeq:Template:Mbox/TemplateData|{{#switch:

|#default = Mbox/TemplateData 
| = 
   {{#ifeq:  | 
     | Template:Mbox/TemplateData            
     | Mbox/TemplateData      
   }}

}}|0|1}}|not{{#ifexpr: ( {{#ifeq:templatedata|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:mbox/templatedata|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|{{#if:1||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:1|[}}[[{{#switch:

|#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.}}

Mbox

{{#ifeq:TemplateData|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:templatedata|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:mbox/templatedata|-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 Template:Mbox nebo “multi namespace message box“.", "en": "This is the specialized version of the Template:Mbox or \"multi-namespace message box\" meta-template.", "pt-br": "Esta é a versão especializada da meta-predefinição Template:Mbox, 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> [[Category:TemplateData documentation{{#translation:}}]]