46 parent::__construct(
'ApiHelp' );
47 $this->urlUtils = $urlUtils;
51 $this->
getOutput()->addModuleStyles(
'mediawiki.codex.messagebox.styles' );
61 'submodules' => $request->getCheck(
'submodules' ),
62 'recursivesubmodules' => $request->getCheck(
'recursivesubmodules' ),
63 'title' => $request->getVal(
'title', $this->
getPageTitle(
'$1' )->getPrefixedText() ),
69 if ( str_starts_with( $par,
'sub/' ) ) {
70 $par = substr( $par, 4 );
71 $options[
'submodules'] = 1;
75 if ( str_starts_with( $par,
'rsub/' ) ) {
76 $par = substr( $par, 5 );
77 $options[
'recursivesubmodules'] = 1;
84 if ( !isset( $moduleName ) ) {
85 throw new LogicException(
'Module name should have been found' );
89 unset( $options[
'nolead'], $options[
'title'] );
90 $options[
'modules'] = $moduleName;
98 $module = $main->getModuleFromPath( $moduleName );
100 $this->
getOutput()->addHTML( Html::errorBox(
101 $this->
msg(
'apihelp-no-such-module', $moduleName )->inContentLanguage()->parse()
115class_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.