Add searchaux class to infobox output (#126)

In CirrusSearch, content can be wrapped in class="searchaux" to deprioritize it
from search results.[1] There isn't much use I can think of for infoboxes to be
directly displayed in search results.

Additionally, commit f558c16 adds the noexcerpt class to the infobox, hiding
the infobox from Extension:TextExtracts,[2] an extension that extracts texts
from pages.

[1]: https://www.mediawiki.org/wiki/Help:CirrusSearch#Exclude_content_from_the_search_index
[2]: https://www.mediawiki.org/wiki/Extension:TextExtracts#Configuration_settings

Co-authored-by: BlankEclair <blankeclair@waifu.club>
This commit is contained in:
Claire 2024-11-26 08:33:19 +11:00 committed by GitHub
parent ae3099d674
commit 88f99bafc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1 +1 @@
<aside class="portable-infobox noexcerpt pi-background{{#if theme}} {{theme}}{{/if}}{{#if layout}} {{layout}}{{/if}}{{#if type}} {{type}}{{/if}}"{{#if item-name}} data-item-name="{{item-name}}"{{/if}}>{{{content}}}</aside>
<aside class="portable-infobox noexcerpt searchaux pi-background{{#if theme}} {{theme}}{{/if}}{{#if layout}} {{layout}}{{/if}}{{#if type}} {{type}}{{/if}}"{{#if item-name}} data-item-name="{{item-name}}"{{/if}}>{{{content}}}</aside>