mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-15 11:58:44 +00:00
5e4b0ef26a
When looking at raw html it always looks like something is missing when there are trailing or leading spaces on attributes. Just move the space into the conditions and it looks better. Change-Id: I2a8d3246c43b8345eb819eae5887a39f68cfbdc0
10 lines
373 B
Plaintext
10 lines
373 B
Plaintext
{{#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}}
|