Last modified: 2014-08-22 18:38:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71916, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69916 - Namespacing templates
Namespacing templates
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Mantle (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-22 18:33 UTC by Jon
Modified: 2014-08-22 18:38 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jon 2014-08-22 18:33:39 UTC
Currently two extensions could register the following RL modules

'ext.foo' => array(
'templates' => 'common.template'
);

'ext.bar' => array(
'templates' => 'common.template'
);

Both would be registered as common.template, e.g name of template would be registered based on filename, and cause the throwing of an exception.

( On the JavaScript side we call
mw.mantle.template.get( 'common.template' ) - this would not know which template to use.)

We should namespace these templates better

e.g.

mw.mantle.template.get( 'ext.foo/common.template' )
mw.mantle.template.get( 'ext.bar/common.template' )

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links