https://bugzilla.wikimedia.org/show_bug.cgi?id=63164

Quiddity <pandiculat...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pandiculat...@gmail.com

--- Comment #2 from Quiddity <pandiculat...@gmail.com> ---
In navpopups, there are a large number of Regex rules to remove things that
interfere with the preview. (Search for "STARTFILE: previewmaker.js" in
https://en.wikipedia.org/wiki/MediaWiki:Gadget-popups.js to see the many
"Previewmaker.prototype" subsections there.)

I would guess that Hovercards will need the same extensive set of 'exclusions'?
(plus more, such as the {{pagebanner}} templates at the top of every WikiVoyage
article.)

Digging around, it appears that Extension:TextExtracts removes elements via
their CSS classes, here
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FTextExtracts/c56742eb7149ef9aa5b8cf31c62c4c71333a00f5/TextExtracts.php#L51
so possibly you just need to compile a set of additions for that? (eg.
class="topbanner" for the WikiVoyage templates, and class="dablink" for the
various types of hatnote.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to