Last modified: 2014-06-13 22:27:18 UTC
Currently the GWToolset namespace just shows json (see for example http://commons.wikimedia.beta.wmflabs.org/w/index.php?title=GWToolset:Metadata_Mappings/Multichill/anefo.json&action=edit). In the first iteration of the campaign namespace Yuvi included pretty display of the json and a nice json editor. I can't show an example of the pretty display because in the next iteration it became a gallery (for example https://commons.wikimedia.org/wiki/Campaign:wlm-nl), but I can give an example of the json edit interface: https://commons.wikimedia.org/w/index.php?title=Campaign:wlm-nl I would like to have pretty display of json for the GWToolset namespace. It's probably just flipping a switch somewhere, but I don't have an idea yet which one.
I stole it from the EventLogging extension - you can see it still on https://meta.wikimedia.org/wiki/Schema:AccountCreation. It's a couple of files / functions that can be stolen from EventLogging and reused.
Change 123159 had a related patch set uploaded by Brian Wolff: Mark GWToolset namespace as being json for code editor. https://gerrit.wikimedia.org/r/123159
(In reply to Gerrit Notification Bot from comment #2) > Change 123159 had a related patch set uploaded by Brian Wolff: > Mark GWToolset namespace as being json for code editor. > > https://gerrit.wikimedia.org/r/123159 This is just for half the bug. I didn't do anything related to showing json on page view, just the bit about telling [[mw:Extension:CodeEditor]] that the GWToolset is json, so the edit box gets syntax highlighting.
Change 123159 merged by jenkins-bot: Mark GWToolset namespace as being json for code editor. https://gerrit.wikimedia.org/r/123159
Resetting to new for the event-logging style json visualization. The code editor thing should start appearing on april 8.
https://gerrit.wikimedia.org/r/#/c/134167/