* (bug 29476) API returns page title instead of sectiontitle for
srprop=sectiontitle
* Correct the documentation of srprop properties
+* (bug 28817) Add reference help page link to API Modules
=== Languages updated in 1.19 ===
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Allcategories';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Alllinks';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Allusers';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
$file = $repo->newFileFromRow( $row );
$info = array_merge( array( 'name' => $row->img_name ),
ApiQueryImageInfo::getInfo( $file, $prop, $result ) );
- self::addTitleInfo( $info, $file->getTitle() );
-
+ self::addTitleInfo( $info, $file->getTitle() );
+
$fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $info );
if ( !$fit ) {
$this->setContinueEnumParameter( 'from', $this->keyToTitle( $row->img_name ) );
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Allimages';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Allpages';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
'backlinks' => array(
'code' => 'bl',
'prefix' => 'pl',
- 'linktbl' => 'pagelinks'
+ 'linktbl' => 'pagelinks',
+ 'helpurl' => 'http://www.mediawiki.org/wiki/API:Backlinks',
),
'embeddedin' => array(
'code' => 'ei',
'prefix' => 'tl',
- 'linktbl' => 'templatelinks'
+ 'linktbl' => 'templatelinks',
+ 'helpurl' => 'http://www.mediawiki.org/wiki/API:Embeddedin',
),
'imageusage' => array(
'code' => 'iu',
'prefix' => 'il',
- 'linktbl' => 'imagelinks'
+ 'linktbl' => 'imagelinks',
+ 'helpurl' => 'http://www.mediawiki.org/wiki/API:Imageusage',
)
);
$this->bl_from = $prefix . '_from';
$this->bl_table = $settings['linktbl'];
$this->bl_code = $code;
+ $this->helpUrl = $settings['helpurl'];
$this->hasNS = $moduleName !== 'imageusage';
if ( $this->hasNS ) {
return $examples[$this->getModuleName()];
}
+ public function getHelpUrls() {
+ return $this->helpUrl;
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Blocks';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Categorymembers';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return '';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Exturlusage';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
const LINKS = 'links';
const TEMPLATES = 'templates';
- private $table, $prefix, $description;
+ private $table, $prefix, $description, $helpUrl;
public function __construct( $query, $moduleName ) {
switch ( $moduleName ) {
$this->prefix = 'pl';
$this->description = 'link';
$this->titlesParam = 'titles';
+ $this->helpUrl = 'http://www.mediawiki.org/wiki/API:Properties#links_.2F_pl';
break;
case self::TEMPLATES:
$this->table = 'templatelinks';
$this->prefix = 'tl';
$this->description = 'template';
$this->titlesParam = 'templates';
+ $this->helpUrl = 'http://www.mediawiki.org/wiki/API:Properties#templates_.2F_tl';
break;
default:
ApiBase::dieDebug( __METHOD__, 'Unknown module name' );
}
public function getHelpUrls() {
- if ( $this->prefix === 'pl' ) {
- return 'http://www.mediawiki.org/wiki/API:Properties#links_.2F_pl';
- } else { // tl
- return 'http://www.mediawiki.org/wiki/API:Properties#templates_.2F_tl';
- }
+ return $this->helpUrl;
}
public function getVersion() {
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Logevents';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Protectedtitles';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Recentchanges';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Search';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Usercontribs';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
}
} else {
if ( isset( $this->prop['groups'] ) && isset( $data[$u]['groups'] ) ) {
- $result->setIndexedTagName( $data[$u]['groups'], 'g' );
+ $result->setIndexedTagName( $data[$u]['groups'], 'g' );
}
if ( isset( $this->prop['rights'] ) && isset( $data[$u]['rights'] ) ) {
$result->setIndexedTagName( $data[$u]['rights'], 'r' );
return 'api.php?action=query&list=users&ususers=brion|TimStarling&usprop=groups|editcount|gender';
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Users';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Watchlist';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}