mediawiki-skins-Citizen/templates/PageTools__languages.mustache
alistair3149 a2d3159def
feat(core): replace checkbox hack with details and summary
Note that ToC is still using the old checkbox hack, it will be replaced in a later time.
Related: T333394
2024-05-30 02:20:13 -04:00

18 lines
733 B
Plaintext

{{!
object data-page-languages
object data-page-variants
bool is-uls-ready
}}
<details class="citizen-page-languages page-actions__item citizen-menu__dropdown">
<summary
class="citizen-menu__dropdownButton {{#is-uls-ready}}mw-interlanguage-selector{{/is-uls-ready}}"
title="{{msg-citizen-languages-toggle}}"
data-counter-text="{{html-language-count}}">
<span class="citizen-ui-icon mw-ui-icon-wikimedia-language"></span>
<span>{{msg-citizen-languages-toggle}}</span>
</summary>
<aside id="citizen-languages__card" class="citizen-menu__card">
{{#data-portlets.data-languages}}{{>Menu}}{{/data-portlets.data-languages}}
{{#data-portlets.data-variants}}{{>Menu}}{{/data-portlets.data-variants}}
</aside>
</details>