Hey, a lot of the pages on a wiki I help with (https://gimkit.wiki) have a period as their description and og:description meta tags (ex: https://gimkit.wiki/wiki/Prickler). We have the textextracts extension enabled, so as far as I can tell it should theoretically generate descriptions automatically. Do we need to manually make descriptions for every page, or is there some way we can fix this?
#Many pages have period as meta description
3 messages · Page 1 of 1 (latest)
In theory it should, though the algorithm for it to pick that, can be rather well... picky. One of the main things(might not be the only criteria though), is that it takes the raw text from the initial paragraph tag (<p>). And if you look at the resulting HTML of your page, the first paragraph tag, is actually surrounding your Infobox. So something you are doing (likely in the template itself), is causing it to put the whole thing inside a paragraph tag, so that might be where you have to look to fix it. In particular look for basically any linebreaks, as the way the wiki software works, even a single linebreak can in many cases create new paragraphs. You might have to having some end tags, be on the same line as the next starting tag in some cases. And yes this might create messy code, but is necessary sometimes to get a clean output with the software.
Alternatively if all else fails, you can indeed define the description manually using the WikiSEO extension https://www.mediawiki.org/wiki/Extension:WikiSEO (can be activated as many others inside ManageWiki ofc)
MediaWiki
The WikiSEO extension allows you to replace, append or prepend the HTML title tag content.
It also allows you to add common SEO (Search Engine Optimisation) meta elements such as "keywords" and "description".
A working job queue is absolutely required for this extension to function.
It seems like textextracts is working fine, though- enabling the popups extension shows a functional description, and using the api to view the extract also has the correct result.
The Gimkit Wiki