Forum:Implement a visual editor: Difference between revisions

No edit summary
Line 58: Line 58:


==Comments==
==Comments==
VisualEditor does reformat template parameters to a [https://www.mediawiki.org/wiki/Help:TemplateData#Custom_formats specified format]. Wikipedia generally uses block for their infoboxes, but it [https://phabricator.wikimedia.org/T179259#3736172 looks like] if the format is left unspecified, VisualEditor will leave the param spacing alone. This got me down a different rabbit hole though, which is that if we were to implement visual editor, in order to do it "right" we would also want to implement [https://www.mediawiki.org/wiki/Extension:TemplateData TemplateData] and add metadata to each template describing the parameters. The reason being is that without TemplateData, VE's template editor [https://www.mediawiki.org/wiki/VisualEditor/Portal/TemplateData isn't nearly as user-friendly], and since the whole idea is to make things easier, it probably should be. I would want to either go all-in or forget it, having a feature implemented half-well isn't great imo. But adding template data to each template makes it a much bigger project, so now I'm thinking well who is going to want to add template data, that's a lot of work with an upside that most will never see. --[[User:Porplemontage|Porplemontage]] ([[User talk:Porplemontage|talk]]) 10:56, May 2, 2020 (EDT)