25 parent::__construct( $config );
28 $this->includeAllValue = $config[
'includeAllValue'] ??
null;
29 $this->exclude = $config[
'exclude'] ?? [];
32 $this->addClasses( [
'mw-widget-namespaceInputWidget' ] );
36 $namespaceOptionsParams = [
37 'all' => $config[
'includeAllValue'] ??
null,
38 'exclude' => $config[
'exclude'] ?? null
40 $namespaceOptions = \Html::namespaceSelectorOptions( $namespaceOptionsParams );
43 foreach ( $namespaceOptions as $id => $name ) {
54 return 'mw.widgets.NamespaceInputWidget';
59 $config[
'exclude'] = $this->exclude;
61 $config[
'dropdown'][
'$overlay'] =
true;
62 return \OOUI\InputWidget::getConfig( $config );
This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible true was required This is the default since MediaWiki *some string
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))