Last modified: 2007-12-02 11:33:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12180 - Null edit does not correctly update link tables in case of ifexists
Null edit does not correctly update link tables in case of ifexists
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-02 07:50 UTC by Andre Engels
Modified: 2007-12-02 11:33 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andre Engels 2007-12-02 07:50:01 UTC
On the Dutch Wikipedia there are templates like [[Sjabloon:Distriktlink]] which has (as its included part)

{{#ifexist: {{{1}}} (district) | [[{{{1}}} (district)|{{{1}}}]] | {{#ifexist: {{{1}}} | [[{{{1}}}]] | {{{1}}} }} }}

or in words: "[[X (district)]]" if that page exists, otherwise "[[X]]" if that page exists, otherwise "X". There are some cases where [[X (district)]] came into existence after this template was put on a page, one of those is [[Hertogdom Lauenburg (district)]]. The problem is that the pages that are involved still are shown on http://nl.wikipedia.org/wiki/Speciaal:VerwijzingenNaarHier/Hertogdom_Lauenburg, and making a null edit, or even a real edit elsewhere in the page doesn't get them off. Apparently the links table is not correctly updated in this case.
Comment 1 Daniel Cannon (AmiDaniel) 2007-12-02 07:56:54 UTC
I am unable to find a page called Sjabloon:Distriktlink on nlwiki. Can you please provide a direct link?
Comment 2 Lejonel 2007-12-02 11:19:51 UTC
The template is [[nl:Sjabloon:Districtlink]].

When {{#ifexist: X | something | something else }} is used the problem is not that links in "something" or "something else" are not correctly updated. But that the "X" is treated as a link. In this case two #ifexist are used so links to both "Hertogdom Lauenburg (district)" and "Hertogdom Lauenburg" are added to the linktable.
Comment 3 Daniel Cannon (AmiDaniel) 2007-12-02 11:33:37 UTC
action=purge seems to have done it. Seems to be taking a while for the backlinks to update, but the links in the article all seem to point to the correct targets now. Job queue is at 6 digits so it may take a while. If it's not fixed, feel free to reopen the bug.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links