From: Sam Reed Date: Fri, 16 Dec 2011 15:45:16 +0000 (+0000) Subject: Convert a few more descriptions X-Git-Tag: 1.31.0-rc.0~25937 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=1b46e91efdb021d7e3522d150b8a68f34e609232;p=lhc%2Fweb%2Fwiklou.git Convert a few more descriptions Ping r106439 --- diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index 0556a5093a..e003ee9115 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -309,14 +309,17 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase { public function getExamples() { return array( - 'Simple Use', - ' Show a list of pages starting at the letter "B"', - ' api.php?action=query&list=allpages&apfrom=B', - 'Using as Generator', - ' Show info about 4 pages starting at the letter "T"', - ' api.php?action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info', - ' Show content of first 2 non-redirect pages begining at "Re"', - ' api.php?action=query&generator=allpages&gaplimit=2&gapfilterredir=nonredirects&gapfrom=Re&prop=revisions&rvprop=content' + 'api.php?action=query&list=allpages&apfrom=B' => array( + 'Simple Use', + 'Show a list of pages starting at the letter "B"', + ), + 'api.php?action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info' => array( + 'Using as Generator', + 'Show info about 4 pages starting at the letter "T"', + ), + 'api.php?action=query&generator=allpages&gaplimit=2&gapfilterredir=nonredirects&gapfrom=Re&prop=revisions&rvprop=content' => array( + 'Show content of first 2 non-redirect pages begining at "Re"', + ) ); } diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index 9335a96ff3..16f73fdc3c 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -251,10 +251,8 @@ class ApiQueryCategories extends ApiQueryGeneratorBase { public function getExamples() { return array( - 'Get a list of categories [[Albert Einstein]] belongs to:', - ' api.php?action=query&prop=categories&titles=Albert%20Einstein', - 'Get information about all categories used in the [[Albert Einstein]]:', - ' api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info' + 'api.php?action=query&prop=categories&titles=Albert%20Einstein' => 'Get a list of categories [[Albert Einstein]] belongs to:', + 'api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info' => 'Get information about all categories used in the [[Albert Einstein]]:', ); } diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index c273ad0575..fe86a2fca2 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -389,10 +389,8 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { public function getExamples() { return array( - 'Get first 10 pages in [[Category:Physics]]:', - ' api.php?action=query&list=categorymembers&cmtitle=Category:Physics', - 'Get page info about first 10 pages in [[Category:Physics]]:', - ' api.php?action=query&generator=categorymembers&gcmtitle=Category:Physics&prop=info', + 'api.php?action=query&list=categorymembers&cmtitle=Category:Physics' => 'Get first 10 pages in [[Category:Physics]]:', + 'api.php?action=query&generator=categorymembers&gcmtitle=Category:Physics&prop=info' => 'Get page info about first 10 pages in [[Category:Physics]]:', ); } diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 48bea175f7..43e871f03b 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -382,14 +382,14 @@ class ApiQueryDeletedrevs extends ApiQueryBase { public function getExamples() { return array( - 'List the last deleted revisions of Main Page and Talk:Main Page, with content (mode 1):', - ' api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content', - 'List the last 50 deleted contributions by Bob (mode 2):', - ' api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50', - 'List the first 50 deleted revisions in the main namespace (mode 3):', - ' api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50', - 'List the first 50 deleted pages in the Talk namespace (mode 3):', - ' api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique=', + 'api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content' + => 'List the last deleted revisions of Main Page and Talk:Main Page, with content (mode 1):', + 'api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50' + => 'List the last 50 deleted contributions by Bob (mode 2):', + 'api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50' + => 'List the first 50 deleted revisions in the main namespace (mode 3):', + 'api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique=' + => 'List the first 50 deleted pages in the Talk namespace (mode 3):', ); } diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index 7038fbc3ca..42281e87cb 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -145,8 +145,7 @@ class ApiQueryExternalLinks extends ApiQueryBase { public function getExamples() { return array( - 'Get a list of external links on the [[Main Page]]:', - ' api.php?action=query&prop=extlinks&titles=Main%20Page', + 'api.php?action=query&prop=extlinks&titles=Main%20Page' => 'Get a list of external links on the [[Main Page]]:', ); } diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index 17387c8786..be995f3086 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -282,9 +282,10 @@ class ApiQueryFilearchive extends ApiQueryBase { public function getExamples() { return array( - 'Simple Use', - ' Show a list of all deleted files', - ' api.php?action=query&list=filearchive', + 'api.php?action=query&list=filearchive' => array( + 'Simple Use', + 'Show a list of all deleted files', + ), ); } diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index 6e37d3e908..be83db89e8 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -178,8 +178,7 @@ class ApiQueryIWLinks extends ApiQueryBase { public function getExamples() { return array( - 'Get interwiki links from the [[Main Page]]:', - ' api.php?action=query&prop=iwlinks&titles=Main%20Page', + 'api.php?action=query&prop=iwlinks&titles=Main%20Page' => 'Get interwiki links from the [[Main Page]]:', ); } diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index ad1e8a6c5c..a9cf0b6ea5 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -185,10 +185,8 @@ class ApiQueryImages extends ApiQueryGeneratorBase { public function getExamples() { return array( - 'Get a list of images used in the [[Main Page]]:', - ' api.php?action=query&prop=images&titles=Main%20Page', - 'Get information about all images used in the [[Main Page]]:', - ' api.php?action=query&generator=images&titles=Main%20Page&prop=info' + 'api.php?action=query&prop=images&titles=Main%20Page' => 'Get a list of images used in the [[Main Page]]:', + 'api.php?action=query&generator=images&titles=Main%20Page&prop=info' => 'Get information about all images used in the [[Main Page]]:', ); } diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 9d220ffa8a..24258363e7 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -171,8 +171,7 @@ class ApiQueryLangLinks extends ApiQueryBase { public function getExamples() { return array( - 'Get interlanguage links from the [[Main Page]]:', - ' api.php?action=query&prop=langlinks&titles=Main%20Page&redirects=', + 'api.php?action=query&prop=langlinks&titles=Main%20Page&redirects=' => 'Get interlanguage links from the [[Main Page]]:', ); } diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index 3e55400f2d..43b06543fd 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -231,13 +231,12 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { } public function getExamples() { + $desc = $this->description; + $name = $this->getModuleName(); return array( - "Get {$this->description}s from the [[Main Page]]:", - " api.php?action=query&prop={$this->getModuleName()}&titles=Main%20Page", - "Get information about the {$this->description} pages in the [[Main Page]]:", - " api.php?action=query&generator={$this->getModuleName()}&titles=Main%20Page&prop=info", - "Get {$this->description}s from the Main Page in the User and Template namespaces:", - " api.php?action=query&prop={$this->getModuleName()}&titles=Main%20Page&{$this->prefix}namespace=2|10" + "api.php?action=query&prop={$name}&titles=Main%20Page" => "Get {$desc}s from the [[Main Page]]:", + "api.php?action=query&generator={$name}&titles=Main%20Page&prop=info" => "Get information about the {$desc} pages in the [[Main Page]]:", + "api.php?action=query&prop={$name}&titles=Main%20Page&{$this->prefix}namespace=2|10" => "Get {$desc}s from the Main Page in the User and Template namespaces:", ); } diff --git a/includes/api/ApiWatch.php b/includes/api/ApiWatch.php index 839f2ea576..4b448d6de2 100644 --- a/includes/api/ApiWatch.php +++ b/includes/api/ApiWatch.php @@ -114,8 +114,8 @@ class ApiWatch extends ApiBase { public function getExamples() { return array( - 'api.php?action=watch&title=Main_Page', - 'api.php?action=watch&title=Main_Page&unwatch=', + 'api.php?action=watch&title=Main_Page' => 'Watch the page "Main Page"', + 'api.php?action=watch&title=Main_Page&unwatch=' => 'Unwatch the page "Main Page"', ); }