It would be useful to have a tool that emits MassMessage syntax for all pages linked to a certain Wikidata item (typically a project page).
Features:
- specify one or more items (e. g. [Project:Lua (Q6811431)](http://www.wikidata.org/entity/Q6811431), falling back to the generic [Project:Village pump (Q16503)](http://www.wikidata.org/entity/Q16503) for projects that don’t have a specific Lua page)
- optionally, specify a wikigroup to limit to projects in that group (e. g. `wiktionary`)
- optionally, link to talk pages instead of the main page
- either emit MassMessage syntax or directly send the MassMessage – but tbh I would prefer emitting MassMessage so that the sender can verify the page list before sending
For reference, MassMessage syntax looks like this: {P6902}
I originally wrote a query for @Lea_Lacroix_WMDE with just the first two features (P6900 – note that the line breaks in the query output won’t show until T189937, so you have to copy the HTML source), and then more recently a shell script to link to talk pages as well (P6901 – but without wikigroup and multiple items support). It would be nice to have this wrapped in a nice, easy-to-use tool.