Get correct main page in API call examples
Remove hardcoded "Main Page" and use whatever the main page of the wiki is. Many wikis have their main page in a different title than the default or even in a different namespace entirely. With the hardcoded title this produces broken/redlink for the doc examples and makes it overall less useful. Most typical examples; Mediawiki.org itself, Wikidata.org, etc. Bug: T235207 Change-Id: Ia9eee76544cad153166dd5a2eb8e8c1bf3a38b74
This commit is contained in:
parent
643be3ac32
commit
cd13bbb727
24 changed files with 184 additions and 104 deletions
|
|
@ -25,6 +25,7 @@ use MediaWiki\Page\DeletePage;
|
|||
use MediaWiki\Page\DeletePageFactory;
|
||||
use MediaWiki\Page\File\FileDeleteForm;
|
||||
use MediaWiki\Status\Status;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserOptionsLookup;
|
||||
use MediaWiki\Watchlist\WatchlistManager;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
|
@ -307,10 +308,13 @@ class ApiDelete extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=delete&title=Main%20Page&token=123ABC'
|
||||
"action=delete&title={$mp}&token=123ABC"
|
||||
=> 'apihelp-delete-example-simple',
|
||||
'action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move'
|
||||
"action=delete&title={$mp}&token=123ABC&reason=Preparing%20for%20move"
|
||||
=> 'apihelp-delete-example-reason',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\Permissions\RestrictionStore;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserOptionsLookup;
|
||||
use MediaWiki\Watchlist\WatchlistManager;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
|
@ -214,14 +215,17 @@ class ApiProtect extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=protect&title=Main%20Page&token=123ABC&' .
|
||||
"action=protect&title={$mp}&token=123ABC&" .
|
||||
'protections=edit=sysop|move=sysop&cascade=&expiry=20070901163000|never'
|
||||
=> 'apihelp-protect-example-protect',
|
||||
'action=protect&title=Main%20Page&token=123ABC&' .
|
||||
"action=protect&title={$mp}&token=123ABC&" .
|
||||
'protections=edit=all|move=all&reason=Lifting%20restrictions'
|
||||
=> 'apihelp-protect-example-unprotect',
|
||||
'action=protect&title=Main%20Page&token=123ABC&' .
|
||||
"action=protect&title={$mp}&token=123ABC&" .
|
||||
'protections=&reason=Lifting%20restrictions'
|
||||
=> 'apihelp-protect-example-unprotect2',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use MediaWiki\Page\WikiPageFactory;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\Title\TitleFormatter;
|
||||
|
||||
/**
|
||||
|
|
@ -177,8 +178,11 @@ class ApiPurge extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=purge&titles=Main_Page|API'
|
||||
"action=purge&titles={$mp}|API"
|
||||
=> 'apihelp-purge-example-simple',
|
||||
'action=purge&generator=allpages&gapnamespace=0&gaplimit=10'
|
||||
=> 'apihelp-purge-example-generator',
|
||||
|
|
|
|||
|
|
@ -987,9 +987,12 @@ class ApiQuery extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=query&prop=revisions&meta=siteinfo&' .
|
||||
'titles=Main%20Page&rvprop=user|comment&continue='
|
||||
"titles={$mp}&rvprop=user|comment&continue="
|
||||
=> 'apihelp-query-example-revisions',
|
||||
'action=query&generator=allpages&gapprefix=API/&prop=revisions&continue='
|
||||
=> 'apihelp-query-example-allpages',
|
||||
|
|
|
|||
|
|
@ -589,11 +589,13 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
static $examples = [
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
$examples = [
|
||||
'backlinks' => [
|
||||
'action=query&list=backlinks&bltitle=Main%20Page'
|
||||
"action=query&list=backlinks&bltitle={$mp}"
|
||||
=> 'apihelp-query+backlinks-example-simple',
|
||||
'action=query&generator=backlinks&gbltitle=Main%20Page&prop=info'
|
||||
"action=query&generator=backlinks&gbltitle={$mp}&prop=info"
|
||||
=> 'apihelp-query+backlinks-example-generator',
|
||||
],
|
||||
'embeddedin' => [
|
||||
|
|
|
|||
|
|
@ -445,7 +445,7 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase {
|
|||
$settings = self::$settings[$this->getModuleName()];
|
||||
$name = $this->getModuleName();
|
||||
$path = $this->getModulePath();
|
||||
$title = $settings['exampletitle'] ?? 'Main Page';
|
||||
$title = $settings['exampletitle'] ?? Title::newMainPage()->getPrefixedText();
|
||||
$etitle = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
use MediaWiki\Permissions\GroupPermissionsLookup;
|
||||
use MediaWiki\Revision\RevisionRecord;
|
||||
use MediaWiki\Revision\RevisionStore;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\ActorMigration;
|
||||
use MediaWiki\User\UserGroupManager;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
|
@ -287,8 +288,11 @@ class ApiQueryContributors extends ApiQueryBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=query&prop=contributors&titles=Main_Page'
|
||||
"action=query&prop=contributors&titles={$mp}"
|
||||
=> 'apihelp-query+contributors-example-simple',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -334,13 +334,24 @@ class ApiQueryDeletedRevisions extends ApiQueryRevisionsBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
return [
|
||||
'action=query&prop=deletedrevisions&titles=Main%20Page|Talk:Main%20Page&' .
|
||||
'drvslots=main&drvprop=user|comment|content'
|
||||
=> 'apihelp-query+deletedrevisions-example-titles',
|
||||
$title = Title::newMainPage();
|
||||
$talkTitle = $title->getTalkPageIfDefined();
|
||||
$examples = [];
|
||||
|
||||
if ( $talkTitle ) {
|
||||
$title = rawurlencode( $title->getPrefixedText() );
|
||||
$talkTitle = rawurlencode( $talkTitle->getPrefixedText() );
|
||||
$examples = [
|
||||
"action=query&prop=deletedrevisions&titles={$title}|{$talkTitle}&" .
|
||||
'drvslots=*&drvprop=user|comment|content'
|
||||
=> 'apihelp-query+deletedrevisions-example-titles',
|
||||
];
|
||||
}
|
||||
|
||||
return array_merge( $examples, [
|
||||
'action=query&prop=deletedrevisions&revids=123456'
|
||||
=> 'apihelp-query+deletedrevisions-example-revids',
|
||||
];
|
||||
] );
|
||||
}
|
||||
|
||||
public function getHelpUrls() {
|
||||
|
|
|
|||
|
|
@ -536,17 +536,28 @@ class ApiQueryDeletedrevs extends ApiQueryBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
return [
|
||||
'action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&' .
|
||||
'drprop=user|comment|content'
|
||||
=> 'apihelp-query+deletedrevs-example-mode1',
|
||||
$title = Title::newMainPage();
|
||||
$talkTitle = $title->getTalkPageIfDefined();
|
||||
$examples = [];
|
||||
|
||||
if ( $talkTitle ) {
|
||||
$title = rawurlencode( $title->getPrefixedText() );
|
||||
$talkTitle = rawurlencode( $talkTitle->getPrefixedText() );
|
||||
$examples = [
|
||||
"action=query&list=deletedrevs&titles={$title}|{$talkTitle}&" .
|
||||
'drprop=user|comment|content'
|
||||
=> 'apihelp-query+deletedrevs-example-mode1',
|
||||
];
|
||||
}
|
||||
|
||||
return array_merge( $examples, [
|
||||
'action=query&list=deletedrevs&druser=Bob&drlimit=50'
|
||||
=> 'apihelp-query+deletedrevs-example-mode2',
|
||||
'action=query&list=deletedrevs&drdir=newer&drlimit=50'
|
||||
=> 'apihelp-query+deletedrevs-example-mode3-main',
|
||||
'action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique='
|
||||
=> 'apihelp-query+deletedrevs-example-mode3-talk',
|
||||
];
|
||||
] );
|
||||
}
|
||||
|
||||
public function getHelpUrls() {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
use MediaWiki\ExternalLinks\LinkFilter;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\Utils\UrlUtils;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
use Wikimedia\ParamValidator\TypeDef\IntegerDef;
|
||||
|
|
@ -162,8 +163,11 @@ class ApiQueryExternalLinks extends ApiQueryBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=query&prop=extlinks&titles=Main%20Page'
|
||||
"action=query&prop=extlinks&titles={$mp}"
|
||||
=> 'apihelp-query+extlinks-example-simple',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -194,8 +194,11 @@ class ApiQueryIWLinks extends ApiQueryBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=query&prop=iwlinks&titles=Main%20Page'
|
||||
"action=query&prop=iwlinks&titles={$mp}"
|
||||
=> 'apihelp-query+iwlinks-example-simple',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,10 +169,13 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=query&prop=images&titles=Main%20Page'
|
||||
"action=query&prop=images&titles={$mp}"
|
||||
=> 'apihelp-query+images-example-simple',
|
||||
'action=query&generator=images&titles=Main%20Page&prop=info'
|
||||
"action=query&generator=images&titles={$mp}&prop=info"
|
||||
=> 'apihelp-query+images-example-generator',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1046,10 +1046,13 @@ class ApiQueryInfo extends ApiQueryBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=query&prop=info&titles=Main%20Page'
|
||||
"action=query&prop=info&titles={$mp}"
|
||||
=> 'apihelp-query+info-example-simple',
|
||||
'action=query&prop=info&inprop=protection&titles=Main%20Page'
|
||||
"action=query&prop=info&inprop=protection&titles={$mp}"
|
||||
=> 'apihelp-query+info-example-protection',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,8 +203,11 @@ class ApiQueryLangLinks extends ApiQueryBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=query&prop=langlinks&titles=Main%20Page&redirects='
|
||||
"action=query&prop=langlinks&titles={$mp}&redirects="
|
||||
=> 'apihelp-query+langlinks-example-simple',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -251,13 +251,15 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
|
|||
protected function getExamplesMessages() {
|
||||
$name = $this->getModuleName();
|
||||
$path = $this->getModulePath();
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
"action=query&prop={$name}&titles=Main%20Page"
|
||||
"action=query&prop={$name}&titles={$mp}"
|
||||
=> "apihelp-{$path}-example-simple",
|
||||
"action=query&generator={$name}&titles=Main%20Page&prop=info"
|
||||
"action=query&generator={$name}&titles={$mp}&prop=info"
|
||||
=> "apihelp-{$path}-example-generator",
|
||||
"action=query&prop={$name}&titles=Main%20Page&{$this->prefix}namespace=2|10"
|
||||
"action=query&prop={$name}&titles={$mp}&{$this->prefix}namespace=2|10"
|
||||
=> "apihelp-{$path}-example-namespaces",
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
use MediaWiki\Page\PageProps;
|
||||
use MediaWiki\Title\Title;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
|
||||
/**
|
||||
|
|
@ -120,8 +121,11 @@ class ApiQueryPageProps extends ApiQueryBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=query&prop=pageprops&titles=Main%20Page|MediaWiki'
|
||||
"action=query&prop=pageprops&titles={$mp}|MediaWiki"
|
||||
=> 'apihelp-query+pageprops-example-simple',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -505,23 +505,26 @@ class ApiQueryRevisions extends ApiQueryRevisionsBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=query&prop=revisions&titles=API|Main%20Page&' .
|
||||
'rvslots=main&rvprop=timestamp|user|comment|content'
|
||||
"action=query&prop=revisions&titles=API|{$mp}&" .
|
||||
'rvslots=*&rvprop=timestamp|user|comment|content'
|
||||
=> 'apihelp-query+revisions-example-content',
|
||||
'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
|
||||
"action=query&prop=revisions&titles={$mp}&rvlimit=5&" .
|
||||
'rvprop=timestamp|user|comment'
|
||||
=> 'apihelp-query+revisions-example-last5',
|
||||
'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
|
||||
"action=query&prop=revisions&titles={$mp}&rvlimit=5&" .
|
||||
'rvprop=timestamp|user|comment&rvdir=newer'
|
||||
=> 'apihelp-query+revisions-example-first5',
|
||||
'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
|
||||
"action=query&prop=revisions&titles={$mp}&rvlimit=5&" .
|
||||
'rvprop=timestamp|user|comment&rvdir=newer&rvstart=2006-05-01T00:00:00Z'
|
||||
=> 'apihelp-query+revisions-example-first5-after',
|
||||
'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
|
||||
"action=query&prop=revisions&titles={$mp}&rvlimit=5&" .
|
||||
'rvprop=timestamp|user|comment&rvexcludeuser=127.0.0.1'
|
||||
=> 'apihelp-query+revisions-example-first5-not-localhost',
|
||||
'action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
|
||||
"action=query&prop=revisions&titles={$mp}&rvlimit=5&" .
|
||||
'rvprop=timestamp|user|comment&rvuser=MediaWiki%20default'
|
||||
=> 'apihelp-query+revisions-example-first5-user',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -193,8 +193,11 @@ class ApiRevisionDelete extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=revisiondelete&target=Main%20Page&type=revision&ids=12345&' .
|
||||
"action=revisiondelete&target={$mp}&type=revision&ids=12345&" .
|
||||
'hide=content&token=123ABC'
|
||||
=> 'apihelp-revisiondelete-example-revision',
|
||||
'action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&' .
|
||||
|
|
|
|||
|
|
@ -218,10 +218,13 @@ class ApiRollback extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=rollback&title=Main%20Page&user=Example&token=123ABC' =>
|
||||
"action=rollback&title={$mp}&user=Example&token=123ABC" =>
|
||||
'apihelp-rollback-example-simple',
|
||||
'action=rollback&title=Main%20Page&user=192.0.2.5&' .
|
||||
"action=rollback&title={$mp}&user=192.0.2.5&" .
|
||||
'token=123ABC&summary=Reverting%20vandalism&markbot=1' =>
|
||||
'apihelp-rollback-example-summary',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -281,12 +281,15 @@ class ApiSetNotificationTimestamp extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=setnotificationtimestamp&entirewatchlist=&token=123ABC'
|
||||
=> 'apihelp-setnotificationtimestamp-example-all',
|
||||
'action=setnotificationtimestamp&titles=Main_page&token=123ABC'
|
||||
"action=setnotificationtimestamp&titles={$mp}&token=123ABC"
|
||||
=> 'apihelp-setnotificationtimestamp-example-page',
|
||||
'action=setnotificationtimestamp&titles=Main_page&' .
|
||||
"action=setnotificationtimestamp&titles={$mp}&" .
|
||||
'timestamp=2012-01-01T00:00:00Z&token=123ABC'
|
||||
=> 'apihelp-setnotificationtimestamp-example-pagetimestamp',
|
||||
'action=setnotificationtimestamp&generator=allpages&gapnamespace=2&token=123ABC'
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
use MediaWiki\Languages\LanguageNameUtils;
|
||||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\Specials\SpecialPageLanguage;
|
||||
use MediaWiki\Title\Title;
|
||||
use Wikimedia\ParamValidator\ParamValidator;
|
||||
use Wikimedia\Rdbms\IConnectionProvider;
|
||||
|
||||
|
|
@ -161,8 +162,11 @@ class ApiSetPageLanguage extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=setpagelanguage&title=Main%20Page&lang=eu&token=123ABC'
|
||||
"action=setpagelanguage&title={$mp}&lang=eu&token=123ABC"
|
||||
=> 'apihelp-setpagelanguage-example-language',
|
||||
'action=setpagelanguage&pageid=123&lang=default&token=123ABC'
|
||||
=> 'apihelp-setpagelanguage-example-default',
|
||||
|
|
|
|||
|
|
@ -180,10 +180,13 @@ class ApiUndelete extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
return [
|
||||
'action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page'
|
||||
"action=undelete&title={$mp}&token=123ABC&reason=Restoring%20{$mp}"
|
||||
=> 'apihelp-undelete-example-page',
|
||||
'action=undelete&title=Main%20Page&token=123ABC' .
|
||||
"action=undelete&title={$mp}&token=123ABC" .
|
||||
'×tamps=2007-07-03T22:00:45Z|2007-07-02T19:48:56Z'
|
||||
=> 'apihelp-undelete-example-revisions',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -220,18 +220,21 @@ class ApiWatch extends ApiBase {
|
|||
}
|
||||
|
||||
protected function getExamplesMessages() {
|
||||
$title = Title::newMainPage()->getPrefixedText();
|
||||
$mp = rawurlencode( $title );
|
||||
|
||||
// Logically expiry example should go before unwatch examples.
|
||||
$examples = [
|
||||
'action=watch&titles=Main_Page&token=123ABC'
|
||||
"action=watch&titles={$mp}&token=123ABC"
|
||||
=> 'apihelp-watch-example-watch',
|
||||
];
|
||||
if ( $this->expiryEnabled ) {
|
||||
$examples['action=watch&titles=Main_Page|Foo|Bar&expiry=1%20month&token=123ABC']
|
||||
$examples["action=watch&titles={$mp}|Foo|Bar&expiry=1%20month&token=123ABC"]
|
||||
= 'apihelp-watch-example-watch-expiry';
|
||||
}
|
||||
|
||||
return array_merge( $examples, [
|
||||
'action=watch&titles=Main_Page&unwatch=&token=123ABC'
|
||||
"action=watch&titles={$mp}&unwatch=&token=123ABC"
|
||||
=> 'apihelp-watch-example-unwatch',
|
||||
'action=watch&generator=allpages&gapnamespace=0&token=123ABC'
|
||||
=> 'apihelp-watch-example-generator',
|
||||
|
|
|
|||
|
|
@ -145,8 +145,8 @@
|
|||
"apihelp-delete-param-watchlistexpiry": "Watchlist expiry timestamp. Omit this parameter entirely to leave the current expiry unchanged.",
|
||||
"apihelp-delete-param-unwatch": "Remove the page from the current user's watchlist.",
|
||||
"apihelp-delete-param-oldimage": "The name of the old image to delete as provided by [[Special:ApiHelp/query+imageinfo|action=query&prop=imageinfo&iiprop=archivename]].",
|
||||
"apihelp-delete-example-simple": "Delete the <kbd>Main Page</kbd>.",
|
||||
"apihelp-delete-example-reason": "Delete the <kbd>Main Page</kbd> with the reason <kbd>Preparing for move</kbd>.",
|
||||
"apihelp-delete-example-simple": "Delete [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-delete-example-reason": "Delete [[{{MediaWiki:Mainpage}}]] with the reason <kbd>Preparing for move</kbd>.",
|
||||
|
||||
"apihelp-disabled-summary": "This module has been disabled.",
|
||||
|
||||
|
|
@ -472,7 +472,7 @@
|
|||
"apihelp-purge-summary": "Purge the cache for the given titles.",
|
||||
"apihelp-purge-param-forcelinkupdate": "Update the links tables and do other secondary data updates.",
|
||||
"apihelp-purge-param-forcerecursivelinkupdate": "Same as <kbd>forcelinkupdate</kbd>, and update the links tables for any page that uses this page as a template.",
|
||||
"apihelp-purge-example-simple": "Purge the <kbd>Main Page</kbd> and the <kbd>API</kbd> page.",
|
||||
"apihelp-purge-example-simple": "Purge <kbd>[[{{MediaWiki:Mainpage}}]]</kbd> and the <kbd>API</kbd> page.",
|
||||
"apihelp-purge-example-generator": "Purge the first 10 pages in the main namespace.",
|
||||
|
||||
"apihelp-query-summary": "Fetch data from and about MediaWiki.",
|
||||
|
|
@ -486,7 +486,7 @@
|
|||
"apihelp-query-param-exportschema": "Target the given version of the XML dump format when exporting. Can only be used with <var>$1export</var>.",
|
||||
"apihelp-query-param-iwurl": "Whether to get the full URL if the title is an interwiki link.",
|
||||
"apihelp-query-param-rawcontinue": "Return raw <samp>query-continue</samp> data for continuation.",
|
||||
"apihelp-query-example-revisions": "Fetch [[Special:ApiHelp/query+siteinfo|site info]] and [[Special:ApiHelp/query+revisions|revisions]] of <kbd>Main Page</kbd>.",
|
||||
"apihelp-query-example-revisions": "Fetch [[Special:ApiHelp/query+siteinfo|site info]] and [[Special:ApiHelp/query+revisions|revisions]] of [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query-example-allpages": "Fetch revisions of pages beginning with <kbd>API/</kbd>.",
|
||||
|
||||
"apihelp-query+allcategories-summary": "Enumerate all categories.",
|
||||
|
|
@ -699,8 +699,8 @@
|
|||
"apihelp-query+backlinks-param-filterredir": "How to filter for redirects. If set to <kbd>nonredirects</kbd> when <var>$1redirect</var> is enabled, this is only applied to the second level.",
|
||||
"apihelp-query+backlinks-param-limit": "How many total pages to return. If <var>$1redirect</var> is enabled, the limit applies to each level separately (which means up to 2 * <var>$1limit</var> results may be returned).",
|
||||
"apihelp-query+backlinks-param-redirect": "If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.",
|
||||
"apihelp-query+backlinks-example-simple": "Show links to <kbd>Main page</kbd>.",
|
||||
"apihelp-query+backlinks-example-generator": "Get information about pages linking to <kbd>Main page</kbd>.",
|
||||
"apihelp-query+backlinks-example-simple": "Show links to [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+backlinks-example-generator": "Get information about pages linking to [[{{MediaWiki:Mainpage}}]].",
|
||||
|
||||
"apihelp-query+blocks-summary": "List all blocked users and IP addresses.",
|
||||
"apihelp-query+blocks-param-start": "The timestamp to start enumerating from.",
|
||||
|
|
@ -772,7 +772,7 @@
|
|||
"apihelp-query+contributors-param-rights": "Only include users having the given rights. Does not include rights granted by implicit or auto-promoted groups like *, user, or autoconfirmed.",
|
||||
"apihelp-query+contributors-param-excluderights": "Exclude users having the given rights. Does not include rights granted by implicit or auto-promoted groups like *, user, or autoconfirmed.",
|
||||
"apihelp-query+contributors-param-limit": "How many contributors to return.",
|
||||
"apihelp-query+contributors-example-simple": "Show contributors to the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+contributors-example-simple": "Show contributors to the page [[{{MediaWiki:Mainpage}}]].",
|
||||
|
||||
"apihelp-query+deletedrevisions-summary": "Get deleted revision information.",
|
||||
"apihelp-query+deletedrevisions-extended-description": "May be used in several ways:\n# Get deleted revisions for a set of pages, by setting titles or pageids. Ordered by title and timestamp.\n# Get data about a set of deleted revisions by setting their IDs with revids. Ordered by revision ID.",
|
||||
|
|
@ -781,7 +781,7 @@
|
|||
"apihelp-query+deletedrevisions-param-tag": "Only list revisions tagged with this tag.",
|
||||
"apihelp-query+deletedrevisions-param-user": "Only list revisions by this user.",
|
||||
"apihelp-query+deletedrevisions-param-excludeuser": "Don't list revisions by this user.",
|
||||
"apihelp-query+deletedrevisions-example-titles": "List the deleted revisions of the pages <kbd>Main Page</kbd> and <kbd>Talk:Main Page</kbd>, with content.",
|
||||
"apihelp-query+deletedrevisions-example-titles": "List the deleted revisions of the pages [[{{MediaWiki:Mainpage}}]] and its talk page with content.",
|
||||
"apihelp-query+deletedrevisions-example-revids": "List the information for deleted revision <kbd>123456</kbd>.",
|
||||
|
||||
"apihelp-query+deletedrevs-summary": "List deleted revisions.",
|
||||
|
|
@ -811,7 +811,7 @@
|
|||
"apihelp-query+deletedrevs-paramvalue-prop-content": "Adds the content of the revision.",
|
||||
"apihelp-query+deletedrevs-paramvalue-prop-token": "Gives the edit token.",
|
||||
"apihelp-query+deletedrevs-paramvalue-prop-tags": "Tags for the revision.",
|
||||
"apihelp-query+deletedrevs-example-mode1": "List the last deleted revisions of the pages <kbd>Main Page</kbd> and <kbd>Talk:Main Page</kbd>, with content (mode 1).",
|
||||
"apihelp-query+deletedrevs-example-mode1": "List the last deleted revisions of the pages [[{{MediaWiki:Mainpage}}]] and <kbd>Talk:Main Page</kbd>, with content (mode 1).",
|
||||
"apihelp-query+deletedrevs-example-mode2": "List the last 50 deleted contributions by <kbd>Bob</kbd> (mode 2).",
|
||||
"apihelp-query+deletedrevs-example-mode3-main": "List the first 50 deleted revisions in the main namespace (mode 3).",
|
||||
"apihelp-query+deletedrevs-example-mode3-talk": "List the first 50 deleted pages in the {{ns:talk}} namespace (mode 3).",
|
||||
|
|
@ -840,7 +840,7 @@
|
|||
"apihelp-query+extlinks-param-protocol": "Protocol of the URL. If empty and <var>$1query</var> is set, the protocol is <kbd>http</kbd> and <kbd>https</kbd>. Leave both this and <var>$1query</var> empty to list all external links.",
|
||||
"apihelp-query+extlinks-param-query": "Search string without protocol. Useful for checking whether a certain page contains a certain external url.",
|
||||
"apihelp-query+extlinks-param-expandurl": "Expand protocol-relative URLs with the canonical protocol.",
|
||||
"apihelp-query+extlinks-example-simple": "Get a list of external links on <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+extlinks-example-simple": "Get a list of external links on the page [[{{MediaWiki:Mainpage}}]].",
|
||||
|
||||
"apihelp-query+exturlusage-summary": "Enumerate pages that contain a given URL.",
|
||||
"apihelp-query+exturlusage-param-prop": "Which pieces of information to include:",
|
||||
|
|
@ -949,8 +949,8 @@
|
|||
"apihelp-query+images-param-limit": "How many files to return.",
|
||||
"apihelp-query+images-param-images": "Only list these files. Useful for checking whether a certain page has a certain file.",
|
||||
"apihelp-query+images-param-dir": "The direction in which to list.",
|
||||
"apihelp-query+images-example-simple": "Get a list of files used in the [[Main Page]].",
|
||||
"apihelp-query+images-example-generator": "Get information about all files used in the [[Main Page]].",
|
||||
"apihelp-query+images-example-simple": "Get a list of files used on the page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+images-example-generator": "Get information about all files used on the page [[{{MediaWiki:Mainpage}}]].",
|
||||
|
||||
"apihelp-query+imageusage-summary": "Find all pages that use the given image title.",
|
||||
"apihelp-query+imageusage-param-title": "Title to search. Cannot be used together with $1pageid.",
|
||||
|
|
@ -996,9 +996,8 @@
|
|||
"apihelp-query+info-paramvalue-testactionsdetail-full": "Return messages describing why the action is disallowed, or an empty array if it is allowed.",
|
||||
"apihelp-query+info-paramvalue-testactionsdetail-quick": "Like <kbd>full</kbd> but skipping expensive checks.",
|
||||
"apihelp-query+info-param-testactionsautocreate": "Test whether performing <var>$1testactions</var> would automatically create a temporary account.",
|
||||
"apihelp-query+info-example-simple": "Get information about the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+info-example-protection": "Get general and protection information about the page <kbd>Main Page</kbd>.",
|
||||
|
||||
"apihelp-query+info-example-simple": "Get information about the page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+info-example-protection": "Get general and protection information about the page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+iwbacklinks-summary": "Find all pages that link to the given interwiki link.",
|
||||
"apihelp-query+iwbacklinks-extended-description": "Can be used to find all links with a prefix, or all links to a title (with a given prefix). Using neither parameter is effectively \"all interwiki links\".",
|
||||
"apihelp-query+iwbacklinks-param-prefix": "Prefix for the interwiki.",
|
||||
|
|
@ -1019,7 +1018,7 @@
|
|||
"apihelp-query+iwlinks-param-prefix": "Only return interwiki links with this prefix.",
|
||||
"apihelp-query+iwlinks-param-title": "Interwiki link to search for. Must be used with <var>$1prefix</var>.",
|
||||
"apihelp-query+iwlinks-param-dir": "The direction in which to list.",
|
||||
"apihelp-query+iwlinks-example-simple": "Get interwiki links from the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+iwlinks-example-simple": "Get interwiki links from the page [[{{MediaWiki:Mainpage}}]].",
|
||||
|
||||
"apihelp-query+langbacklinks-summary": "Find all pages that link to the given language link.",
|
||||
"apihelp-query+langbacklinks-extended-description": "Can be used to find all links with a language code, or all links to a title (with a given language). Using neither parameter is effectively \"all language links\".\n\nNote that this may not consider language links added by extensions.",
|
||||
|
|
@ -1044,7 +1043,7 @@
|
|||
"apihelp-query+langlinks-param-title": "Link to search for. Must be used with <var>$1lang</var>.",
|
||||
"apihelp-query+langlinks-param-dir": "The direction in which to list.",
|
||||
"apihelp-query+langlinks-param-inlanguagecode": "Language code for localised language names.",
|
||||
"apihelp-query+langlinks-example-simple": "Get interlanguage links from the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+langlinks-example-simple": "Get interlanguage links from the page [[{{MediaWiki:Mainpage}}]].",
|
||||
|
||||
"apihelp-query+languageinfo-summary": "Return information about available languages.",
|
||||
"apihelp-query+languageinfo-extended-description": "[[mw:Special:MyLanguage/API:Continue|Continuation]] may be applied if retrieving the information takes too long for one request.",
|
||||
|
|
@ -1068,9 +1067,9 @@
|
|||
"apihelp-query+links-param-limit": "How many links to return.",
|
||||
"apihelp-query+links-param-titles": "Only list links to these titles. Useful for checking whether a certain page links to a certain title.",
|
||||
"apihelp-query+links-param-dir": "The direction in which to list.",
|
||||
"apihelp-query+links-example-simple": "Get links from the page <kbd>Main Page</kbd>",
|
||||
"apihelp-query+links-example-generator": "Get information about the link pages in the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+links-example-namespaces": "Get links from the page <kbd>Main Page</kbd> in the {{ns:user}} and {{ns:template}} namespaces.",
|
||||
"apihelp-query+links-example-simple": "Get links from the page [[{{MediaWiki:Mainpage}}]]",
|
||||
"apihelp-query+links-example-generator": "Get information about the link pages in the page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+links-example-namespaces": "Get links from the page [[{{MediaWiki:Mainpage}}]] in the {{ns:user}} and {{ns:template}} namespaces.",
|
||||
|
||||
"apihelp-query+linkshere-summary": "Find all pages that link to the given pages.",
|
||||
"apihelp-query+linkshere-param-prop": "Which properties to get:",
|
||||
|
|
@ -1082,9 +1081,8 @@
|
|||
"apihelp-query+linkshere-param-show": "Show only items that meet these criteria:",
|
||||
"apihelp-query+linkshere-paramvalue-show-redirect": "Only show redirects.",
|
||||
"apihelp-query+linkshere-paramvalue-show-!redirect": "Only show non-redirects.",
|
||||
"apihelp-query+linkshere-example-simple": "Get a list of pages linking to the [[Main Page]].",
|
||||
"apihelp-query+linkshere-example-generator": "Get information about pages linking to the [[Main Page]].",
|
||||
|
||||
"apihelp-query+linkshere-example-simple": "Get a list of pages linking to the [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+linkshere-example-generator": "Get information about pages linking to the [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+logevents-summary": "Get events from logs.",
|
||||
"apihelp-query+logevents-param-prop": "Which properties to get:",
|
||||
"apihelp-query+logevents-paramvalue-prop-ids": "Adds the ID of the log event.",
|
||||
|
|
@ -1115,7 +1113,7 @@
|
|||
|
||||
"apihelp-query+pageprops-summary": "Get various page properties defined in the page content.",
|
||||
"apihelp-query+pageprops-param-prop": "Only list these page properties (<kbd>[[Special:ApiHelp/query+pagepropnames|action=query&list=pagepropnames]]</kbd> returns page property names in use). Useful for checking whether pages use a certain page property.",
|
||||
"apihelp-query+pageprops-example-simple": "Get properties for the pages <kbd>Main Page</kbd> and <kbd>MediaWiki</kbd>.",
|
||||
"apihelp-query+pageprops-example-simple": "Get properties for the pages <kbd>{{MediaWiki:Mainpage}}</kbd> and <kbd>MediaWiki</kbd>.",
|
||||
|
||||
"apihelp-query+pageswithprop-summary": "List all pages using a given page property.",
|
||||
"apihelp-query+pageswithprop-param-propname": "Page property for which to enumerate pages (<kbd>[[Special:ApiHelp/query+pagepropnames|action=query&list=pagepropnames]]</kbd> returns page property names in use).",
|
||||
|
|
@ -1211,9 +1209,8 @@
|
|||
"apihelp-query+redirects-param-show": "Show only items that meet these criteria:",
|
||||
"apihelp-query+redirects-paramvalue-show-fragment": "Only show redirects with a fragment.",
|
||||
"apihelp-query+redirects-paramvalue-show-!fragment": "Only show redirects without a fragment.",
|
||||
"apihelp-query+redirects-example-simple": "Get a list of redirects to the [[Main Page]].",
|
||||
"apihelp-query+redirects-example-generator": "Get information about all redirects to the [[Main Page]].",
|
||||
|
||||
"apihelp-query+redirects-example-simple": "Get a list of redirects to the [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+redirects-example-generator": "Get information about all redirects to the [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+revisions-summary": "Get revision information.",
|
||||
"apihelp-query+revisions-extended-description": "May be used in several ways:\n# Get data about a set of pages (last revision), by setting titles or pageids.\n# Get revisions for one given page, by using titles or pageids with start, end, or limit.\n# Get data about a set of revisions by setting their IDs with revids.",
|
||||
"apihelp-query+revisions-paraminfo-singlepageonly": "May only be used with a single page (mode #2).",
|
||||
|
|
@ -1224,13 +1221,12 @@
|
|||
"apihelp-query+revisions-param-user": "Only include revisions made by user.",
|
||||
"apihelp-query+revisions-param-excludeuser": "Exclude revisions made by user.",
|
||||
"apihelp-query+revisions-param-tag": "Only list revisions tagged with this tag.",
|
||||
"apihelp-query+revisions-example-content": "Get data with content for the last revision of titles <kbd>API</kbd> and <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+revisions-example-last5": "Get last 5 revisions of the <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+revisions-example-first5": "Get first 5 revisions of the <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+revisions-example-first5-after": "Get first 5 revisions of the <kbd>Main Page</kbd> made after 2006-05-01.",
|
||||
"apihelp-query+revisions-example-first5-not-localhost": "Get first 5 revisions of the <kbd>Main Page</kbd> that were not made by anonymous user <kbd>127.0.0.1</kbd>.",
|
||||
"apihelp-query+revisions-example-first5-user": "Get first 5 revisions of the <kbd>Main Page</kbd> that were made by the user <kbd>MediaWiki default</kbd>.",
|
||||
|
||||
"apihelp-query+revisions-example-content": "Get data with content for the last revision of titles <kbd>API</kbd> and [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+revisions-example-last5": "Get last 5 revisions of the [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+revisions-example-first5": "Get first 5 revisions of the [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+revisions-example-first5-after": "Get first 5 revisions of the [[{{MediaWiki:Mainpage}}]] made after 2006-05-01.",
|
||||
"apihelp-query+revisions-example-first5-not-localhost": "Get first 5 revisions of the [[{{MediaWiki:Mainpage}}]] that were not made by anonymous user <kbd>127.0.0.1</kbd>.",
|
||||
"apihelp-query+revisions-example-first5-user": "Get first 5 revisions of the [[{{MediaWiki:Mainpage}}]] that were made by the user <kbd>MediaWiki default</kbd>.",
|
||||
"apihelp-query+revisions+base-param-prop": "Which properties to get for each revision:",
|
||||
"apihelp-query+revisions+base-paramvalue-prop-ids": "The ID of the revision.",
|
||||
"apihelp-query+revisions+base-paramvalue-prop-flags": "Revision flags (minor).",
|
||||
|
|
@ -1347,9 +1343,9 @@
|
|||
"apihelp-query+templates-param-limit": "How many templates to return.",
|
||||
"apihelp-query+templates-param-templates": "Only list these templates. Useful for checking whether a certain page uses a certain template.",
|
||||
"apihelp-query+templates-param-dir": "The direction in which to list.",
|
||||
"apihelp-query+templates-example-simple": "Get the templates used on the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+templates-example-generator": "Get information about the template pages used on <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+templates-example-namespaces": "Get pages in the {{ns:user}} and {{ns:template}} namespaces that are transcluded on the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+templates-example-simple": "Get the templates used on the page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+templates-example-generator": "Get information about the template pages used on the page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+templates-example-namespaces": "Get pages in the {{ns:user}} and {{ns:template}} namespaces that are transcluded on the page [[{{MediaWiki:Mainpage}}]].",
|
||||
|
||||
"apihelp-query+tokens-summary": "Gets tokens for data-modifying actions.",
|
||||
"apihelp-query+tokens-param-type": "Types of token to request.",
|
||||
|
|
@ -1366,9 +1362,8 @@
|
|||
"apihelp-query+transcludedin-param-show": "Show only items that meet these criteria:",
|
||||
"apihelp-query+transcludedin-paramvalue-show-redirect": "Only show redirects.",
|
||||
"apihelp-query+transcludedin-paramvalue-show-!redirect": "Only show non-redirects.",
|
||||
"apihelp-query+transcludedin-example-simple": "Get a list of pages transcluding <kbd>Main Page</kbd>.",
|
||||
"apihelp-query+transcludedin-example-generator": "Get information about pages transcluding <kbd>Main Page</kbd>.",
|
||||
|
||||
"apihelp-query+transcludedin-example-simple": "Get a list of pages transcluding [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+transcludedin-example-generator": "Get information about pages transcluding [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-query+usercontribs-summary": "Get all edits by a user.",
|
||||
"apihelp-query+usercontribs-param-limit": "The maximum number of contributions to return.",
|
||||
"apihelp-query+usercontribs-param-start": "The start timestamp to return from, i.e. revisions before this timestamp.",
|
||||
|
|
@ -1513,7 +1508,7 @@
|
|||
"apihelp-revisiondelete-param-suppress": "Whether to suppress data from administrators as well as others.",
|
||||
"apihelp-revisiondelete-param-reason": "Reason for the deletion or undeletion.",
|
||||
"apihelp-revisiondelete-param-tags": "Tags to apply to the entry in the deletion log.",
|
||||
"apihelp-revisiondelete-example-revision": "Hide content for revision <kbd>12345</kbd> on the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-revisiondelete-example-revision": "Hide content for revision <kbd>12345</kbd> on the page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-revisiondelete-example-log": "Hide all data on log entry <kbd>67890</kbd> with the reason <kbd>BLP violation</kbd>.",
|
||||
|
||||
"apihelp-rollback-summary": "Undo the last edit to the page.",
|
||||
|
|
@ -1526,9 +1521,8 @@
|
|||
"apihelp-rollback-param-markbot": "Mark the reverted edits and the revert as bot edits.",
|
||||
"apihelp-rollback-param-watchlist": "Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.",
|
||||
"apihelp-rollback-param-watchlistexpiry": "Watchlist expiry timestamp. Omit this parameter entirely to leave the current expiry unchanged.",
|
||||
"apihelp-rollback-example-simple": "Roll back the last edits to page <kbd>Main Page</kbd> by user <kbd>Example</kbd>.",
|
||||
"apihelp-rollback-example-summary": "Roll back the last edits to page <kbd>Main Page</kbd> by IP user <kbd>192.0.2.5</kbd> with summary <kbd>Reverting vandalism</kbd>, and mark those edits and the revert as bot edits.",
|
||||
|
||||
"apihelp-rollback-example-simple": "Roll back the last edits to page [[{{MediaWiki:Mainpage}}]] by user <kbd>Example</kbd>.",
|
||||
"apihelp-rollback-example-summary": "Roll back the last edits to page [[{{MediaWiki:Mainpage}}]] by IP user <kbd>192.0.2.5</kbd> with summary <kbd>Reverting vandalism</kbd>, and mark those edits and the revert as bot edits.",
|
||||
"apihelp-rsd-summary": "Export an RSD (Really Simple Discovery) schema.",
|
||||
"apihelp-rsd-example-simple": "Export the RSD schema.",
|
||||
|
||||
|
|
@ -1539,8 +1533,8 @@
|
|||
"apihelp-setnotificationtimestamp-param-torevid": "Revision to set the notification timestamp to (one page only).",
|
||||
"apihelp-setnotificationtimestamp-param-newerthanrevid": "Revision to set the notification timestamp newer than (one page only).",
|
||||
"apihelp-setnotificationtimestamp-example-all": "Reset the notification status for the entire watchlist.",
|
||||
"apihelp-setnotificationtimestamp-example-page": "Reset the notification status for <kbd>Main page</kbd>.",
|
||||
"apihelp-setnotificationtimestamp-example-pagetimestamp": "Set the notification timestamp for <kbd>Main page</kbd> so all edits since 1 January 2012 are unviewed.",
|
||||
"apihelp-setnotificationtimestamp-example-page": "Reset the notification status for [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-setnotificationtimestamp-example-pagetimestamp": "Set the notification timestamp for [[{{MediaWiki:Mainpage}}]] so all edits since 1 January 2012 are unviewed.",
|
||||
"apihelp-setnotificationtimestamp-example-allpages": "Reset the notification status for pages in the <kbd>{{ns:user}}</kbd> namespace.",
|
||||
|
||||
"apihelp-setpagelanguage-summary": "Change the language of a page.",
|
||||
|
|
@ -1550,7 +1544,7 @@
|
|||
"apihelp-setpagelanguage-param-lang": "Language code of the language to change the page to. Use <kbd>default</kbd> to reset the page to the wiki's default content language.",
|
||||
"apihelp-setpagelanguage-param-reason": "Reason for the change.",
|
||||
"apihelp-setpagelanguage-param-tags": "Change tags to apply to the log entry resulting from this action.",
|
||||
"apihelp-setpagelanguage-example-language": "Change the language of <kbd>Main Page</kbd> to Basque.",
|
||||
"apihelp-setpagelanguage-example-language": "Change the language of the page [[{{MediaWiki:Mainpage}}]] to Basque.",
|
||||
"apihelp-setpagelanguage-example-default": "Change the language of the page with ID 123 to the wiki's default content language.",
|
||||
|
||||
"apihelp-stashedit-summary": "Prepare an edit in shared cache.",
|
||||
|
|
@ -1597,9 +1591,8 @@
|
|||
"apihelp-undelete-param-watchlist": "Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.",
|
||||
"apihelp-undelete-param-watchlistexpiry": "Watchlist expiry timestamp. Omit this parameter entirely to leave the current expiry unchanged.",
|
||||
"apihelp-undelete-param-undeletetalk": "Undelete all revisions of the associated talk page, if any.",
|
||||
"apihelp-undelete-example-page": "Undelete page <kbd>Main Page</kbd>.",
|
||||
"apihelp-undelete-example-revisions": "Undelete two revisions of page <kbd>Main Page</kbd>.",
|
||||
|
||||
"apihelp-undelete-example-page": "Undelete page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-undelete-example-revisions": "Undelete two revisions of page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-unlinkaccount-summary": "Remove a linked third-party account from the current user.",
|
||||
"apihelp-unlinkaccount-example-simple": "Attempt to remove the current user's link for the provider associated with <kbd>FooAuthenticationRequest</kbd>.",
|
||||
|
||||
|
|
@ -1653,9 +1646,9 @@
|
|||
"apihelp-watch-param-title": "The page to (un)watch. Use <var>$1titles</var> instead.",
|
||||
"apihelp-watch-param-expiry": "Expiry timestamp to be applied to all given pages. Omit this parameter entirely to leave any current expiries unchanged.",
|
||||
"apihelp-watch-param-unwatch": "If set the page will be unwatched rather than watched.",
|
||||
"apihelp-watch-example-watch": "Watch the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-watch-example-watch-expiry": "Watch the pages <kbd>Main Page</kbd>, <kbd>Foo</kbd>, and <kbd>Bar</kbd> for one month.",
|
||||
"apihelp-watch-example-unwatch": "Unwatch the page <kbd>Main Page</kbd>.",
|
||||
"apihelp-watch-example-watch": "Watch the page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-watch-example-watch-expiry": "Watch the pages [[{{MediaWiki:Mainpage}}]], <kbd>Foo</kbd>, and <kbd>Bar</kbd> for one month.",
|
||||
"apihelp-watch-example-unwatch": "Unwatch the page [[{{MediaWiki:Mainpage}}]].",
|
||||
"apihelp-watch-example-generator": "Watch the first few pages in the main namespace.",
|
||||
|
||||
"apihelp-format-example-generic": "Return the query result in the $1 format.",
|
||||
|
|
|
|||
Loading…
Reference in a new issue