mediawiki-skins-Vector/includes/templates/ButtonNew.mustache
bwang bed8e2523f Update VectorComponentButton to be able to handle all button designs/variants
Bug: T334881
Change-Id: Ib8735bc4f2fb7a7f6d5c230b9a3c847d8de423b8
2023-05-01 22:41:16 +00:00

9 lines
276 B
Plaintext

{{#href}}<a href="{{.}}"{{/href}}
{{^href}}<button{{/href}}
{{#id}}id="{{.}}"{{/id}}
class="{{class}}"
{{#array-attributes}}{{key}}="{{value}}"{{/array-attributes}}>{{!
}}{{#icon}}{{>Icon}}{{/icon}}<span>{{label}}</span>
{{#href}}</a>{{/href}}
{{^href}}</button>{{/href}}