Go to the documentation of this file.
8 'msg' =>
'Empty registry',
11 mw.loader.addSource( {
13 "loadScript": "/w/load.php",
14 "apiScript": "/w/api.php"
16 } );mw.loader.register( [] );'
19 'msg' =>
'Basic registry',
24 mw.loader.addSource( {
26 "loadScript": "/w/load.php",
27 "apiScript": "/w/api.php"
29 } );mw.loader.register( [
37 'msg' =>
'Group signature',
44 mw.loader.addSource( {
46 "loadScript": "/w/load.php",
47 "apiScript": "/w/api.php"
49 } );mw.loader.register( [
69 'msg' =>
'Different target (non-test should not be registered)',
75 mw.loader.addSource( {
77 "loadScript": "/w/load.php",
78 "apiScript": "/w/api.php"
80 } );mw.loader.register( [
88 'msg' =>
'Foreign source',
91 'loadScript' =>
'http://example.org/w/load.php',
92 'apiScript' =>
'http://example.org/w/api.php',
99 mw.loader.addSource( {
101 "loadScript": "/w/load.php",
102 "apiScript": "/w/api.php"
105 "loadScript": "http://example.org/w/load.php",
106 "apiScript": "http://example.org/w/api.php"
108 } );mw.loader.register( [
123 'msg' =>
'Advanced (everything combined)',
126 'loadScript' =>
'http://example.org/w/load.php',
127 'apiScript' =>
'http://example.org/w/api.php',
134 'dependencies' =>
array(
139 'dependencies' =>
array(
144 'dependencies' =>
array(
150 'dependencies' =>
array(
167 'source' =>
'example',
170 'targets' =>
array(
'x-foo' ),
173 'source' =>
'example',
174 'targets' =>
array(
'x-foo' ),
178 mw.loader.addSource( {
180 "loadScript": "/w/load.php",
181 "apiScript": "/w/api.php"
184 "loadScript": "http://example.org/w/load.php",
185 "apiScript": "http://example.org/w/api.php"
187 } );mw.loader.register( [
262 if ( isset( $case[
'sources'] ) ) {
263 $this->
setMwGlobals(
'wgResourceLoaderSources', $case[
'sources'] );
267 $rl = $context->getResourceLoader();
269 $rl->register( $case[
'modules'] );
272 ltrim( $case[
'out'],
"\n" ),
testGetModuleRegistrations( $case)
@dataProvider provideGetModuleRegistrations @covers ResourceLoaderStartUpModule::getModuleRegistratio...
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
static getModuleRegistrations(ResourceLoaderContext $context)
Get registration code for all modules.
static getResourceLoaderContext()
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
static provideGetModuleRegistrations()