16 885
правок
(Новая страница: «<languages/> <onlyinclude>{{#switch: | = {{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <div role="note" class="note note…») |
м (Добавил nobanner) |
||
(не показано 19 промежуточных версий 2 участников) | |||
Строка 1: | Строка 1: | ||
< | <includeonly><span role="note" class="note note-{{{1}}}" >{{{2}}}</span></includeonly><noinclude> | ||
== Использование == | == Использование == | ||
=== Код === | |||
Скопируйте wiki-код, вставьте в нужное место страницы и измените текст сообщения. | |||
<pre> | <pre> | ||
{{note| | {{note|note| Заметка, совет }} | ||
</pre> | |||
<pre> | |||
{{note|info| Информация }} | |||
</pre> | </pre> | ||
<pre> | |||
{{note|warn| Предупреждение }} | |||
</pre> | |||
<pre> | |||
{{note|nobanner| Строка без баннера}} | |||
</pre> | |||
=== Результат === | |||
{{note|note| Заметка, совет }} | |||
{{note|info| Информация }} | |||
{{note|warn| Предупреждение }} | |||
{{note|nobanner| Строка без баннера}} | |||
== Описание == | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
" | "label": "Тип заметки", | ||
" | "example": "note, info, warn", | ||
"required": true | "description": "От типа заметки зависит её цвет", | ||
"required": true, | |||
"type": "line" | |||
}, | }, | ||
"2": { | "2": { | ||
"label": " | "label": "Текст заметки", | ||
"description": " | "required": true, | ||
"description": "Любая строка", | |||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
"description": "Вставляет в страницу блок с текстом. Цвет блока зависит от типа заметки." | |||
"description": " | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | |||