mediawiki-extensions-Relate.../resources
Jesús Martínez Novo be3385e6d5 Support other ways to get the description of the page
Currently, the extension queries the prop=description api to fetch the
description, but this api is only available if Wikibaseclient is installed.

Let's support other sources to fetch the page description from, too, or
disable it (by default) to sabe 85 bytes from each response by avoiding the
warning returned from the api when prop=description is not recognized.

A new configuration setting has been added: RelatedArticlesDescriptionSource.
It defaults to false (no description is fetched), but can be set to one of
those string values:

- wikidata: What's being used right now on WMF wikis
- textextracts: Extension:TextExtracts provides the prop=extracts api.
- pagedescription: Extension:Description2 provides a description page property, that can be queried by prop=pageprops&ppprop=description

Bug: T230947
Change-Id: I34410334ba9d6db1f686c7efb5722e2a51957145
2019-08-23 20:24:37 +02:00
..
ext.relatedArticles.cards Fix background-size on thumbnails 2019-08-07 10:53:50 +00:00
ext.relatedArticles.lib/CSS.escape Migrate Cards code to RelatedArticles 2017-06-07 08:35:53 -07:00
ext.relatedArticles.readMore Support other ways to get the description of the page 2019-08-23 20:24:37 +02:00
ext.relatedArticles.readMore.bootstrap Support other ways to get the description of the page 2019-08-23 20:24:37 +02:00
ext.relatedArticles.readMore.gateway Support other ways to get the description of the page 2019-08-23 20:24:37 +02:00