Page MenuHomePhabricator

Mostlinkedtemplates returns title of templates that starts with lowercase letters on zhwiktionary
Closed, ResolvedPublic

Description

After T187783. All template title must starts with upper case letter on zhwiktionary. But when I querying Mostlinkedtemplates, I get:
{"value":"49106","ns":10,"title":"Template:zhushi"} https://zh.wiktionary.org/w/api.php?action=query&format=json&list=querypage&continue=-%7C%7C&qppage=Mostlinkedtemplates&qpoffset=50&qplimit=10
{"value":"1299","ns":10,"title":"Template:Zhushi"} https://zh.wiktionary.org/w/api.php?action=query&format=json&list=querypage&continue=-%7C%7C&qppage=Mostlinkedtemplates&qpoffset=360&qplimit=10
Two rows for same template and one's title starts with lower case letter.

Event Timeline

(I don't see any Special page involved here?)

(I don't see any Special page involved here?)

There's a special page, Special:MostTranscludedPages. Special:MostLinkedTemplates redirects there.

But the special page may not be involved. I guess this is issue with the API

Special page is also affected, but it links both times to the same page. API is more accurate here by reflect the underlying data

https://zh.wiktionary.org/wiki/Special:最多链接模板

  1. Template:Zhushi‏‎ (used on 49,106 pages)
  2. Template:Zhushi‏‎ (used on 1,299 pages)

Due to the config change the old links are not reachable with special:whatlinkshere

https://zh.wiktionary.org/wiki/Special:链入页面/Template:Zhushi

It seems there are corruct entries in the templatelinks table which needs clean up.
I am not sure if there is a maintenance script to clean up these duplicates.

I am not sure if there is a maintenance script to clean up these duplicates.

refreshLinks.php.

Another solution is making null edit on all page transcluding this template.

I assume the problem is that all the links table pointing to pages in the template namespace (templatelinks, redirects, pagelins) will need to be cleaned up to convert entries for titles that start with a lower case letter (and remove duplicates).

Is this still an issue?

Looks fixed according to the special page and found no lower-case links to template namespace in linktarget