[Wikidata-bugs] [Maniphest] [Commented On] T48160: Lua: Allow using labels in mw.wikibase.entity.formatPropertyValues
gerritbot added a comment. Change 189415 merged by jenkins-bot: Consolidate duplicate PropertyParserFunction/Lua code https://gerrit.wikimedia.org/r/189415 TASK DETAIL https://phabricator.wikimedia.org/T48160 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: gerritbot, Wikidata-bugs, Rical, Denny, matej_suchanek, Liuxinyu970226, Laddo, Lydia_Pintscher, daniel, hoo, Jdouglas, aude ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T48160: Lua: Allow using labels in mw.wikibase.entity.formatPropertyValues
gerritbot added a subscriber: gerritbot. gerritbot added a comment. Change 189415 had a related patch set uploaded (by Adrian Lang): Consolidate duplicate PropertyParserFunction/Lua code https://gerrit.wikimedia.org/r/189415 https://phabricator.wikimedia.org/tag/patch-for-review/ TASK DETAIL https://phabricator.wikimedia.org/T48160 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: gerritbot Cc: gerritbot, Wikidata-bugs, Rical, Denny, matej_suchanek, Liuxinyu970226, Laddo, Lydia_Pintscher, daniel, hoo, Jdouglas, aude ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T48160: Lua: Allow using labels in mw.wikibase.entity.formatPropertyValues
hoo added a comment. In https://phabricator.wikimedia.org/T48160#945528, @Rical wrote: > For text values, a simple formatPropertyValues is enough. But for a scribunto > module one could needs the month of a date to translate it in any language, > or extract only the year. "27 december 2014" is not so easy. This could be > easier with a fixed date-time format like -MMDD HH:MM:SS,nnn (minus/plus > is for years before or from 1, and 0 could means "not defined"). Then an > option to choose the type of format could be usefull. Another case is angle > or geographic coordinates in radian / turn / grade / degree. Being able to change the way things get formatted would be another bug. This bug is only about accepting labels instead of property ids in formatPropertyValues. Please try to keep bugs about one topic. TASK DETAIL https://phabricator.wikimedia.org/T48160 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: hoo Cc: hoo, Lydia_Pintscher, daniel, matej_suchanek, Wikidata-bugs, Rical, Laddo, aude ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T48160: Lua: Allow using labels in mw.wikibase.entity.formatPropertyValues
Rical added a comment. For text values, a simple formatPropertyValues is enough. But for a scribunto module one could needs the month of a date to translate it in any language, or extract only the year. "27 december 2014" is not so easy. This could be easier with a fixed date-time format like -MMDD HH:MM:SS,nnn (minus is for years before 1, and 0 could means "not defined"). Then an option to choose the type of format could be usefull. Another case is angle or geographic coordinates in radian / turn / grade / degree. TASK DETAIL https://phabricator.wikimedia.org/T48160 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Rical Cc: hoo, Lydia_Pintscher, daniel, matej_suchanek, Wikidata-bugs, Rical, Laddo, aude ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs