Description
We currently can’t track whether Wikifunctions are embedded in Wikipedias and Wiktionaries. This task adds instrumentation, discussed with Product Analytics, to enable the creation of a high-level adoption dashboard for embedded Wikifunctions.
In the WikifunctionsPFragmentHandler, when we are triggered on a page we should add details of our usage to the page properties table (below), which will allow maintenance scripts and analytics to track usage.
[Note: page props are ephemeral parse-time data only related to the current revision.]
Desired behavior/Acceptance criteria
- We set a boolean flag prop on any Wikifunctions-using page
- We can extract this data to find pages with fragments (in the current revision)
- We set a string prop on from each fragment on the page page with the ZID of the Function called
- We can extract this data to find pages with fragments using a particular Function
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist