daniel added a comment.

@Jc3s5h Parsers are used //only// for values entered by users into the user 
interface (processed via the wbparsevalue API module). Parsing is never applied 
to anything supplied via JSON, or stored in the internal data blob. Parsing is 
also not part of the display/rendering process - that is done by formatters 
(the fact that the mediawiki "parser" is at the same time the renderer for 
wikitext is an unfortunate accident; generally, parsing and 
formatting/rendering should be separate, and an abstract structure should be 
used for internal representation - in the case of Wikibase, that intermediate 
structure is JSON).

As to the question which calendars are considered: we currently only support 
"Gregorian" and "Julian". The automatic guess is based on the year: anything 
since 1582-01-01 would default to Gregorian, anything before that would default 
to Julian.

If we start supporting more calendar models, we would probably try the parser 
for each calendar, and go with the first one that can parse the input.


TASK DETAIL
  https://phabricator.wikimedia.org/T75272

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Wikidata-bugs, Tobi_WMDE_SW, Jc3s5h, Lydia_Pintscher, aude



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to