Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-09 Thread Denny Vrandečić
Thanks Tpt, that sounds relevant! I will take a look into the code. More code examples are really useful to figure this all out :) On Sun, Apr 9, 2017 at 9:53 AM Thomas PT wrote: > An other maybe relevant example : ProofreadPage has a content model for > proofreading pages with multiple areas of

Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-09 Thread Denny Vrandečić
On Sun, Apr 9, 2017 at 8:38 AM Daniel Kinzler wrote: > Am 09.04.2017 um 08:23 schrieb Denny Vrandečić: > > Here's my requirement: > > - a wiki page is one JSON document > > - when editing, the user edits the JSON directly > > - when viewing, I have a viewer that turns the JSON into wikitext, and

Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-09 Thread Denny Vrandečić
On Sun, Apr 9, 2017 at 4:11 AM Gergo Tisza wrote: > You probably want to subclass JsonContentHandler and add wikitext transform > What does it mean to add wikitext transform? > and whatever else you need. For schemas, have a look > at JsonSchemaContentHandler in EventLogging. > Thanks, that l

Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-09 Thread Denny Vrandečić
On Sat, Apr 8, 2017 at 11:30 PM James Hare wrote: > Why, exactly, do you want a wikitext intermediary between your JSON and > your HTML? The value of wikitext is that it’s a syntax that is easier to > edit than HTML. But if it’s not the native format of your data, nor can > browsers render it dir

Re: [Wikitech-l] [Wikimedia-l] DEADLINE EXTENDED: Wikimania 2017 call for submissions

2017-04-09 Thread phoebe ayers
Thanks Joseph! Just a followup reminder that submissions are due TOMORROW. If you have submitted a proposal already but it's marked as a "draft", please finalize it and mark it as "completed" by tomorrow as well. (If you are a submitter you may already have email from me about this). thanks every

Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-09 Thread Thomas PT
An other maybe relevant example : ProofreadPage has a content model for proofreading pages with multiple areas of Wikitext and use some for transclusion and others for rendering: * https://github.com/wikimedia/mediawiki-extensions-ProofreadPage/blob/master/includes/page/PageContent.php * https

Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-09 Thread Isarra Yos
Sounds like what they want is what collaborationlistcontent/handler does, specifically, at least for now. On 09/04/17 06:30, James Hare wrote: Why, exactly, do you want a wikitext intermediary between your JSON and your HTML? The value of wikitext is that it’s a syntax that is easier to edit th

Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-09 Thread zppix e
That seems like a performance hog in the making in my opinion to not mention, mostly unneeded as far as I can tell. Sent from my iPhone > On Apr 9, 2017, at 6:11 AM, Gergo Tisza wrote: > > You probably want to subclass JsonContentHandler and add wikitext transform > and whatever else you need.

Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-09 Thread Daniel Kinzler
Am 09.04.2017 um 08:23 schrieb Denny Vrandečić: > Here's my requirement: > - a wiki page is one JSON document > - when editing, the user edits the JSON directly > - when viewing, I have a viewer that turns the JSON into wikitext, and that > wikitext gets rendered as wikitext and turned into HTML by

Re: [Wikitech-l] Editing JSON in MediaWiki

2017-04-09 Thread Gergo Tisza
You probably want to subclass JsonContentHandler and add wikitext transform and whatever else you need. For schemas, have a look at JsonSchemaContentHandler in EventLogging. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedi