https://bugzilla.wikimedia.org/show_bug.cgi?id=50587

       Web browser: ---
            Bug ID: 50587
           Summary: Parse template parameters to DOM or other non-wikitext
                    types where possible
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

To do this, we will need knowledge of which template parameters can be parsed
to DOM or other types and which need to remain wikitext. A start tag parameter
should probably not be parsed to DOM for example (as a passed-in start tag
would be balanced in the process), while most content parameters can. Apart
from wikitext string vs. DOM we could also eventually refine parsing further
for things like dates, numbers etc. Our DOM spec for templates [1] is already
prepared to represent DOM and other representations of individual parameters. 

The main thing that we'll need for the next step is information on where it is
safe to do so. This information can come from something like TemplateData or
DBPedia.

[1]: http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Template_content

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to