Page MenuHomePhabricator

Enable tabbedWindow Gadget for Help Namespace on Mediawiki.org
Closed, ResolvedPublic

Description

I'm currently working on T240232: Provide best practices concerning writing help pages on wikis. So far, the comparative review I've made (T238784) shown that providing help for different cases is nicely done using tabs. This is what Medium, Google or Slack use them to detail how to use their services for instance on Android or iOS.

I'm currently working on T240233: Apply best practices to a subset of pages on Growth target wikis, I started with How to add a citation. I developped some sub-sections on this page to list the different cases for VE, Wikitext, mobile... I just miss the tabs now. :)

Can someone edit the JavaScript file to add the Help namespace to the list of supported namespaces?

Thanks!

Event Timeline

@Krinkle or @Ladsgroup one of them should be able to make this change as they have the interface admin rights. I think we need to change this line var supportedNamespaces = [ 'API' ] to var supportedNamespaces = [ 'API', 'HELP' ]

Ladsgroup closed this task as Resolved.Dec 18 2019, 5:50 PM
Ladsgroup claimed this task.

Done. It should be var supportedNamespaces = [ 'API', 'Help' ]. Given that mw.config.get( 'wgCanonicalNamespace' ) returns Help in Help namespace pages.

I guess these edits broke it but I leave it to @Krinkle to fix or revert them. I don't see any errors in console though.

I guess these edits broke it but I leave it to @Krinkle to fix or revert them. I don't see any errors in console though.

Nope, adding a new namespace actually unearthed a bug. It should be fixed now.

Ladsgroup closed this task as Resolved.Dec 18 2019, 6:52 PM

It is! thank you!