Last modified: 2013-10-31 22:11:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52888, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50888 - VisualEditor cannot get full TemplateData on zhwiki (language variant issue?)
VisualEditor cannot get full TemplateData on zhwiki (language variant issue?)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
TemplateData (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Krinkle
:
Depends on: 50431
Blocks: ve-nonenglish
  Show dependency treegraph
 
Reported: 2013-07-07 14:11 UTC by Waihorace
Modified: 2013-10-31 22:11 UTC (History)
4 users (show)

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


Attachments
screenshot of the dialogue (15.20 KB, image/png)
2013-07-07 14:11 UTC, Waihorace
Details
API response (1.75 KB, application/octet-stream)
2013-07-07 14:49 UTC, Helder
Details

Description Waihorace 2013-07-07 14:11:10 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 )
Comment 1 Helder 2013-07-07 14:49:40 UTC
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.
Comment 2 Waihorace 2013-07-07 15:10:10 UTC
(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.
Comment 3 Gerrit Notification Bot 2013-10-31 00:55:00 UTC
Change 92826 had a related patch set uploaded by Krinkle:
dm.MWTemplateSpecModel: Resolve translations through the TemplateData API

https://gerrit.wikimedia.org/r/92826
Comment 4 Gerrit Notification Bot 2013-10-31 21:42:45 UTC
Change 92826 merged by jenkins-bot:
dm.MWTemplateSpecModel: Resolve translations through the TemplateData API

https://gerrit.wikimedia.org/r/92826

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


Navigation
Links