mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-18 03:00:29 +00:00
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:
parent
ae3099d674
commit
88f99bafc8
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue