mediawiki-skins-Citizen/templates/PageTools__languages.mustache
alistair3149 ef955c28a0
feat(core): use MW core checkboxHack instead
We no longer need to emulate the same feature when it is in core
2023-01-25 19:40:52 -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 mw-checkbox-hack-container">
<input
type="checkbox"
id="citizen-languages__checkbox"
class="mw-checkbox-hack-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="mw-checkbox-hack-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-textLanguage"></span>
<span>{{msg-citizen-languages-toggle}}</span>
</label>
<aside id="citizen-languages__card" class="page-actions__card mw-checkbox-hack-target">
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
{{#data-portlets.data-variants}}{{>Menu}}{{/data-portlets.data-variants}}
</aside>
</div>