Ricordisamoa created this task.
Ricordisamoa added subscribers: Aklapper, pywikipedia-bugs, Ricordisamoa.
Ricordisamoa added a project: Pywikibot-General.
Ricordisamoa changed Security from none to none.
TASK DESCRIPTION
Instead of having it hard-coded in family files, as it is now.
TASK DETAIL
https://phabricator.wikimedia.org/T78396
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ricordisamoa
Cc: Aklapper, Ricordisamoa, pywikipedia-bugs
XZise created this task.
XZise added subscribers: Aklapper, pywikipedia-bugs, XZise, jayvdb, Pietrodn.
XZise added projects: Pywikibot-Wikidata, pywikibot-core.
TASK DESCRIPTION
It is not possible to use that function to determine if the site is a data repository when the site is not already a `DataSite` instance. And in that case an `isinstance()` would work too.
If possible that should be done together with T85331 because the current system doesn't allow that a Wikibase repo uses another Wikibase repo (although I'm not sure if that is possible).
TASK DETAIL
https://phabricator.wikimedia.org/T85483
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: Aklapper, XZise, jayvdb, Pietrodn, pywikipedia-bugs
jayvdb created this task.
jayvdb assigned this task to Omegat.
jayvdb added subscribers: pywikipedia-bugs, jayvdb, XZise.
jayvdb added projects: PyWikiBot-Interwiki-Map, pywikibot-core, Pywikibot-tests.
jayvdb changed Security from none to none.
TASK DESCRIPTION
The MediaWiki API has two modes of obtaining API parameter information.
The 'old way' was deprecated in WM API version '1.25wmf4' , forcing the dev team to write code to support the new mode, and make that the default for 1.25wmf4+
The test api_tests.TestParamInfo currently runs the 'new mode' tests against any wiki. We need to determine when the new mode was first added to the API, and not run this test for wikis that do not support it.
And, the documentation should be updated with information about the two modes and which versions use which modes: https://www.mediawiki.org/wiki/API:Parameter_information
TASK DETAIL
https://phabricator.wikimedia.org/T77966
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: Omegat, jayvdb
Cc: Aklapper, jayvdb, XZise, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-Wikidata.
jayvdb changed Security from none to none.
TASK DESCRIPTION
Some data in Wikipedia is easier to extract from the rendered html than from the templates, and it puts the values into microformats. There may also be other webpages which use microformats which could be used to extract information and add it to wikidata. I expect this should be done in a new script, but it would be based on script harvest_templates.py
https://en.wikipedia.org/wiki/Help:Microformats .
birthdate and deathdate are good examples, where on English Wikipedia they are placed in special spans, using a constant format.
view-source:https://en.wikipedia.org/wiki/Benjamin_Franklin
<span class="bday">1706-01-17</span>
<span class="dday deathdate">1790-04-17</span>
The {{Persondata}} template is relatively easy to parse the template, but it is also well labelled in the HTML. <https://en.wikipedia.org/wiki/Wikipedia:Persondata>
<table id="persondata" class="persondata noprint" style="border:1px solid #aaa; display:none; speak:none;">
<tr>
<th colspan="2"><a href="/wiki/Wikipedia:Persondata" title="Wikipedia:Persondata">Persondata</a></th>
</tr>
<tr>
<td class="persondata-label" style="color:#aaa;">Name</td>
<td>Franklin, Benjamin</td>
</tr>
<tr>
<td class="persondata-label" style="color:#aaa;">Alternative names</td>
<td></td>
</tr>
<tr>
<td class="persondata-label" style="color:#aaa;">Short description</td>
<td>American printer, writer, politician</td>
</tr>
<tr>
<td class="persondata-label" style="color:#aaa;">Date of birth</td>
<td>January 17, 1706</td>
</tr>
<tr>
<td class="persondata-label" style="color:#aaa;">Place of birth</td>
<td>Boston, Massachusetts</td>
</tr>
<tr>
<td class="persondata-label" style="color:#aaa;">Date of death</td>
<td>April 17, 1790</td>
</tr>
<tr>
<td class="persondata-label" style="color:#aaa;">Place of death</td>
<td><a href="/wiki/Philadelphia" title="Philadelphia">Philadelphia</a>, Pennsylvania</td>
</tr>
</table>
More at https://en.wikipedia.org/wiki/Wikipedia:Metadata
A list of templates which generate microformats is at https://en.wikipedia.org/wiki/Category:Templates_generating_microformats , and sample pages can be found by using 'whatlinkshere'.
e.g. vcard with fn org can be seen in the source of the infobox here:
view-source:https://en.wikipedia.org/wiki/Manchester_Ship_Canal
TASK DETAIL
https://phabricator.wikimedia.org/T78416
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
pere_prlpz created this task.
pere_prlpz added a subscriber: pere_prlpz.
pere_prlpz added projects: pywikibot-compat, pywikibot-core.
TASK DESCRIPTION
noreferences.py has parameters for a lot of wikipedias but it lacks parameters for cawiki, and it causes some tools to malfunction. I've coded the parameters at https://ca.wikipedia.org/wiki/Usuari:Pere_prlpz/noreferences.py and they need to be included in the program.
Since the code is quite short, I copy it here, too:
#placeBeforeSections
'ca': [
u'Bibliografia',
u'Bibliografia complementària',
u'Vegeu també',
u'Enllaços externs',
u'Enllaços'
],
#referencesSections
'ca': [
u'Referències'
],
#referencesTemplates
'ca': [u'Referències', u'Reflist', u'Listaref', u'Referència',
u'Referencies', u'Referències2',
u'Amaga', u'Amaga ref', u'Amaga Ref', u'Amaga Ref2', u'Apèndix'],
TASK DETAIL
https://phabricator.wikimedia.org/T85268
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: pere_prlpz
Cc: Aklapper, pere_prlpz, jayvdb, pywikipedia-bugs
Xqt created this task.
Xqt claimed this task.
Xqt added a subscriber: Xqt.
Xqt added a project: pywikibot-redirect.py.
TASK DESCRIPTION
That exception should be handled:
....................................Traceback (most recent call last):
File "C:\pwb\core\pwb.py", line 222, in <module>
run_python_file(filename, argv, argvu, file_package)
File "C:\pwb\core\pwb.py", line 81, in run_python_file
main_mod.__dict__)
File ".\scripts\redirect.py", line 817, in <module>
main()
File ".\scripts\redirect.py", line 814, in main
bot.run()
File ".\scripts\redirect.py", line 713, in run
self.fix_double_redirects()
File ".\scripts\redirect.py", line 520, in fix_double_redirects
for redir_name in self.generator.retrieve_double_redirects():
File ".\scripts\redirect.py", line 297, in retrieve_double_redirects
for redir_page in gen:
File ".\scripts\redirect.py", line 358, in get_moved_pages_redirects
redirectsOnly=True):
File "C:\pwb\core\pywikibot\page.py", line 836, in getReferences
content=content
File "C:\pwb\core\pywikibot\site.py", line 2829, in pagereferences
namespaces=namespaces, step=step, content=content),
File "C:\pwb\core\pywikibot\site.py", line 2762, in pagebacklinks
if redir.getRedirectTarget() == page:
File "C:\pwb\core\pywikibot\page.py", line 1363, in getRedirectTarget
return self.site.getredirtarget(self)
File "C:\pwb\core\pywikibot\site.py", line 2513, in getredirtarget
raise InterwikiRedirectPage(page, target)
pywikibot.exceptions.InterwikiRedirectPage: Page redirects to a page on another
Site.
Page: [[lt:Naudotojo aptarimas:Nightstallion]]
Target page: [[en:User talk:Nightstallion]] on wikipedia:en.
<class 'pywikibot.exceptions.InterwikiRedirectPage'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
TASK DETAIL
https://phabricator.wikimedia.org/T85589
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikipedia-bugs
jayvdb created this task.
jayvdb added subscribers: Aklapper, pywikipedia-bugs, jayvdb.
jayvdb added projects: Pywikibot-tests, Pywikibot-pagegenerators.
TASK DESCRIPTION
Tests are needed for YearPageGenerator and DayPageGenerator - these should be subclasses of DefaultSiteTestCase , and run on all travis build sites (test.wikidata, en.wp, ar.wp and fr.wikt - https://travis-ci.org/wikimedia/pywikibot-core/builds), and also be tested on the production wikidata site.
It is __very__ likely that these generators will not work as expected on non-Wikipedia sites, as https://fr.wiktionary.org/wiki/2010 and https://en.wiktionary.org/wiki/2010 do not exist, and Wikidata is very different and the date module has not been updated since Wikidata was created. These tests should identify these bugs, so that they can be fixed.
TASK DETAIL
https://phabricator.wikimedia.org/T85313
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
valhallasw created this task.
valhallasw added a subscriber: valhallasw.
valhallasw added a project: pywikibot-core.
TASK DESCRIPTION
There is no reason to use threads; we can also query generators in a round-robin fashion.
TASK DETAIL
https://phabricator.wikimedia.org/T85623
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: valhallasw
Cc: Aklapper, valhallasw, jayvdb, pywikipedia-bugs