Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata, 
MediaWiki-extensions-WikibaseClient, Wikibase-Lua.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  When Wikibase formats time values as HTML, it automatically shows the 
calendar model if needed (depending on the precision, date, and what the 
automatically guessed calendar model would be for that date). However, 
formatting times as wikitext or plain text only formats the time value itself. 
Lua modules can add the calendar model “manually”, but Wikibase’s logic 
deciding when to show the calendar model or not isn’t accessible to them.
  
    =mw.wikibase.formatValue({snaktype = 'value', property = 'P569', datatype = 
'time', datavalue = {type = 'time', value = {time = '+1879-03-14T00:00:00Z', 
timezone = 0, before = 0, after = 0, precision = 11, calendarmodel = 
'http://www.wikidata.org/entity/Q1985727' }}})
    <span>14 March 1879</span>
    =mw.wikibase.renderSnak({snaktype = 'value', property = 'P569', datatype = 
'time', datavalue = {type = 'time', value = {time = '+1879-03-14T00:00:00Z', 
timezone = 0, before = 0, after = 0, precision = 11, calendarmodel = 
'http://www.wikidata.org/entity/Q1985727' }}})
    14 March 1879

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

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

To: Lucas_Werkmeister_WMDE
Cc: Aklapper, Lucas_Werkmeister_WMDE, LennardHofmann, Astuthiodit_1, 
karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, 
lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to