I would like to build an exceprt extension for mediawiki that will be able to display the first paragraph or the first line of a page, as well as to display the main picture in this page.
It is similart to the existing Popups extension but it does not include an API query but a direct query before the page is generated. The Pupups extension (https://www.mediawiki.org/w/Extension:Popups)uses TextExtracts (https://www.mediawiki.org/w/TextExtracts) and PageImages (https://www.mediawiki.org/w/PageImages) extensions the can be used as dependencies.
This utility will be used for 2 main purpuses:
1. to replace the existing category page with a more descriptive page.
2. a markup tag (i.e: <excerpt|PAGENAME/>.
The extension must be suitible for mediawiki 1.25+
A new database table can be used for the excerpts.
It should be as lightwheight as possible (similar to the WP category/tag page).
It should use a few confuguration variables for controling the options: