Last modified: 2013-10-31 22:11:17 UTC
Created attachment 12773 [details] screenshot of the dialogue I added TemplateData to Template:X1 (this is a sandbox) Then, I go to my personal sandbox User:Waihorace/sandbox/VE to try adding Template X1 to that page. I pressed the button that allow me to add template (don't know its exact English wording) It prompt me to enter a template name, so I typed in X1 Then, it comes out that the description is not shown, parma names are not shown, but the list of parma is given for me to choose. Why the description and the name and description of the parma is not shown, while https://zh.wikipedia.org/w/api.php?action=templatedata&titles=Template:X1&format=jsonfm works? ( X1 is a template which will be cleared by a bot automatically. To reproduce, check if the content is still there or otherwise revent back to oldid=27156695 )
Created attachment 12774 [details] API response To make it easier, after I restored your edit at https://zh.wikipedia.org/w/index.php?diff=27157124 the content of https://zh.wikipedia.org/w/api.php?action=templatedata&titles=Template:X1&format=jsonfm was like in the attached file. What was your user language preference when you tested this? Does the problem happens on both of the following URLs? https://zh.wikipedia.org/wiki/User:Waihorace/sandbox/VE?veaction=edit&uselang=zh https://zh.wikipedia.org/wiki/User:Waihorace/sandbox/VE?veaction=edit&uselang=en For me the bug only happens in the second one, and I think this is the same as bug 50431.
(In reply to comment #1) > Created attachment 12774 [details] > API response > > To make it easier, after I restored your edit at > https://zh.wikipedia.org/w/index.php?diff=27157124 > the content of > https://zh.wikipedia.org/w/api.php?action=templatedata&titles=Template: > X1&format=jsonfm > was like in the attached file. > > What was your user language preference when you tested this? > > Does the problem happens on both of the following URLs? > https://zh.wikipedia.org/wiki/User:Waihorace/sandbox/ > VE?veaction=edit&uselang=zh > https://zh.wikipedia.org/wiki/User:Waihorace/sandbox/ > VE?veaction=edit&uselang=en > > For me the bug only happens in the second one, and I think this is the same > as > bug 50431. The bug only happens in the second one. I think the problem that I reported comes out because of the language conversion of Chinese Wikipedia. The TemplateData only works on zh, but not any variant of Chinese (e.g. zh-hans, zh-hant, zh-tw, zh-cn, zh-hk, zh-sg, zh-mo). Should the data in zh be applied in those 7 variants, or otherwise, editors need to set the description for every variants which is time-wasting.
Change 92826 had a related patch set uploaded by Krinkle: dm.MWTemplateSpecModel: Resolve translations through the TemplateData API https://gerrit.wikimedia.org/r/92826
Change 92826 merged by jenkins-bot: dm.MWTemplateSpecModel: Resolve translations through the TemplateData API https://gerrit.wikimedia.org/r/92826