On 09/18/2013 04:51 AM, Feng Yi wrote:
Hi Subbu, I have another two question:
- According to the roadmap, you will research the “HTML-only wiki
support” and “DOM-based templating”. Does it mean that if you launch these functions, wikitext will no longer be supported, even the round-trip doesn’t work?
For Wikipedia, we plan to store both HTML *and* Wikitext for quite a while. This gives us time to perfect the HTML-only mode of operation with a low risk to existing content.
Eventually, Parsoid can be used as a wikitext front-end that converts from stored HTML to wikitext for editing, and then converts the modified wikitext back to HTML for storage. This mode of operation is already used in the upcoming 'Flow' discussion system.
- In “MediaWiki_DOM_spec” there are a lot of discussing and implemented
status. Will the parsoid output change a lot in the future? What is the approximate percentage?
We are currently doing some clean-up in the spec:
* Transclusion parameters are always wrapped in a parts array (see https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Transclusion_conte...). There is another tweak to the parameter structure coming. See [1].
* mw:WikiLink/Interwiki becomes mw:ExtLink. See [2].
* mw:ExtLink/* will become just mw:ExtLink. The information can mostly be extracted by matching a href prefix. Client-side rendering of numbered external links will be handled with CSS as discussed in bug 53505. See [2].
* mw:WikiLink/Category becomes mw:PageProp/Category as these are not really links. They don't render at all in the page, don't accept a caption etc. See [2].
* mw:WikiLink/Language becomes mw:PageProp/Language - same as with categories. See [2].
* Transclusion-affected attributes are moved to data-mw according to https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Transclusion-affec...
Once these changes are deployed (likely to happen in the next weeks), the Parsoid spec version will be incremented to version 1. After this cleanup, we expect the spec to remain stable for a while.
Gabriel
[1]: https://bugzilla.wikimedia.org/show_bug.cgi?id=53135 [2]: https://bugzilla.wikimedia.org/show_bug.cgi?id=53432