mediawiki-skins-Citizen/templates/PageTools__languages.mustache
alistair3149 3ec84349b1
feat(core): add support for user-interface-preferences menu
This should also fix the issue of ULS not showing up (#587, #425).
2023-02-15 18:38:02 -05:00

28 lines
1 KiB
Plaintext

{{!
object data-page-languages
object data-page-variants
bool is-uls-ready
}}
<div class="citizen-languages page-actions__item citizen-menu-checkbox-container">
<input
type="checkbox"
id="citizen-languages__checkbox"
class="citizen-menu-checkbox-checkbox {{#is-uls-ready}}mw-interlanguage-selector{{/is-uls-ready}}"
role="button"
aria-labelledby="citizen-languages__buttonCheckbox"
aria-haspopup="true">
<label
id="citizen-languages__buttonCheckbox"
class="citizen-menu-checkbox-button page-actions__button"
for="citizen-languages__checkbox"
title="{{msg-citizen-languages-toggle}}"
aria-hidden="true"
data-counter-text="{{html-language-count}}">
<span class="citizen-ui-icon mw-ui-icon-wikimedia-language"></span>
<span>{{msg-citizen-languages-toggle}}</span>
</label>
<aside id="citizen-languages__card" class="page-actions__card citizen-menu-checkbox-target">
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
{{#data-portlets.data-variants}}{{>Menu}}{{/data-portlets.data-variants}}
</aside>
</div>