Last modified: 2014-05-28 04:16:45 UTC
Created attachment 12900 [details] GUI for the existing TemplateDataEditor Not the same as bug 50964: it would be really nice to provide a tool for editing TemplateData also outside VisualEditor (I even think it's better than inside VisualEditor because VE doesn't work on Template namespace right now). The existing TemplateDataEditor script (created by Ltrlg on frwiki, translated for enwiki by me), can be a good start. Benefits for including some equivalent in TemplateData extensions are important : * Available to all wikis * Translations can be done like they are done for TemplateData Links : * http://en.wikipedia.org/wiki/User:NicoV/TemplateDataEditor * http://fr.wikipedia.org/wiki/Utilisateur:Ltrlg/scripts/TemplateDataEditor.js
Could you please define what that "tool" would exactly do? Otherwise it will be extremely hard to define when this bug report could be considered "fixed" at some point. :)
Tool = something at least as good as the TemplateDataEditor linked above.
(In reply to comment #0) ... > editing TemplateData also outside VisualEditor (I even think it's better than > inside VisualEditor because VE doesn't work on Template namespace right now). BTW: depending on the resolution of bug 50512, the data might be migrated from Template namespace to a specific one.
(In reply to comment #1) > Could you please define what that "tool" would exactly do? > Otherwise it will be extremely hard to define when this bug report could be > considered "fixed" at some point. :) Being able to edit a <templatedata> tag in a user frienly way, much like what TemplateDataEditor allows (see the attached screenshot in my first comment). JSON is not very friendly for human editors. Basically, a window showing all the informations in the <templatedata/> and allowing a human editor to modify them easily. Extra advantage of including this in the TemplateData extension : * Users don't have to modify their common.js to have access to an editor
This is, indeed, not a duplicate of bug 50169, though it might as well be done in one go. Relabelling as such.
Created attachment 12957 [details] Screenshot of http://tools.wikimedia.pl/~mlazowik/templatedata/
(In reply to comment #0) > Created attachment 12900 [details] > GUI for the existing TemplateDataEditor > > Not the same as bug 50964 Indeed, bug 50964 is not the same, but also (apparently) completely unrelated. I assume you meant bug 50169. If this should not (also) be inside VisualEditor, can we be specific in what we want it to be then? e.g. WikiEditor, legacy toolbar, ... The referenced gadget 'parses' the wikitext textarea and adds a link in the sidebar toolbox that opens a dialog. I don't think the sidebar would be an acceptable entry point to edit the wikitext. Should be something in the toolbar. I agree we should re-use the data logic between these 2 or 3 different things. At least we can expose the data logic separately from the plugin we make for VisualEditor so that other ones can be created as gadget (until (if) we make one of the WikiEditor and/or legacy toolbar).
I don't know how I messed up with the bug number (probably several bugzilla windows opened and I paste the wrong one) ;-) Sorry, bug 50169 of course. I also think having a button in the toolbar would be a better place than the sidebar. Other possible optimization: combine it with the "Skeleton generator" so that parameter names are automatically retrieved from the template source code for initializing the templatedata the first time. Care must be taken since the templatedata will often be on the documentation page. http://singsurf.org/things/TemplateData.php?Source=true
Skeleton generator now in javascript and at http://en.wikipedia.org/wiki/User:Salix_alba/TDSkell its quite handy for getting a complete list of parameters. The human written documentation is not always upto date.
Change 85400 had a related patch set uploaded by Jforrester: TemplateData Generator GUI https://gerrit.wikimedia.org/r/85400
This is done in I863a8199c0b08cc52b320ed00dcba912dd2aeefc (though it's not yet deployed, as it is currently hidden behind a feature flag). Closing for now. If a particular wiki is happy to be a guinea pig we can switch it on there for a little for some real-world testing.
(In reply to comment #11) > If > a particular wiki is happy to be a guinea pig we can switch it on there for a > little for some real-world testing. Sound interesting, but I'm missing a bit of background... Do you mean "switch on" https://en.wikipedia.org/wiki/User:Salix_alba/TDSkell ? Would it be enabled to all users of a wiki or can it be restricted to a certain user group in order limit the experiment a bit? There is clear interest in improving template data coverage in Catalan Wikipedia but, guess what, nobody really enjoys editing JSON syntax. :)
No, this is the GUI we developed hidden behind $wgTemplateDataUseGUI.
Hi, we would like to try the TempalteDataEditor on NL wiki, see https://nl.wikipedia.org/wiki/Wikipedia:De_kroeg#Aanzetten_TemplateData-editor_op_nl-wiki
ca.wiki is also happy to test it, see https://ca.wikipedia.org/wiki/Viquip%C3%A8dia:La_taverna/Propostes#Activar_TemplateDataEditor
$wgTemplateDataUseGUI activates neither TemplateDataEditor nor TDSkell but TemplateDataGenerator. The two screenshots attached to this bug are for 'TemplateDataEditor' and 'TemplateData Editor', so the one you gave on cawiki is not correct.
As I said, the current information (or lack of) is confusing. Is there any wiki page or screenshot or anything we can link to? In any case, ca.wiki wants to try it. :)
Created attachment 14428 [details] TemplateDataGenertor screenshot I made a screenshot. I’ve cropped it to show only TemplateDataGenerator: it is a jQuery UI dialog centered on the screen.
Follow-up in 60158.