jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1062698?usp=email )
Change subject: [doc] use :wiki: role for documentation
......................................................................
[doc] use :wiki: role for documentation
Change-Id: Ifbd7462232c96b855a9faa20dbab9f5754050b16
---
M docs/glossary.rst
M docs/scripts/archive.rst
M pywikibot/family.py
M pywikibot/logging.py
M scripts/category.py
M scripts/create_isbn_edition.py
M tox.ini
7 files changed, 14 insertions(+), 16 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/docs/glossary.rst b/docs/glossary.rst
index f88a02e..73b0a5a 100644
--- a/docs/glossary.rst
+++ b/docs/glossary.rst
@@ -16,8 +16,7 @@
compat
The first Pywikibot package formerly known as *Pywikipediabot*
also called :term:`trunk` was started in 2003. MediaWiki didn't
- have an API so a `screen scrapping
- <https://en.wikipedia.org/wiki/Screen_scraper>`_ was used.
+ have an API so a :wiki:`screen scrapping<Screen_scraper>` was used.
core
In 2007 a new branch of Pywikibot formerly known as
diff --git a/docs/scripts/archive.rst b/docs/scripts/archive.rst
index ff7adb6..5779860 100644
--- a/docs/scripts/archive.rst
+++ b/docs/scripts/archive.rst
@@ -119,7 +119,7 @@
**Script to copy self published files from English Wikipedia to Commons**
This bot is based on imagecopy.py and intended to be used to empty out
-https://en.wikipedia.org/wiki/Category:Self-published_work
+:wiki:`Category:Self-published_work`
This bot uses a graphical interface and may not work from commandline
only environment.
diff --git a/pywikibot/family.py b/pywikibot/family.py
index b5520cd..26cd685 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -715,8 +715,8 @@
"""
Do a conversion on the retrieved text from the Wiki.
- For example a X-conversion in Esperanto
- https://en.wikipedia.org/wiki/Esperanto_orthography#X-system.
+ For example a :wiki:`X-conversion in Esperanto
+ <Esperanto_orthography#X-system>`.
"""
return getText
@@ -724,8 +724,8 @@
"""
Do a conversion on the text to insert on the Wiki.
- For example a X-conversion in Esperanto
- https://en.wikipedia.org/wiki/Esperanto_orthography#X-system.
+ For example a :wiki:`X-conversion in Esperanto
+ <Esperanto_orthography#X-system>`.
"""
return putText
diff --git a/pywikibot/logging.py b/pywikibot/logging.py
index 1091e45..02bbce9 100644
--- a/pywikibot/logging.py
+++ b/pywikibot/logging.py
@@ -220,7 +220,7 @@
parameter *layer* was added.
.. seealso::
- :python:`Logger.log()<library/logging.html#logging.Logger.log>`
- - https://en.wikipedia.org/wiki/Pipeline_%28Unix%29
+ - :wiki:`Pipeline (Unix)`
"""
logoutput(msg, *args, level=STDOUT, **kwargs)
diff --git a/scripts/category.py b/scripts/category.py
index 756a800..a430341 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -1426,9 +1426,8 @@
.. note:: For details please read:
- - https://en.wikipedia.org/wiki/WP:SUBCAT
-
- - https://en.wikipedia.org/wiki/WP:DIFFUSE
+ - :wiki:`WP:SUBCAT`
+ - :wiki:`WP:DIFFUSE`
.. versionadded:: 7.0
"""
diff --git a/scripts/create_isbn_edition.py b/scripts/create_isbn_edition.py
index f5dcb5c..53a4b36 100755
--- a/scripts/create_isbn_edition.py
+++ b/scripts/create_isbn_edition.py
@@ -119,8 +119,8 @@
GNU General Public License v3.0, User:Geertivp
**Documentation:**
- * https://en.wikipedia.org/wiki/ISBN
- * https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
+ * :wiki:`ISBN`
+ * :wiki:`List_of_ISO_639-1_codes`
* https://www.geeksforgeeks.org/searching-books-with-python/
*
https://www.freecodecamp.org/news/python-json-how-to-convert-a-string-to-json/
* https://pypi.org/project/isbnlib/
@@ -213,12 +213,12 @@
* :phab:`T208134`
* :phab:`T138911`
* :phab:`T20814`
- * https://en.wikipedia.org/wiki/User:Citation_bot
+ * :wiki:`User:Citation_bot`
*
https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2021/Wikidata/Bibliographical_references/sources_for_wikidataitems
* https://zenodo.org/record/55004#.YvwO4hTP1D8
**Other systems:**
- * https://en.wikipedia.org/wiki/bibliographic_database
+ * `wiki:`bibliographic_database`
*
https://www.titelbank.nl/pls/ttb/f?p=103:4012:::NO::P4012_TTEL_ID:3496019&cs=19BB8084860E3314502A1F777F875FE61
.. versionadded:: 7.7
diff --git a/tox.ini b/tox.ini
index 1faab65..62d61a8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -104,7 +104,7 @@
basepython = python3.12
commands =
rstcheck --version
- rstcheck -r --report-level WARNING --ignore-roles api,phab,source .
+ rstcheck -r --report-level WARNING --ignore-roles api,phab,source,wiki .
deps =
-rrequirements.txt
-rdocs/requirements.txt
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1062698?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ifbd7462232c96b855a9faa20dbab9f5754050b16
Gerrit-Change-Number: 1062698
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]