Kiailandi added a comment.

We can generate the template for our tool starting from the mw.wbTemplates.store.values _javascript_ object which contains the templates used to generate the wikidata pages.
We will probably need to extend the available templates with the ones we need for the Primary Sources tool.

A possible solution could be to add a mw.psTemplates object or even extending the wbTemplates object directly.
Another possible path could be adding our templates to the templates.php file in wikibase-view which declares the same templates.

I am still trying to understand which way is the best one as far as maintainability and best practices are concerned.


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

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

To: Kiailandi
Cc: TerraCodes, Jay8g, Liuxinyu970226, PokestarFan, Aklapper, Hjfocs, Kiailandi, dachary, Wikidata-bugs, Ricordisamoa, Sjoerddebruin, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to