Page MenuHomePhabricator

[clonable] APISite and DataSite method docstrings should include a link to the corresponding mw:API help
Closed, ResolvedPublic

Description

Many APISite and DataSite methods are thin wrappers around a module of the MediaWiki API, and the docstrings for these methods should include a link to the API:<foo> pages on http://mediawiki.org/wiki/API:Main_page

Links should be added using sphinx syntax.

Easy CGI Task: Find three APISite or DataSite methods which are a thin wrapper around a module of the MediaWiki API , and add the appropriate link to the docstring.
Either submit one changeset to Gerrit combining all three amendments, or submit three changesets to Gerrit containing only one amended docstring.

See also https://doc.wikimedia.org/pywikibot/master/mwapi.html (the references are already done for these methods I guess).

Event Timeline

jayvdb raised the priority of this task from to Medium.
jayvdb updated the task description. (Show Details)
jayvdb added subscribers: Unknown Object (MLST), valhallasw, Aklapper, jayvdb.
jayvdb renamed this task from APISite and DataSite method docstrings should include a link to the corresponding mw:API help to [clonable] APISite and DataSite method docstrings should include a link to the corresponding mw:API help.Nov 11 2015, 10:16 PM
jayvdb updated the task description. (Show Details)
jayvdb added a project: Google-Code-In-2015.
jayvdb added a project: Pywikibot.
jayvdb updated the task description. (Show Details)
jayvdb added a subscriber: MtDu.

@Dvorapa: Do you plan to mentor this task? If so feel free to create it on the GCI site. :)

Yes, I'll find some spare time and make GCI tasks for this

@Dvorapa: You have two more weeks for Google-Code-in-2018, if you still plan to. :)

Change 497132 had a related patch set uploaded (by Jeropbrendawm; owner: Jeropbrendawm):
[pywikibot/core@master] Add corresponding API page links to APISite method docstrings

https://gerrit.wikimedia.org/r/497132

Change 497132 merged by jenkins-bot:
[pywikibot/core@master] Add corresponding API page links to APISite method docstrings

https://gerrit.wikimedia.org/r/497132

Change 498065 had a related patch set uploaded (by Nikitrain; owner: Nikitrain):
[pywikibot/core@master] Add corresponding API page links to APISite method docstrings

https://gerrit.wikimedia.org/r/498065

Change 498095 had a related patch set uploaded (by Nikitrain; owner: Nikitrain):
[pywikibot/core@master] [IMPR] Add corresponding API page links to APISite method docstrings

https://gerrit.wikimedia.org/r/498095

Change 498065 abandoned by Nikitrain:
[IMPR] Add corresponding API page links to APISite method docstrings

https://gerrit.wikimedia.org/r/498065

Change 498095 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] Add corresponding API page links to APISite method docstrings

https://gerrit.wikimedia.org/r/498095

Change 498977 had a related patch set uploaded (by Didicodes; owner: Didicodes):
[pywikibot/core@master] Add corresponding API page links to APISite method docstrings

https://gerrit.wikimedia.org/r/498977

Change 498977 abandoned by Xqt:
[IMPR] Add corresponding API page links to APISite method docstrings

Reason:
Not applicable for scripts

https://gerrit.wikimedia.org/r/498977

Change 795374 had a related patch set uploaded (by Hongsy; author: Hongsy):

[pywikibot/core@master] Fix doc in APISite.blockuser

https://gerrit.wikimedia.org/r/795374

hongsy changed the task status from Open to In Progress.May 22 2022, 12:30 PM
hongsy subscribed.

Hello

I noticed the Wikibase APIs do not have a API: link: e.g. https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities is the standard link to the wbsearchentities API and https://www.mediawiki.org/wiki/API:wbsearchentities doesn't work.

I am wondering if the doc will be rendered correctly if i do something like:

.. seealso:: :api:`wbsearchentities`

Change 795374 merged by jenkins-bot:

[pywikibot/core@master] Fix doc in APISite.blockuser

https://gerrit.wikimedia.org/r/795374

Hello

I noticed the Wikibase APIs do not have a API: link: e.g. https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities is the standard link to the wbsearchentities API and https://www.mediawiki.org/wiki/API:wbsearchentities doesn't work.

I am wondering if the doc will be rendered correctly if i do something like:

.. seealso:: :api:`wbsearchentities`

We use extlinks sphinx extension. The :api: role only points to https://www.mediawiki.org/wiki/API:%s see https://gerrit.wikimedia.org/r/plugins/gitiles/pywikibot/core/+/21d409d40bacd47f3e7f502960120419ca35031f/docs/conf.py#359.

Either a new role for wikibase API must be definded (if there are a lot of it) or the a hyper link mustbe used.

Xqt changed the task status from In Progress to Open.Oct 13 2022, 10:19 AM
Xqt updated the task description. (Show Details)

Working on this as a new contributor due to it being tagged "good first task".

Most of them are already done