PortableInfobox/templates/PortableInfoboxWrapper.hbs
Claire 88f99bafc8
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>
2024-11-25 14:33:19 -07:00

2 lines
233 B
Handlebars

<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>