Last modified: 2013-12-18 15:21:29 UTC
This was requested at https://www.mediawiki.org/wiki/Extension_talk:GuidedTour#List_of_tours.3F__30038 . It can definitely be done; it just requires some consideration of performance. For on-wiki tours, it could do a prefix search (like https://en.wikipedia.org/wiki/Special:PrefixIndex/MediaWiki:Guidedtour-tour-), then filter for the ones ending in JS. An alternative is to use a hook on save and delete to keep a list updated somewhere (e.g. Redis or memcached). For built-in tours, the simplest approach is to iterate over the registered extension-provided modules searching for those with the GuidedTour naming scheme. This is not ideal, but may have sufficient performance (especially with simple time-based caching). An alternative is to reintroduce a GuidedTour ResourceLoader class, which would allow tracking this, or use some other approach (a hook?).