We need to know what percentage of pages feature page issues per https://phabricator.wikimedia.org/T200792#4472739
This will inform us on a sampling rate for T200792 and be useful in reporting at the end of the page issues project.
Some ideas that come to mind:
- Use a database dump
- Download a dump of Wikipedia
- Count templates which contain an ambox class
- Count articles that include those templates
- Use MobileFormatter
When a page is rendered check for an ambox class
If present, increment a stat in statsv
Set a page property for every page where this is done to avoid counting it twice
- Count template transclusions
Identify all templates that can render ambox class (Special:Search can help here)
For each template, check corresponding template count https://tools.wmflabs.org/templatecount/index.php?lang=en&namespace=10&name=Ambox#bottom
Note: this approach would lead to duplicates where more than one template is used in the same page.