Template:Note/doc: Difference between revisions
en>Clump m Reverted edits by 179.216.135.251 (talk) to last version by ExE Boss |
m 1 revision imported |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"format": " | "format": "block", | ||
"description": { | "description": { | ||
"en": "Show a note in a box (e.g. a top-of-the-page warning).", | "en": "Show a note in a box (e.g. a top-of-the-page warning).", | ||
"tr": "Bir kutuda bir not gösterin (ör. sayfanın üstü uyarısı)." | "es": "Muestra una nota en un recuadro (p. ej. un aviso en la parte superior de la página).", | ||
"cs": "Zobrazí poznámku v poli (např. upozornění v horní části stránky)", | |||
"tr": "Bir kutuda bir not gösterin (ör. sayfanın üstü uyarısı).", | |||
"fr": "Affiche une note dans une boîte (exemple : un avertissement en haut de la page).", | |||
"pt-br": "Exibe uma nota em uma caixa (como um aviso no topo de uma página)." | |||
}, | }, | ||
"params": { | "params": { | ||
Line 13: | Line 17: | ||
"label": { | "label": { | ||
"en": "Inline formatting", | "en": "Inline formatting", | ||
"tr": "Satır içi biçimlendirme" | "es": "Formato en una sola línea", | ||
"fr": "format une ligne", | |||
"cs": "Inline formátování", | |||
"tr": "Satır içi biçimlendirme", | |||
"pt-br": "Formatação em linha" | |||
}, | }, | ||
"description": { | "description": { | ||
"en": "Show the template without line breaks before and after it.", | "en": "Show the template without line breaks before and after it.", | ||
"tr": "Şablonu, öncesinde ve sonrasında satır kesmeleri olmadan gösterin." | "es": "Muestra la plantilla sin saltos de línea antes y después de ésta.", | ||
"fr": "affiche le modèle sans les sauts de ligne, ni avant, ni après.", | |||
"cs": "Zobrazí šablonu bez zalomení řádků před a za ní.", | |||
"tr": "Şablonu, öncesinde ve sonrasında satır kesmeleri olmadan gösterin.", | |||
"pt-br": "Exibe a predefinição sem quebras de linha antes ou após." | |||
}, | |||
"default": { | |||
"en": "0", | |||
"pt-br": "0" | |||
}, | }, | ||
"autovalue": "1", | "autovalue": "1", | ||
"type": "boolean" | "type": "boolean" | ||
Line 29: | Line 44: | ||
"label": { | "label": { | ||
"en": "Type", | "en": "Type", | ||
"tr": "Tür" | "es": "Tipo", | ||
"fr": "type de boîte", | |||
"cs": "Typ", | |||
"tr": "Tür", | |||
"pt-br": "Tipo" | |||
}, | }, | ||
"description": { | "description": { | ||
"en": "One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon.", | "en": "One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon.", | ||
"tr": "“info”, “reminder”, “warn” veya “error” değerlerden biri. Bu ayar, rengi ve simgeyi etkiler." | "es": "Uno de los siguientes: “info”, “reminder”, “warn”, o “error”. Este ajuste afecta al color y al icono.", | ||
"fr": "une des valeurs suggérées. Modifie la couleur de la boîte et l'icône associée.", | |||
"cs": "Jedna z možností “info”, “reminder”, “warn”, or “error” (informace, připomenutí, upozornění nebo chyba). Toto nastavení má vliv na barvu a ikonu.", | |||
"tr": "“info”, “reminder”, “warn” veya “error” değerlerden biri. Bu ayar, rengi ve simgeyi etkiler.", | |||
"pt-br": "Disponíveis: “info” (informação), “reminder” (lembrete), “warn” (aviso) e “error” (erro). Essa configuração afeta a cor e o ícone." | |||
}, | }, | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
Line 41: | Line 64: | ||
"error" | "error" | ||
], | ], | ||
"default": "info", | "default": { | ||
"en": "info", | |||
"pt-br": "info" | |||
}, | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "text": { | ||
"aliases": [ | "aliases": [ | ||
" | "1", | ||
"content" | |||
], | ], | ||
"label": { | "label": { | ||
"en": "Text", | "en": "Text", | ||
"tr": "Metin" | "es": "Texto", | ||
"fr": "texte affiché", | |||
"cs": "Text", | |||
"tr": "Metin", | |||
"pt-br": "Texto" | |||
}, | }, | ||
"description": { | "description": { | ||
"en": "Informative note.", | "en": "Informative note.", | ||
"tr": "Bilgilendirecek not." | "es": "Nota informativa.", | ||
"fr": "note d'information", | |||
"cs": "Informativní poznámka.", | |||
"tr": "Bilgilendirecek not.", | |||
"pt-br": "Nota informativa." | |||
}, | }, | ||
"type": "content", | |||
"required": true, | "required": true, | ||
" | "example": { | ||
"es": "Texto de la nota.", | |||
"fr": "Texte de la note." | |||
} | |||
} | } | ||
}, | }, | ||
Line 63: | Line 102: | ||
"inline", | "inline", | ||
"type", | "type", | ||
" | "text" | ||
] | ] | ||
} | } | ||
Line 69: | Line 108: | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category: | [[Category:Notice templates{{#translation:}}]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 16:37, 15 May 2025
{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:note/doc|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}
|
{{#ifeq:show |show
| Template:Mbox }}{{#if: | | {{#ifexist:Template:Note | [[Category:{{#switch:Template | Template | Project = Template | Module = Module | User = User | #default = MediaWiki }} documentation pages]] | }} }} | }}
| #default=
Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted
}} {{#switch:<translate></translate> |=
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:Note/doc|{{#ifeq:Template:Note/doc|{{#switch:
|#default = Note/doc | = {{#ifeq: | | Template:Note/doc | Note/doc }}
}}|0|1}}|not{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:note/doc|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|0}}}}|
|#default = Note/doc | = {{#ifeq: | | Template:Note/doc | Note/doc }}
}}|<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 = Note/doc | = {{#ifeq: | | Template:Note/doc | Note/doc }}
}}|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>}}
Note
{{#ifeq:doc|sandbox||{{#if:{{#ifexpr: (
{{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:note/doc|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}||}}}} | #default=
Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted
}} <templatedata> { "format": "block", "description": { "en": "Show a note in a box (e.g. a top-of-the-page warning).", "es": "Muestra una nota en un recuadro (p. ej. un aviso en la parte superior de la página).", "cs": "Zobrazí poznámku v poli (např. upozornění v horní části stránky)", "tr": "Bir kutuda bir not gösterin (ör. sayfanın üstü uyarısı).", "fr": "Affiche une note dans une boîte (exemple : un avertissement en haut de la page).", "pt-br": "Exibe uma nota em uma caixa (como um aviso no topo de uma página)." }, "params": { "inline": { "label": { "en": "Inline formatting", "es": "Formato en una sola línea", "fr": "format une ligne", "cs": "Inline formátování", "tr": "Satır içi biçimlendirme", "pt-br": "Formatação em linha" }, "description": { "en": "Show the template without line breaks before and after it.", "es": "Muestra la plantilla sin saltos de línea antes y después de ésta.", "fr": "affiche le modèle sans les sauts de ligne, ni avant, ni après.", "cs": "Zobrazí šablonu bez zalomení řádků před a za ní.", "tr": "Şablonu, öncesinde ve sonrasında satır kesmeleri olmadan gösterin.", "pt-br": "Exibe a predefinição sem quebras de linha antes ou após." }, "default": { "en": "0", "pt-br": "0" }, "autovalue": "1", "type": "boolean" }, "type": { "aliases": [ "2" ], "label": { "en": "Type", "es": "Tipo", "fr": "type de boîte", "cs": "Typ", "tr": "Tür", "pt-br": "Tipo" }, "description": { "en": "One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon.", "es": "Uno de los siguientes: “info”, “reminder”, “warn”, o “error”. Este ajuste afecta al color y al icono.", "fr": "une des valeurs suggérées. Modifie la couleur de la boîte et l'icône associée.", "cs": "Jedna z možností “info”, “reminder”, “warn”, or “error” (informace, připomenutí, upozornění nebo chyba). Toto nastavení má vliv na barvu a ikonu.", "tr": "“info”, “reminder”, “warn” veya “error” değerlerden biri. Bu ayar, rengi ve simgeyi etkiler.", "pt-br": "Disponíveis: “info” (informação), “reminder” (lembrete), “warn” (aviso) e “error” (erro). Essa configuração afeta a cor e o ícone." }, "suggestedvalues": [ "info", "reminder", "warn", "error" ], "default": { "en": "info", "pt-br": "info" }, "type": "string" }, "text": { "aliases": [ "1", "content" ], "label": { "en": "Text", "es": "Texto", "fr": "texte affiché", "cs": "Text", "tr": "Metin", "pt-br": "Texto" }, "description": { "en": "Informative note.", "es": "Nota informativa.", "fr": "note d'information", "cs": "Informativní poznámka.", "tr": "Bilgilendirecek not.", "pt-br": "Nota informativa." }, "type": "content", "required": true, "example": { "es": "Texto de la nota.", "fr": "Texte de la note." } } }, "paramOrder": [ "inline", "type", "text" ] } </templatedata>