Template:Note/en

From CasperARC
< Template:Note
Revision as of 17:44, 13 December 2024 by Tate (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<languages/>

{{#if: demo |

{{{text}}}
 | File:OOjs UI icon lightbulb-yellow.svg Note: }}

Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.{{#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
 | File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> }}

{{#if: Foo |

Foo
 | File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> }}

{{#if: Foo |

Foo
 | File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> }}

{{#if: Multiple
lines
of
text |

Multiple
lines
of
text
 | File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> }}

{{#if: Foo |

Foo
 | File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> }}

{{#if: Foo |

Foo
 | File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> }}

{{#if: |

{{{text}}}
 | File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> }} Loose test
  • Text {{#if: Foo |
    Foo
 | File:OOjs UI icon lightbulb-yellow.svg <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:{{#translation:}}|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{{#translation:}}]]
                  | [[Category:Documentation subpages without corresponding pages{{#translation:}}]]
                 }}
        }}
    | 
   }}

| #default=

 {{#switch:

| = {{#if:{{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:note/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|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{{#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: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:{{#translation:}}|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:{{#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: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:{{#translation:}}|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:||This is the TemplateData documentation for this template used by VisualEditor and other tools.}}

Note

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

{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:note/en|-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> { "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)." }, "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" }, "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." }, "default": "0", "autovalue": "1", "type": "boolean" }, "type": { "aliases": [ "2" ], "label": { "en": "Type",

               "es": "Tipo",

"fr": "type de boîte", "cs": "Typ", "tr": "Tür" }, "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." }, "suggestedvalues": [ "info", "reminder", "warn", "error" ], "default": "info", "type": "string" }, "text": { "aliases": [ "1", "content" ], "label": { "en": "Text",

               "es": "Texto",

"fr": "texte affiché", "cs": "Text", "tr": "Metin" }, "description": { "en": "Informative note.",

               "es": "Nota informativa.",

"fr": "note d'information", "cs": "Informativní poznámka.", "tr": "Bilgilendirecek not." }, "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= [[Category:Notice templates{{#translation:}}]] }}

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.| [[Category:Template documentation pages{{#translation:}}]] }} [[Category:Templates{{#translation:}}|Note/en]]