Шаблон:Note: различия между версиями
м (Добавил nobanner) |
м (1 версия импортирована) |
||
(не показано 18 промежуточных версий 2 участников) | |||
Строка 1: | Строка 1: | ||
< | <languages/> | ||
<onlyinclude>{{#switch: | |||
| = | |||
{{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <div role="note" class="note note-{{#switch:{{{2|}}} | |||
|gotcha=error | |||
|=info | |||
|#default={{{2|}}} | |||
}}" style="background-position:{{dir|{{pagelang}}|right|left}} 7px top 50%; {{dir|{{pagelang}}|padding-right: 40px; padding-left: 0.5em;|padding-right: 0.5em; padding-left: 40px;}} {{#if:{{{inline|}}}|display:inline-block; vertical-align:middle;}}">{{{1}}}</div> | |||
| [[File:Bulbgraph.png|18px|Заметка|link=]] '''Заметка:''' }} | |||
| #default= | |||
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}} | |||
}}</onlyinclude> | |||
{{documentation|content= | |||
== Использование == | == Использование == | ||
<pre> | <pre> | ||
{{note|note| | {{note|Foo}} | ||
{{note|Foo|reminder}} | |||
{{note|Foo|error}} | |||
{{note|Foo|gotcha}} | |||
{{tip|Foo}} | |||
{{note}} Свободный тест | |||
{{tip}} Свободный тест | |||
* Text {{note|Foo|inline=1}} | |||
</pre> | </pre> | ||
{{note|Foo}} | |||
{{note|Foo|reminder}} | |||
{{note|Foo|error}} | |||
{{note|Foo|gotcha}} | |||
{{tip|Foo}} | |||
{{note}} Свободный тест | |||
{{tip}} Свободный тест | |||
{{ | |||
* Text {{note|Foo|inline=1}} | |||
{{note| | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
" | "type": "content", | ||
" | "label": "Text", | ||
"required": true | |||
"required": true | |||
}, | }, | ||
"2": { | "2": { | ||
"label": " | "label": "Type", | ||
"description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.", | |||
"description": " | |||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
"description": " | "format": "inline", | ||
"description": "Show a note in a box (e.g. a top-of-the-page warning)." | |||
} | } | ||
</templatedata> | </templatedata> | ||
}} | |||
[[Category:Templates{{#translation:}}|{{PAGENAME}}]] |
Версия 15:25, 6 декабря 2018
{{{1}}}
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}