18 protected $idPrefix =
'tsint-';
24 protected function processGroups( $groups ) {
26 foreach ( $groups as $g ) {
28 $sanitizedName = preg_replace(
'/\s+/',
'', strtolower( $name ) );
30 $id = $g[
'id'] ?? $this->idPrefix . $sanitizedName;
34 $file = $g[
'file'] ??
"$sanitizedName/%CODE%.json";
36 $descmsg = $g[
'descmsg'] ??
"$id-desc";
39 'name' =>
'Intuition - ' . $name,
41 'descmsg' => $descmsg,
45 if ( !isset( $g[
'prefix'] ) ) {
46 $g[
'prefix'] =
"$sanitizedName-";
50 $g[
'mangle'] = [
'*' ];
54 if ( !isset( $g[
'ignored'] ) ) {
58 if ( !isset( $g[
'optional'] ) ) {
62 $g[
'format'] =
'json';
76 foreach ( $copyvars as $var ) {
77 if ( isset( $g[$var] ) ) {
78 $newgroup[$var] = $g[$var];
82 $fixedGroups[$id] = $newgroup;
Support for tools using Intuition at the Toolserver and Wikimedia Labs.
getDefaultNamespace()
Get the default namespace.