4 public function register() {
6 'test' => [ $this,
'test' ],
9 return $this->getEngine()->registerInterface(
10 __DIR__ .
'/mw.ext.TitleBlacklist.lua', $lib, []
15 $this->checkType(
'mw.ext.TitleBlacklist.test', 1, $action,
'string' );
16 $this->checkTypeOptional(
'mw.ext.TitleBlacklist.test', 2,
$title,
'string',
'' );
17 $this->incrementExpensiveFunctionCount();
19 $title = $this->getParser()->mTitle->getPrefixedText();
24 'params' => $entry->getParams(),
25 'regex' => $entry->getRegex(),
26 'raw' => $entry->getRaw(),
27 'version' => $entry->getFormatVersion(),
28 'message' => $entry->getErrorMessage( $action ),
29 'custommessage' => $entry->getCustomMessage()