« Modèle:Note » : différence entre les versions
test0>TheStoneBot m (→Usage : migration to {{#translation:}}, replaced: {{translation}} → {{#translation:}}) |
m (113 versions importées) |
||
(20 versions intermédiaires par 6 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<languages/> | <languages/> | ||
<onlyinclude>{{# | <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|}}}}}} | ||
{{#if: {{ | |||
|gotcha=error | |gotcha=error | ||
|=info | |=info | ||
|#default={{{2|}}} | |#default={{{2|{{{type|}}}}}} | ||
}} | }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div> | ||
| [[File: | | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|<translate><!--T:1--> Note</translate>|link=]] '''<translate><!--T:2--> Note:</translate>''' }}<!-- | ||
--></onlyinclude> | |||
{{documentation|content= | |||
{{ | |||
<translate> | <translate> | ||
== Usage == <!--T:3--> | == Usage == <!--T:3--> | ||
</translate> | </translate> | ||
<pre> | <pre> | ||
{{ | {{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}} | |||
</pre> | </pre> | ||
{{ | {{Note|Foo}} | ||
{{ | {{Note|Foo|info}} | ||
{{ | {{Note|Foo|reminder}} | ||
{{ | {{Note|Foo|warn}} | ||
{{ | {{Note|Foo|error}} | ||
{{ | {{Note}} <translate><!--T:4--> Loose test</translate> | ||
* Text {{Note|Foo|inline=1}} | |||
== Parameters == | |||
{{Note/doc}} | |||
{ | |||
}} | }} | ||
[[Category:Templates{{#translation:}}|{{PAGENAME}}]] | [[Category:Templates{{#translation:}}|{{PAGENAME}}]] |
Dernière version du 14 novembre 2021 à 14:21
<languages/>
{{#if: {{#if:||{{#if:demo|demo|}} }} | <templatestyles src="Note/styles.css" />
| <translate> Note:</translate> }}
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:<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}}
{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
| <translate> Note:</translate> }}
{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
| <translate> Note:</translate> }}
{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
| <translate> Note:</translate> }}
{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
| <translate> Note:</translate> }}
{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
| <translate> Note:</translate> }}
{{#if: {{#if:||{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
| <translate> Note:</translate> }} <translate> Loose test</translate>
- Text {{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />Foo
| <translate> Note:</translate> }}
Parameters
{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:note|doc|1|0}} or ( {{#ifeq:{{#titleparts:modèle:note|-1|-2}}|doc|1|0}} and {{#if:{{#invoke:Template translation|getLanguageSubpage}}|1|0}} ) )|1|}}
|
{{#ifeq:show |show
| Modèle:Mbox }}{{#if: | | {{#ifexist:Modèle:Note | [[Category:{{#switch:Modèle | Template | Project = Template | Module = Module | User = User | #default = MediaWiki }} documentation pages{{#translation:}}]] | [[Category:Documentation subpages without corresponding pages{{#translation:}}]] }} }} | }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Documentation subpage|noshift=1|uselang=⧼lang⧽}}
}} Modèle:TemplateData header <templatedata> { "format": "inline", "description": { "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ı)." }, "params": { "inline": { "label": { "en": "Inline formatting", "tr": "Satır içi biçimlendirme" }, "description": { "en": "Show the template without line breaks before and after it.", "tr": "Şablonu, öncesinde ve sonrasında satır kesmeleri olmadan gösterin." }, "default": "0", "autovalue": "1", "type": "boolean" }, "type": { "aliases": [ "2" ], "label": { "en": "Type", "tr": "Tür" }, "description": { "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." }, "suggestedvalues": [ "info", "reminder", "warn", "error" ], "default": "info", "type": "string" }, "1": { "aliases": [ "text" ], "label": { "en": "Text", "tr": "Metin" }, "description": { "en": "Informative note.", "tr": "Bilgilendirecek not." }, "required": true, "type": "content" } }, "paramOrder": [ "inline", "type", "1" ] } </templatedata> Modèle:Sandbox other| [[Category:Template documentation pages{{#translation:}}]] }} [[Category:Templates{{#translation:}}|Note]]