Шаблон:Основа — различия между версиями

Материал из ALL
Перейти к: навигация, поиск
(шаблон)
 
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
 
{|style="clear: both; width: 60%; border: 1px solid #AAB; border-left: 8px solid #{{Основа/border-color|{{{1|{{{type|}}}}}}}}; background-color: #{{Основа/background-color|{{{1|{{{type|}}}}}}}}; padding: 0px 4px; margin: 1px auto;"
 
{|style="clear: both; width: 60%; border: 1px solid #AAB; border-left: 8px solid #{{Основа/border-color|{{{1|{{{type|}}}}}}}}; background-color: #{{Основа/background-color|{{{1|{{{type|}}}}}}}}; padding: 0px 4px; margin: 1px auto;"
|style="width: {{#if: {{{3|{{{title|}}}}}} | 36px | 28px}};" | [[Файл:{{{image|{{#ifeq: {{{1|{{{type|}}}}}} | good | Ok.png | {{#ifeq: {{{1|{{{type|}}}}}} | attention | Attention.png | {{#ifeq: {{{1|{{{type|}}}}}} | bad | Stop.png | Ok.png }} }} }} }}} | {{#if: {{{3|{{{title|}}}}}} | 32px | 24px}}|link=]]
+
|style="width: {{#if: {{{3|{{{title|}}}}}} | 36px | 28px}};" | [[Файл:{{{image|{{#ifeq: {{{1|{{{type|}}}}}} | good | PD-icon.png | {{#ifeq: {{{1|{{{type|}}}}}} | attention | Attention.png | {{#ifeq: {{{1|{{{type|}}}}}} | bad | Stop.png | Ok.png }} }} }} }}} | {{#if: {{{3|{{{title|}}}}}} | 32px | 24px}}|link=]]
 
|style="line-height: normal; text-align: left;" class="small" | {{#if: {{{3|{{{title|}}}}}} | '''{{{3|{{{title|}}}}}}'''<br/>}}{{{2|{{{text|text}}}}}}
 
|style="line-height: normal; text-align: left;" class="small" | {{#if: {{{3|{{{title|}}}}}} | '''{{{3|{{{title|}}}}}}'''<br/>}}{{{2|{{{text|text}}}}}}
 
|}<includeonly>{{#ifeq:[[Категория:{{{category}}}]] }}</includeonly>
 
|}<includeonly>{{#ifeq:[[Категория:{{{category}}}]] }}</includeonly>

Текущая версия на 21:24, 7 ноября 2014

Ok.png text

Правила использования: Вставляется конструкция типа {{Основа|type|text|title}}

  • type — тип шаблона: good, attention или bad
  • title — заголовок (опц.)
  • text — основной текст
  • image — изображение (опц.)
  • category — категория (без префикса «Категория», опц.)