Go to the documentation of this file.
19 public static function register( Parser &$parser ) {
21 $parser->setHook(
'inputbox', [
'InputBoxHooks',
'render' ] );
34 $request = $special->getRequest();
35 $prefix = $request->getText(
'prefix',
'' );
36 $title = $request->getText(
'wpNewTitle',
'' );
37 $search = $request->getText(
'search',
'' );
38 $searchfilter = $request->getText(
'searchfilter',
'' );
39 if ( $special->getName() ==
'Movepage' && $prefix !==
'' &&
$title !==
'' ) {
40 $request->setVal(
'wpNewTitle', $prefix .
$title );
41 $request->unsetVal(
'prefix' );
43 if ( $special->getName() ==
'Search' && $searchfilter !==
'' ) {
44 $request->setVal(
'search', $search .
' ' . $searchfilter );
56 public static function render( $input,
$args, Parser $parser ) {
61 $inputBox->extractOptions( $parser->replaceVariables( $input ) );
64 return $inputBox->render();
87 if ( $wiki->getAction() !==
'edit' && $request->getText(
'veaction' ) !==
'edit' ) {
91 if ( $request->getText(
'prefix',
'' ) ===
'' ) {
96 $params = $request->getValues();
97 $title = $params[
'prefix'];
98 if ( isset( $params[
'title'] ) ) {
99 $title .= $params[
'title'];
101 unset( $params[
'prefix'] );
102 $params[
'title'] =
$title;
$wgScript
The URL path to index.php.
wfAppendQuery( $url, $query)
Append a query string to an existing URL, which may or may not already have query string parameters a...