For T381886: Show survey to users of MinT for Wiki Readers we want to use QuickSurvey to display the feedback form for users.
The documentation says,
Note that a survey won't show up when:
- on the Main Page;
- on non-article page;
- on non-existent article page. Be careful when using the MobileFrontend content provider!;
- on skin Minerva when the beta opt in panel is shown;
At the same time, the documentation also states:
mw.loader.using( 'ext.quicksurveys.init' )
.then( () => {
mw.extQuickSurveys.showSurvey( 'survey name' );
} );Note well that this will work on any page.
I was able to load a quick survey form (P73967) on a SpecialPage using the above approach (along with embedElementId) but this is not not stable as per https://www.mediawiki.org/wiki/Stable_interface_policy/Frontend and this comment:.https://github.com/wikimedia/mediawiki-extensions-QuickSurveys/blob/master/resources/ext.quicksurveys.lib/init.js#L3