Le 28/05/2016 à 16:15, Ricordisamoa a écrit :
> With https://gerrit.wikimedia.org/r/288633 some new classes in the Babel
> extension were put into a new namespace "MediaWiki\Babel\BabelBox".
> Legoktm approved but Thiemo Mättig (WMDE) disagrees. PHPUnit tests are
> already in namespace "Babel\Tests".

Hello,

I believe all extensions/skins should use MediaWiki as a root namespace.
You never know whether one day there will be a global Babel library that
would end up clashing.

One might even ask for the namespace hierarchy to be standardized
somehow. A random example would be:

 MediaWiki/extension - reserved for extensions
 MediaWiki/skin - reserved for skins

With MediaWiki core namespaces directly at the root and the
extensions/skins under the subnamespaces.  Thus we would have:

  MediaWiki/extension/Babel/Box
  MediaWiki/extension/Babel/Tests


So in short: for extensions/skins I would use MediaWiki as a prefix.

For standalone libraries, we already use the lib name as the root
namespace, for example Cdb.

Then Maybe part of the Bable extension could be extracted as a
non-mediawiki standalone extension. In this case it would make sense to
use 'Babel' as the namespace with the MediaWiki glue being under
MediaWiki/extension/Babel.




-- 
Antoine "hashar" Musso


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to