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

       Web browser: ---
            Bug ID: 57014
           Summary: Create a FormatValue API module for formatting data
                    values
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

The FormatValue API module should work simmilar to the ParseValue API module.
It would expect a DataValue (in JSON format) as the input, along with an
(optional) data type identifier, as well as the desired output format (plain
text, wikitext, html, etc). 

The FormatValue module would then find the appropriate formatter, apply it, and
return the resulting string.

Implementation note:
FormatValue can probably be implemented in the DataValues repo, but should
provide hooks that allow application specific data types and formatters to be
injected.

-- 
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