(bug 25174) Add equal sign to boolean parameters in examples, so that the examples...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Tue, 23 Nov 2010 22:05:27 +0000 (22:05 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Tue, 23 Nov 2010 22:05:27 +0000 (22:05 +0000)
includes/api/ApiBlock.php
includes/api/ApiEditPage.php
includes/api/ApiImport.php
includes/api/ApiMove.php
includes/api/ApiProtect.php
includes/api/ApiQueryAllLinks.php
includes/api/ApiQueryDeletedrevs.php
includes/api/ApiQueryLangLinks.php
includes/api/ApiQuerySiteinfo.php
includes/api/ApiQueryWatchlist.php
includes/api/ApiWatch.php

index 3055007..25506ac 100644 (file)
@@ -194,7 +194,7 @@ class ApiBlock extends ApiBase {
        protected function getExamples() {
                return array(
                        'api.php?action=block&user=123.5.5.12&expiry=3%20days&reason=First%20strike',
-                       'api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate&autoblock&noemail'
+                       'api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail='
                );
        }
 
index 0a88371..87f9313 100644 (file)
@@ -514,7 +514,7 @@ class ApiEditPage extends ApiBase {
                        'Edit a page (anonymous user):',
                        '    api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&basetimestamp=20070824123454&token=%2B\\',
                        'Prepend __NOTOC__ to a page (anonymous user):',
-                       '    api.php?action=edit&title=Test&summary=NOTOC&minor&prependtext=__NOTOC__%0A&basetimestamp=20070824123454&token=%2B\\',
+                       '    api.php?action=edit&title=Test&summary=NOTOC&minor=&prependtext=__NOTOC__%0A&basetimestamp=20070824123454&token=%2B\\',
                        'Undo r13579 through r13585 with autosummary (anonymous user):',
                        '    api.php?action=edit&title=Test&undo=13585&undoafter=13579&basetimestamp=20070824123454&token=%2B\\',
                );
index 8c03106..39b991a 100644 (file)
@@ -165,7 +165,7 @@ class ApiImport extends ApiBase {
        protected function getExamples() {
                return array(
                        'Import [[meta:Help:Parserfunctions]] to namespace 100 with full history:',
-                       '  api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory&token=123ABC',
+                       '  api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory=&token=123ABC',
                );
        }
 
index 13b54da..c5cbe5e 100644 (file)
@@ -243,7 +243,7 @@ class ApiMove extends ApiBase {
 
        protected function getExamples() {
                return array(
-                       'api.php?action=move&from=Exampel&to=Example&token=123ABC&reason=Misspelled%20title&movetalk&noredirect'
+                       'api.php?action=move&from=Exampel&to=Example&token=123ABC&reason=Misspelled%20title&movetalk=&noredirect='
                );
        }
 
index 6a1658c..7f2b83d 100644 (file)
@@ -217,7 +217,7 @@ class ApiProtect extends ApiBase {
 
        protected function getExamples() {
                return array(
-                       'api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=sysop|move=sysop&cascade&expiry=20070901163000|never',
+                       'api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=sysop|move=sysop&cascade=&expiry=20070901163000|never',
                        'api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=all|move=all&reason=Lifting%20restrictions'
                );
        }
index 537b242..7f619c5 100644 (file)
@@ -224,7 +224,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase {
 
        protected function getExamples() {
                return array(
-                       'api.php?action=query&list=alllinks&alunique&alfrom=B',
+                       'api.php?action=query&list=alllinks&alunique=&alfrom=B',
                );
        }
 
index e6213fc..936e536 100644 (file)
@@ -367,7 +367,7 @@ class ApiQueryDeletedrevs extends ApiQueryBase {
                        '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&drdir=newer&drlimit=50&drnamespace=1&drunique=',
                );
        }
 
index 3f7e4fd..58029ff 100644 (file)
@@ -141,7 +141,7 @@ class ApiQueryLangLinks extends ApiQueryBase {
        protected 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=',
                );
        }
 
index 5eec4de..9e85688 100644 (file)
@@ -526,7 +526,7 @@ class ApiQuerySiteinfo extends ApiQueryBase {
                return array(
                        'api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics',
                        'api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local',
-                       'api.php?action=query&meta=siteinfo&siprop=dbrepllag&sishowalldb',
+                       'api.php?action=query&meta=siteinfo&siprop=dbrepllag&sishowalldb=',
                );
        }
 
index 547ce8c..eef8fb6 100644 (file)
@@ -412,9 +412,9 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                return array(
                        'api.php?action=query&list=watchlist',
                        'api.php?action=query&list=watchlist&wlprop=ids|title|timestamp|user|comment',
-                       'api.php?action=query&list=watchlist&wlallrev&wlprop=ids|title|timestamp|user|comment',
+                       'api.php?action=query&list=watchlist&wlallrev=&wlprop=ids|title|timestamp|user|comment',
                        'api.php?action=query&generator=watchlist&prop=info',
-                       'api.php?action=query&generator=watchlist&gwlallrev&prop=revisions&rvprop=timestamp|user',
+                       'api.php?action=query&generator=watchlist&gwlallrev=&prop=revisions&rvprop=timestamp|user',
                        'api.php?action=query&list=watchlist&wlowner=Bob_Smith&wltoken=d8d562e9725ea1512894cdab28e5ceebc7f20237'
                );
        }
index 4ad1da5..81ded18 100644 (file)
@@ -108,7 +108,7 @@ class ApiWatch extends ApiBase {
        protected 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&unwatch=',
                );
        }