Template:Note/en: Difference between revisions

From Open Mower Wiki
Jump to navigation Jump to search
en>FuzzyBot
Updating to match new version of source page
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<onlyinclude>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}}
<onlyinclude>{{#if: {{{1|{{{content|{{{text|{{{demo|<noinclude>demo</noinclude>}}}}}}}}}}}} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}}
     |gotcha=error
     |gotcha=error
    |warning=warn
    |notice=info
     |=info
     |=info
     |#default={{{2|{{{type|}}}}}}
     |#default={{{2|{{{type|}}}}}}
     }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div>
     }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{content|{{{text}}}}}}}}}</div>
   | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|alt=Note|link=]]&nbsp;'''Note:''' }}<!--
   | [[File:OOjs UI icon lightbulb-yellow.svg|18px|alt=Note|link=]]&nbsp;'''Note:''' }}<!--
--></onlyinclude>
--></onlyinclude>
{{documentation|content=
{{documentation|content=
== Usage ==
== Usage ==
<pre>
<pre>
{{Note|Foo}}
{{Note|text=Foo}}
{{Note|Foo|info}}
{{Note|type=info|text=Foo}}
{{Note|Foo|reminder}}
{{Note|type=reminder|text=Foo}}
{{Note|Foo|warn}}
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}}
{{Note|Foo|error}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}} Loose test
{{Note}} Loose test


* Text {{Note|Foo|inline=1}}
* Text {{Note|inline=1|text=Foo}}
</pre>
</pre>
{{Note|Foo}}
{{Note|text=Foo}}
{{Note|Foo|info}}
{{Note|type=info|text=Foo}}
{{Note|Foo|reminder}}
{{Note|type=reminder|text=Foo}}
{{Note|Foo|warn}}
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}}
{{Note|Foo|error}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}} Loose test
{{Note}} Loose test


* Text {{Note|Foo|inline=1}}
* Text {{Note|inline=1|text=Foo}}


== Parameters ==
== Parameters ==


{{Note/doc}}
{{Note/doc}}
== See also ==
* {{tl|warn}}, shortcut for this template with <code>type=warning</code>.
* {{tl|mbox}}, and in particular the namespace-agnostic {{tl|ombox}}, which by default resembles a typical "info" template.


}}
}}
[[Category:Templates{{#translation:}}|{{PAGENAME}}]]
[[Category:Templates{{#translation:}}|{{PAGENAME}}]]

Latest revision as of 16:37, 15 May 2025

{{#if: demo |

{{{text}}}
 | Note Note: }}

Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted{{#if:== Usage ==

{{Note|text=Foo}}
{{Note|type=info|text=Foo}}
{{Note|type=reminder|text=Foo}}
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}} Loose test

* Text {{Note|inline=1|text=Foo}}

{{#if: Foo |

Foo
 | <translate> Note</translate> <translate> Note:</translate> }}

{{#if: Foo |

Foo
 | <translate> Note</translate> <translate> Note:</translate> }}

{{#if: Foo |

Foo
 | <translate> Note</translate> <translate> Note:</translate> }}

{{#if: Multiple
lines
of
text |

Multiple
lines
of
text
 | <translate> Note</translate> <translate> Note:</translate> }}

{{#if: Foo |

Foo
 | <translate> Note</translate> <translate> Note:</translate> }}

{{#if: Foo |

Foo
 | <translate> Note</translate> <translate> Note:</translate> }}

{{#if: |

{{{text}}}
 | <translate> Note</translate> <translate> Note:</translate> }} Loose test
  • Text {{#if: Foo |
    Foo
 | <translate> Note</translate> <translate> Note:</translate> }}

Parameters

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:note/en|-1|-2}}|doc|1|0}} and {{#if:/en|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/en]]
                  | 
                 }}
        }}
    | 
   }}

| #default=

 Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted

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

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

}}|{{#ifexpr:{{#if:Note/doc|{{#ifeq:Template:Note/en|{{#switch:

|#default = Note/doc 
| = 
   {{#ifeq:  | 
     | Template:Note/doc            
     | Note/doc      
   }}

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

|#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:en|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:note/en|-1|-2}}|doc|1|0}} and {{#if:/en|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> {{#switch:en|sandbox|doc=|#default= }}

See also

  • {{{{#ifeq:Template:Warn|
 |

}}[[Special:MyLanguage/Template:warn|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Template|Template:}}Warn/Page display title/en

 |{{#ifexpr:{{#if:0|1|0}} and 10!=0
   |{{#ifeq:en|en
     |Warn
     |{{#if:
        |{{#ifeq:Script error: No such module "string".|0
          |
          | Script error: No such module "string".
        }}
        |{{#if:{{ Template:TNTN | nsp = 0 }}
          |{{ Template:TNTN | nsp = 0 }}
          |Template:warn
       }}
     }}
   }}
   |{{ Template:TNTN }}
 }}
 |{{#if:0
   |{{#if:Warn
     |Warn
     |Template:warn
   }}
   |Template:warn
 }}

}}}}]]{{#ifeq:Template:Warn|

 |

}} }}, shortcut for this template with type=warning.

  • {{{{#ifeq:Template:Mbox|
 |

}}[[Special:MyLanguage/Template:mbox|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Template|Template:}}Mbox/Page display title/en

 |{{#ifexpr:{{#if:0|1|0}} and 10!=0
   |{{#ifeq:en|en
     |Mbox
     |{{#if:
        |{{#ifeq:Script error: No such module "string".|0
          |
          | Script error: No such module "string".
        }}
        |{{#if:{{ Template:TNTN | nsp = 0 }}
          |{{ Template:TNTN | nsp = 0 }}
          |Template:mbox
       }}
     }}
   }}
   |{{ Template:TNTN }}
 }}
 |{{#if:0
   |{{#if:Mbox
     |Mbox
     |Template:mbox
   }}
   |Template:mbox
 }}

}}}}]]{{#ifeq:Template:Mbox|

 |

}} }}, and in particular the namespace-agnostic {{{{#ifeq:Template:Ombox|

 |

}}[[Special:MyLanguage/Template:ombox|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Template|Template:}}Ombox/Page display title/en

 |{{#ifexpr:{{#if:0|1|0}} and 10!=0
   |{{#ifeq:en|en
     |Ombox
     |{{#if:
        |{{#ifeq:Script error: No such module "string".|0
          |
          | Script error: No such module "string".
        }}
        |{{#if:{{ Template:TNTN | nsp = 0 }}
          |{{ Template:TNTN | nsp = 0 }}
          |Template:ombox
       }}
     }}
   }}
   |{{ Template:TNTN }}
 }}
 |{{#if:0
   |{{#if:Ombox
     |Ombox
     |Template:ombox
   }}
   |Template:ombox
 }}

}}}}]]{{#ifeq:Template:Ombox|

 |

}} }}, which by default resembles a typical "info" template.| }}