If a user looks for a topic via the search and there is no article on it yet, they should see an Article Placeholder instead.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Article placeholder appear in search | mediawiki/extensions/ArticlePlaceholder | master | +150 -2 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | thiemowmde | T142940 Create client functionality for getting human readable wikitext from Wikibase statements | |||
Declined | None | T99897 {{#property}} parser function should output EntityIdValues as local wiki links, once we have article placeholders | |||
Invalid | Lydia_Pintscher | T99896 Use Lua for custom rendering of entity data on Special:ShowEntity | |||
Resolved | Lucie | T99895 [Epic] Article placeholder based on data from Wikidata | |||
Resolved | Lucie | T109436 [Story] Discover Article Placeholders | |||
Resolved | Lucie | T109438 [Story] Get to Article Placeholder via search | |||
Resolved | Lucie | T113954 [Story] Only show notable items as search result |
Event Timeline
- only show the placeholder if item has at least 10 (or any other number) statements to have only "relevant" items.
I don't think so. The placeholder is useful if:
- There're a description in given language (which can be the preloaded text of a new article)
- There're enough statements to generate a automated description (example)
See T99895#1448568, they don't want to generate text, or at least not specifically for this feature.
If the article placeholder is just a list of properties, what's the added value compared to linking (or redirecting to) the Wikidata item from Special:Search?
Baically it boils down to: It should be displayed much nicer. It should be filtered. It should be a local experience.
Should probably use the SpecialSearchResultsAppend hook for injecting the HTML.
For searching a TermIndex from ClientStore::getTermIndex should be used. TermIndex::getTopMatchingTerms on labels and aliases will provide the TermIndexEntry including the ItemIds of the Items to additionally list on the result page (see also TermIndexSearchInteractor which does something similar).
The entries should be shown as labels linked to the ArticlePlaceholder pages of the respective ItemIds. The description should be shown below the linked labels to give additional details.
Change 243715 had a related patch set uploaded (by Lucie Kaffee):
[WIP] Article placeholder appear in search