mediawiki-skins-MinervaNeue/includes/Skins/ToggleList/ToggleListItem.mustache
jdlrobson 17968826fa Move components files up one level into Skins directory
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
2021-10-22 18:45:38 +00:00

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>&nbsp;{{/icon}}
<span class="toggle-list-item__label">{{text}}</span>
</a>
</li>
{{/components}}