Відмінності між версіями «Шаблон:BS button»

нема опису редагування
 
(Не показано 13 проміжних версій цього користувача)
Рядок 1: Рядок 1:
<span class="btn btn-{{{outline}}}-{{{color}}} btn-{{{size}}}"> {{{text}}} </span><noinclude><templatedata>
<span class="btn btn-{{{outline}}}-{{{outline-color}}} btn-{{{color}}} btn-{{{size}}} href={{{href}}}> {{{text}}} </span><noinclude><templatedata>
{
{
"params": {
"params": {
"color": {
"color": {
"label": "Колір бейджу",
"label": "Колір кнопки",
"example": "primary, secondary, success, danger, warning, info, light, dark",
"example": "primary, secondary, success, danger, warning, info, light, dark",
"type": "string",
"type": "string",
"default": "primary",
"autovalue": ""
"autovalue": "primary",
"suggested": true
},
},
"text": {
"text": {
Рядок 15: Рядок 13:
"type": "string",
"type": "string",
"required": true,
"required": true,
"suggested": true
},
"size": {
"example": "lg, sm, md",
"type": "string",
"default": "sm",
"label": "Розмір",
"suggested": true
},
"href": {
"example": "google.com",
"type": "url",
"label": "Посилання",
"suggested": true
"suggested": true
},
},
"outline": {
"outline": {
"label": "Контурные кнопки (без фона)",
"label": "Тільки контур",
"example": "btn-outline",
"type": "string",
"type": "string",
"autovalue": "btn-outline"
"default": "outline"
},
},
"size": {
"outline-color": {
"example": "lg, sm, md",
"label": "Колір без фону",
"type": "string",
"example": "primary, secondary, success, danger, warning, info, light, dark",
"default": "md",
"type": "string"
"label": "Розмір"
}
}
},
},
Рядок 33: Рядок 42:
"format": "block",
"format": "block",
"paramOrder": [
"paramOrder": [
"href",
"color",
"color",
"text",
"text",
"size",
"outline",
"outline",
"size"
"outline-color"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>