mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-25 14:47:08 +00:00
17968826fa
Follow up to I4c2e115451c0a76c742734730712814c1f1d838d. This will allow us to load the templates directly into skin.mustache via {{>PartialName}} Templates partials can only be resolved relative to the folder given to the TemplateParser. Change-Id: I5783d49c25d2efcf4781dd912500bf8b413b8cb6
17 lines
572 B
Plaintext
17 lines
572 B
Plaintext
{{!
|
|
array components
|
|
string|null components.class Optional anchor CSS class.
|
|
string|null components.href Optional URI.
|
|
string|null components.text Optional text.
|
|
string|null components.data-event-name Optional tracking code.
|
|
}}
|
|
{{#components}}
|
|
<li class="toggle-list-item">
|
|
<a class="toggle-list-item__anchor {{class}}" href="{{href}}"
|
|
data-event-name="{{data-event-name}}" data-mw="interface">
|
|
{{#icon}}<span class="mw-ui-icon mw-ui-icon-{{.}}"></span> {{/icon}}
|
|
<span class="toggle-list-item__label">{{text}}</span>
|
|
</a>
|
|
</li>
|
|
{{/components}}
|