aude added a comment.

looks like lua and parser function handle preferred fallback / variant language 
differently when there are labels in all or multiple variants.

With the following, if the referenced item has labels in both ku and ku-arab 
and I use variants=ku-arab:

{{#property:https://phabricator.wikimedia.org/P2}}

{{#invoke:Wikidata|formatStatements|property=https://phabricator.wikimedia.org/P2}}

I get:

- ku-arab label for parser function

- transliterated ku label for lua.

https://gist.github.com/filbertkm/896ebff99c03f1744375 (my Wikidata module, 
sourced from ruwiki lua module)

also looks like the parser cache is maintaining the variant label differences 
in the client page for ku-arab vs. ku-latn vs. ku, as there is some split.


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

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: aude
Cc: Wikidata-bugs, aude, Liuxinyu970226, Lydia_Pintscher



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

Reply via email to