Module talk:Navbox

Latest comment: 4 years ago by Tacsipacsi in topic Directionality

Class collapsible was changed edit

I changed class from 'collapsible' to 'mw-collapsible mw-collapsed' (diff). Because toggle button showed [⧼collapsible-expand⧽] and [⧼collapsible-collapse⧽]. After the edit, toggle button shows [Expand] and [Collapse] (for example at Template:Bibliographic properties).

I took the class name from Template:ExternalUse/text/en of Template:ExternalUse. But I don't know that my edit is fully valid or not.

So if there is any problems, please revert the edit or change the code. Thanks. --Was a bee (talk) 02:21, 24 June 2018 (UTC)Reply

Hi @Was a bee: I reverted your edit as the start configuration of the template (collapsed / uncollapsed) had stopped working. The navigation boxes I checked out displayed as collapsed, even though they were supposed to be displayed as uncollapsed. In don't feel comfortable enough trying to debug the code myself. Cheers. --Beat Estermann (talk) 15:32, 15 August 2018 (UTC) Update: I reverted the revert, as it did not solve the problem (example where it occurs). --Beat Estermann (talk) 15:50, 15 August 2018 (UTC)Reply

Directionality edit

@Mr. Ibrahem: since you added directionality support – is there a reason why you implemented it using the “rtl” interface message, rather than using mw.language:getDir as in Module:Cycling race? (context) --Lucas Werkmeister (talk) 12:28, 26 November 2019 (UTC)Reply

@Lucas Werkmeister: Cycling race uses content language, while this one tries to use interface language. The latter can be used in MediaWiki only through hacks like MediaWiki:lang or MediaWiki:rtl, both of which use MediaWiki messages defined on-wiki (not on translatewiki.net). It could use mw.getLanguage(mw.getCurrentFrame():preprocess('{{int:lang}}')):getDir()—but that wouldn’t work, either ({{int:lang}} gives “en” using nqo interface language, which, of course, resolves to left-to-right). The current solution would need MediaWiki:rtl/nqo to be created; the getDir one requires MediaWiki:lang/nqo. —Tacsipacsi (talk) 22:34, 8 December 2019 (UTC)Reply
Return to "Navbox" page.