48 parent::__construct(
'ApiHelp' );
49 $this->urlUtils = $urlUtils;
62 'submodules' => $request->getCheck(
'submodules' ),
63 'recursivesubmodules' => $request->getCheck(
'recursivesubmodules' ),
64 'title' => $request->getVal(
'title', $this->
getPageTitle(
'$1' )->getPrefixedText() ),
70 if ( str_starts_with( $par,
'sub/' ) ) {
71 $par = substr( $par, 4 );
72 $options[
'submodules'] = 1;
76 if ( str_starts_with( $par,
'rsub/' ) ) {
77 $par = substr( $par, 5 );
78 $options[
'recursivesubmodules'] = 1;
87 unset( $options[
'nolead'], $options[
'title'] );
89 $options[
'modules'] = $moduleName;
98 $module = $main->getModuleFromPath( $moduleName );
100 $this->
getOutput()->addHTML( Html::rawElement(
'span', [
'class' =>
'error' ],
102 $this->
msg(
'apihelp-no-such-module', $moduleName )->inContentLanguage()->parse()
116class_alias( SpecialApiHelp::class,
'SpecialApiHelp' );
wfAppendQuery( $url, $query)
Append a query string to an existing URL, which may or may not already have query string parameters a...
wfScript( $script='index')
Get the URL path to a MediaWiki entry point.
This is the main API class, used for both external and internal processing.
getPageTitle( $subpage=false)
Get a self-referential title object.
getContext()
Gets the context this SpecialPage is executed in.
getRequest()
Get the WebRequest being used for this instance.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getOutput()
Get the OutputPage being used for this instance.
including( $x=null)
Whether the special page is being evaluated via transclusion.
Shortcut to construct a special page which is unlisted by default.