Page MenuHomePhabricator

Run namespaceDupes.php for wikis in Western Punjabi (pnb)
Closed, ResolvedPublic

Description

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.

Event Timeline

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

Wikipedia

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.

Terbium
$ 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 "سانچہ:جھنڈا_تصویر" (https://pnb.wikipedia.org/w/?curid=38571 and https://pnb.wikipedia.org/w/?curid=38447) 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 .

I deleted the https://pnb.wikipedia.org/w/?curid=38447 and ( https://pnb.wikipedia.org/w/?curid=35728 pagelinks from=35728 ns=0 dbk=خاص:شراکتیں/عثمان_خلیل)

New series:

terbium
$ 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)

There is only one remaining link issue:

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

The problematic link is probably on this page: https://pnb.wikipedia.org/w/index.php?cur=35725

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