Page MenuHomePhabricator

replaceCategoryLinks places featured article templates before categories; instead of between categories and interwikis
Closed, DeclinedPublic

Description

Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1320/
Reported by: silvonen
Created on: 2011-06-12 10:47:24
Subject: replaceCategoryLinks misplaces featured article links
Original description:
I don't know if this is a known problem, but the function replaceCategoryLinks in pywikibot/textlib.py moves featured/good article templates \(e.g., \{\{Link FA|en\}\}\) above categories, although these templates are usually placed between categories and interwiki links. This has caused problems in one of the bot scripts that we use in the Finnish Wikipedia.

I am attaching a patch proposed by zache.

>python version.py
Pywikipedia \[http\] trunk/pywikipedia \(r9291, 2011/06/10, 04:46:24\)
Python 2.5.4 \(r254:67916, Jan 29 2009, 12:02:11\) \[MSC v.1310 32 bit \(Intel\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok


Version: unspecified
Severity: trivial
See Also:
https://sourceforge.net/p/pywikipediabot/bugs/1320

Details

Reference
bz55243

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 2:29 AM
bzimport added a project: Pywikibot-textlib.py.
bzimport set Reference to bz55243.
bzimport added a subscriber: Unknown Object (????).
Legoktm created this task.Oct 5 2013, 4:49 AM

textlib patch

Since interwikis moved to Wikidata and Link FA/GA/FL/etc. will move to wikidata in one month, this bug is not important

jayvdb added a subscriber: jayvdb.

On the Finnish Wikipedia, these templates are deprecated and have been completely removed from the main namespace:

jayvdb renamed this task from replaceCategoryLinks misplaces featured article links to replaceCategoryLinks places featured article templates before categories; instead of between categories and interwikis.Jul 6 2015, 5:51 AM
jayvdb set Security to None.
jayvdb added a comment.Jul 6 2015, 6:05 AM

While this specific case mentioned in this bug is basically invalid now, there may be other templates which should appear after the categories on some wikis....?
If nobody can think of other examples, we can close this.

The Portuguese Wikipedia still has many articles transcluding such templates.

He7d3r added a comment.Jul 6 2015, 1:03 PM

They are not deprecating them because they need a replacement for its functionality (T72209: [Task] Create a special page to query for badges).

Dvorapa closed this task as Declined.EditedDec 4 2017, 10:38 PM
Dvorapa added a subscriber: Dvorapa.

Templates on mentioned wikis were removed and no other templates were found out to be misplaced in more than 2 years. Feel free to reopen if any template will be affected in future. The only similar issue has got its own task: T151541

Restricted Application added a subscriber: Cyberpower678. · View Herald TranscriptDec 4 2017, 10:38 PM