Jump to content

Module:Sandbox/AbstractWikipedia/AbstractContent/doc

From Meta, a Wikimedia project coordination wiki

This is the documentation page for Module:Sandbox/AbstractWikipedia/AbstractContent

The AbstractContent module contains manually curated abstract content for the use of template-renderer prototype. The abstract content for each Q-id should be a list of instantiated constructors outlining an article about that topic.

Note that for each Constructor (whether it is a top-level constructor, or a sub-constructor embedded within another one), we must specify a _predicate field. This field essentially identifies the type of the constructor, and allows matching it with a language-specific renderer of the same name (e.g. the Person constructor is matched with a Person renderer). One can see the predicate name as the name of a function (being the renderer), and the other fields of the constructor as the arguments of that function.

Currently the constructor fields (with the exception of the _predicate field), as well as the constructor names, are given arbitrary names in English (which should hint at their semantics). A possible more rigorous approach would be to name them using Wikidata property identifiers. For instance, the AwardedPrize constructor could possible be named P166, but it should be kept in mind that there are some important differences between Wikidata properties and constructor fields: The former are intended to convey "pure" data, while the latter are intended to convey linguistically-relevant data.

This data is used by the Constructors module to fetch manually-curated abstract content.