mediawiki-skins-Vector/includes/templates/Button.mustache

10 lines
373 B
Plaintext
Raw Normal View History

{{#href}}<a href="{{.}}"{{/href}}
{{^href}}<button{{/href}}
{{#id}}id="{{.}}"{{/id}}
{{#event}}data-event-name="{{.}}"{{/event}}
class="mw-ui-button{{#is-quiet}} mw-ui-quiet{{/is-quiet}}{{#icon}} mw-ui-icon mw-ui-icon-element mw-ui-icon-{{.}}{{/icon}} {{class}}">
{{{html-vector-button-icon}}}
<span>{{label}}</span>
{{#href}}</a>{{/href}}
{{^href}}</button>{{/href}}