226
правок
L27001 (обсуждение | вклад) мНет описания правки |
L27001 (обсуждение | вклад) (Добавил центрирование текста) |
||
Строка 1: | Строка 1: | ||
<includeonly><div class="badge {{#if:{{{type|}}}| {{{type}}}-badge}}">{{#if:{{{icon|}}}|{{#fas:{{{icon}}} fa-xl}} }}<span style="margin-left: 10px;">{{{text}}}</span></div></includeonly> | <includeonly><div class="badge {{#if:{{{type|}}}| {{{type}}}-badge}}"{{#ifeq:{{{center}}}|1| style="text-align: center;"}}>{{#if:{{{icon|}}}| {{#fas:{{{icon}}} fa-xl}} }}<span style="margin-left: 10px;">{{{text}}}</span></div></includeonly> | ||
<noinclude> | <noinclude> | ||
'''Примеры:''' | '''Примеры:''' | ||
Строка 10: | Строка 10: | ||
''icon=circle-info + type=info:'' | ''icon=circle-info + type=info:'' | ||
{{Подсказка|text=Сообщение|icon=circle-info|type=info}} | {{Подсказка|text=Сообщение|icon=circle-info|type=info}} | ||
''Без указания значка и типа:'' | ''Без указания значка и типа, но текст центрирован:'' | ||
{{Подсказка|text=Сообщение}} | {{Подсказка|text=Сообщение|center=1}} | ||
<hr> | <hr> | ||
<templatedata> | <templatedata> | ||
Строка 46: | Строка 46: | ||
], | ], | ||
"suggested": true | "suggested": true | ||
}, | |||
"center": { | |||
"label": "Центрировать текст", | |||
"type": "boolean", | |||
"default": "0", | |||
"required": true | |||
} | } | ||
}, | }, | ||
"description": "Информационное сообщение", | "description": "Информационное сообщение", | ||
"format": "block" | "format": "block", | ||
"paramOrder": [ | |||
"text", | |||
"type", | |||
"icon", | |||
"center" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |