Template:Note: Difference between revisions

From Posstack.com Documentation
(Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{TemplateData header|editlinks=1|docpage=Note/doc}} <templatedata> { "format": "inline", "description": { "en": "Show a note in a box (e.g. a top-of-the-page warning).", "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ı)." }, "params": { "1...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
<onlyinclude>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
    |gotcha=error
{{TemplateData header|editlinks=1|docpage=Note/doc}}
    |=info
<templatedata>
    |#default={{{2|{{{type|}}}}}}
{
    }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div>
"format": "inline",
  | [[File:OOjs UI icon lightbulb-yellow.svg|18px|alt=<translate><!--T:1--> Note</translate>|link=]]&nbsp;'''<translate><!--T:2--> Note:</translate>''' }}<!--
"description": {
--></onlyinclude>
"en": "Show a note in a box (e.g. a top-of-the-page warning).",
{{documentation|content=
"cs": "Zobrazí poznámku v poli (např. upozornění v horní části stránky)",
<translate>
"tr": "Bir kutuda bir not gösterin (ör. sayfanın üstü uyarısı)."
== Usage == <!--T:3-->
},
</translate>
"params": {
<pre>
"1": {
{{Note|Foo}}
"aliases": [
{{Note|Foo|info}}
"text"
{{Note|Foo|reminder}}
],
{{Note|Foo|warn}}
"label": {
{{Note|Foo|error}}
"en": "Text",
{{Note}} <translate nowrap><!--T:6--> Loose test</translate>
"cs": "Text",
 
"tr": "Metin"
* Text {{Note|Foo|inline=1}}
},
</pre>
"description": {
{{Note|Foo}}
"en": "Informative note.",
{{Note|Foo|info}}
"cs": "Informativní poznámka.",
{{Note|Foo|reminder}}
"tr": "Bilgilendirecek not."
{{Note|Foo|warn}}
},
{{Note|Foo|error}}
"required": true,
{{Note}} <translate><!--T:4--> Loose test</translate>
"type": "content"
 
},
* Text {{Note|Foo|inline=1}}
"inline": {
 
"label": {
== Parameters ==
"en": "Inline formatting",
 
"cs": "Inline formátování",
{{Note/doc}}
"tr": "Satır içi biçimlendirme"
},
"description": {
"en": "Show the template without line breaks before and after it.",
"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",
"cs": "Typ",
"tr": "Tür"
},
"description": {
"en": "One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon.",
"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"
}
},
"paramOrder": [
"inline",
"type",
"1"
]
}
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Notice templates{{#translation:}}]]
}}</includeonly>

Latest revision as of 10:13, 27 July 2023

{{{text}}}

{{documentation|content= <translate>

Usage

</translate>

{{Note|Foo}}
{{Note|Foo|info}}
{{Note|Foo|reminder}}
{{Note|Foo|warn}}
{{Note|Foo|error}}
{{Note}} <translate nowrap><!--T:6--> Loose test</translate>

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

File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> <translate> Loose test</translate>

  • Text
    Foo

Parameters