jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/681164 )

Change subject: [doc] Update documentation
......................................................................

[doc] Update documentation

* wikipedia --> Wikipedia
* wikibase --> Wikibase
** See https://en.wikipedia.org/wiki/Wikibase

Change-Id: I4f8b19e7cb5e2750d597afaa6713bb1c420f5bec
---
M README.rst
M pywikibot/page/__init__.py
M pywikibot/pagegenerators.py
M pywikibot/site/_apisite.py
M scripts/category.py
M scripts/newitem.py
M scripts/redirect.py
7 files changed, 15 insertions(+), 15 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/README.rst b/README.rst
index 8872f7d..f2eb8d4 100644
--- a/README.rst
+++ b/README.rst
@@ -96,7 +96,7 @@

     import pywikibot
     site = pywikibot.Site('wikipedia:en')
-    repo = site.data_repository()  # the wikibase repository for given site
+    repo = site.data_repository()  # the Wikibase repository for given site
     page = repo.page_from_repository('Q91')  # create a local page for the 
given item
     item = pywikibot.ItemPage(repo, 'Q91')  # a repository item
     data = item.get()  # get all item data from repository for this item
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index 967864f..1abaef8 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -2175,15 +2175,15 @@
         """
         Return the first best Claim for this page.

-        Return the first 'preferred' ranked Claim specified by wikibase
+        Return the first 'preferred' ranked Claim specified by Wikibase
         property or the first 'normal' one otherwise.

         @param prop: property id, "P###"
-        @return: Claim object given by wikibase property number
+        @return: Claim object given by Wikibase property number
             for this page object.
         @rtype: pywikibot.Claim or None

-        @raises UnknownExtension: site has no wikibase extension
+        @raises UnknownExtension: site has no Wikibase extension
         """
         def find_best_claim(claims):
             """Find the first best ranked claim."""
@@ -3841,9 +3841,9 @@
         Return ID as title of the ItemPage.

         If the ItemPage was lazy-loaded via ItemPage.fromPage, this method
-        will fetch the wikibase item ID for the page, potentially raising
+        will fetch the Wikibase item ID for the page, potentially raising
         NoPage with the page on the linked wiki if it does not exist, or
-        does not have a corresponding wikibase item ID.
+        does not have a corresponding Wikibase item ID.

         This method also refreshes the title if the id property was set.
         i.e. item.id = 'Q60'
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index df8b3e5..618d2b6 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -2234,7 +2234,7 @@
 def WikibaseItemFilterPageGenerator(generator, has_item: bool = True,
                                     show_filtered: bool = False):
     """
-    A wrapper generator used to exclude if page has a wikibase item or not.
+    A wrapper generator used to exclude if page has a Wikibase item or not.

     @param generator: Generator to wrap.
     @type generator: generator
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 38e40f5..3f4e611 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -1015,17 +1015,17 @@

     def page_from_repository(self, item):
         """
-        Return a Page for this site object specified by wikibase item.
+        Return a Page for this site object specified by Wikibase item.

         @param item: id number of item, "Q###",
         @type item: str
-        @return: Page, or Category object given by wikibase item number
+        @return: Page, or Category object given by Wikibase item number
             for this site object.
         @rtype: pywikibot.Page or None

-        @raises pywikibot.exceptions.UnknownExtension: site has no wikibase
+        @raises pywikibot.exceptions.UnknownExtension: site has no Wikibase
             extension
-        @raises NotimplementedError: method not implemented for a wikibase site
+        @raises NotimplementedError: method not implemented for a Wikibase site
         """
         if not self.has_data_repository:
             raise UnknownExtension(
diff --git a/scripts/category.py b/scripts/category.py
index e9c4ddf..1b3f257 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -51,7 +51,7 @@
  -hist        - Creates a nice wikitable on the talk page of target category
                 that contains detailed page history of the source category.
  -nodelete    - Don't delete the old category after move.
- -nowb        - Don't update the wikibase repository.
+ -nowb        - Don't update the Wikibase repository.
  -allowsplit  - If that option is not set, it only moves the talk and main
                 page together.
  -mvtogether  - Only move the pages/subcategories of a category, if the
@@ -592,7 +592,7 @@
         self.title_regex = title_regex
         self.history = history
         self.pagesonly = pagesonly
-        # if that page doesn't has a wikibase
+        # if that page doesn't has a Wikibase
         self.wikibase = wikibase and self.site.has_data_repository
         self.allow_split = allow_split
         self.move_together = move_together
diff --git a/scripts/newitem.py b/scripts/newitem.py
index b1fedb4..33d27e5 100755
--- a/scripts/newitem.py
+++ b/scripts/newitem.py
@@ -14,7 +14,7 @@
 -pageage          The minimum number of days that has passed since the page was
                   created.

--touch            Do a null edit on every page which has a wikibase item.
+-touch            Do a null edit on every page which has a Wikibase item.
                   Be careful, this option can trigger edit rates or captchas
                   if your account is not autoconfirmed.

diff --git a/scripts/redirect.py b/scripts/redirect.py
index fa95c4f..9c0b923 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -57,7 +57,7 @@

 -sdtemplate:x  Add the speedy deletion template string including brackets.
                This enables overriding the default template via i18n or
-               to enable speedy deletion for projects other than wikipedias.
+               to enable speedy deletion for projects other than Wikipedias.

 -always        Don't prompt you for each replacement.


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/681164
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I4f8b19e7cb5e2750d597afaa6713bb1c420f5bec
Gerrit-Change-Number: 681164
Gerrit-PatchSet: 6
Gerrit-Owner: Meno25 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to