Run namespaceDupes.php for wikis in Western Punjabi (pnb)
Open, Needs TriagePublic


Per T157871, I added several translations for namespace names in Western Punjabi (pnb). We should run the namespaceDupes.php script after those changes are deployed (week of 13 March) to verify that no pages become inaccessible.

matmarex created this task.Mar 8 2017, 7:23 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 8 2017, 7:23 PM

Mentioned in SAL (#wikimedia-operations) [2017-03-15T10:37:03Z] <Dereckson> Run namespaceDupes.php for pnb.wikipedia (T159976)


This needs the assistance of a local editor to review the two pagelinks issues at ?curid=35725 and ?curid=35728.

I'll also need a local sysop to analyze then delete a duplicate page for 38571.

$ mwscript namespaceDupes.php pnbwiki --merge  --fix
$ mwscript namespaceDupes.php pnbwiki 
id=38571 ns=0 dbk=سانچہ:جھنڈا_تصویر *** dest title exists and --add-prefix not specified
1 pages to fix, 0 were resolvable.
pagelinks from=35725 ns=0 dbk=خاص:شراکتیں/عثمان_خلیل *** INVALID
pagelinks from=35728 ns=0 dbk=خاص:شراکتیں/عثمان_خلیل *** INVALID
2 links to fix, 0 were resolvable.
Oh noeees

Mentioned in SAL (#wikimedia-operations) [2017-03-15T10:41:43Z] <Dereckson> Run namespaceDupes.php for pnb.wiktionary (T159976): all looks good for this one

matmarex added a subscriber: 75.Abbasdhothar.

@Dereckson: Can you explain what the script output above actually means? I'm having trouble making sense of it. @75.Abbasdhothar provided the translations and requested the change, hopefully they can help here :)

OK, I actually see the first one: there are two pages titled "سانچہ:جھنڈا_تصویر" ( and and we need to somehow merge/delete one of them. Looks like this is actually an older problem, since "Template" was translated earlier.

I don't understand what the second issue is, with pagelinks?

These two templates are same , if u delete one the second atomaically deleted , if u made change in one of them the same change atomatically appears in second template .

75.Abbasdhothar added a comment.EditedMar 16 2017, 8:29 AM

I deleted the and ( pagelinks from=35728 ns=0 dbk=خاص:شراکتیں/عثمان_خلیل)

New series:

$ mwscript namespaceDupes.php pnbwiki --add-suffix=" ٢" --fix
id=38571 ns=0 dbk=سانچہ:جھنڈا_تصویر -> سانچہ:جھنڈا_تصویر_٢ (alternate)
id=50037 ns=0 dbk=ماڈیول:Portal/images -> ماڈیول:Portal/images_٢ (alternate)
2 pages to fix, 2 were resolvable.

pagelinks from=35725 ns=0 dbk=خاص:شراکتیں/عثمان_خلیل *** INVALID
1 links to fix, 0 were resolvable.

Looks good!
  • pagelinks means a invalid link is present on the page (page_id / cur: 35725) , so you need to fix it (generally it's the namespace you need to fix using the canonical one, with correct case)
  • for the pages to fix, it created pages appended with ٢, so a local sysop can compare content, merge histories and delete this extra page.

Mentioned in SAL (#wikimedia-operations) [2017-03-21T22:44:53Z] <Dereckson> Run namespaceDupes on pnbwiki (T159976)

Dereckson moved this task from Backlog to Working on on the Wikimedia-Site-requests board.

There is only one remaining link issue:

pagelinks from=35725 ns=0 dbk=خاص:شراکتیں/عثمان_خلیل *** INVALID

The problematic link is probably on this page: