eranroz added a comment.

Here is a proof of concept how to map wikidata properties to parameters and why 
it is cool:

- https://en.wikipedia.org/wiki/User:%D7%A2%D7%A8%D7%9F/Template:Cite_web - 
Similar to English Template:Cite_web templatedata but with maps to wikidata 
(only few properties)
- https://en.wikipedia.org/wiki/User:%D7%A2%D7%A8%D7%9F/TemplateDataI18n.js - 
script that use this mapping (only for cite web) to show in VE the translation 
of the parameters in all languages. you can test it with:
  - get to some page on enwiki with ?uselang=de (or some other language which 
isn't en)
  - load the script:

  
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:%D7%A2%D7%A8%D7%9F/TemplateDataI18n.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400');

- open VE and add new template of Cite web. Note that the mapped parameters are 
getting translated in the VE template editor.


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

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

To: eranroz
Cc: eranroz, Aklapper, Multichill, Jdforrester-WMF, Elitre, Krinkle, Micru, 
TrevorParscal, Ricordisamoa, Keegan, Liuxinyu970226, Ltrlg, Wikidata-bugs, 
aude, Mbch331



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to