Template:Category intro

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Category intro/doc.

Template to be put at the start of a category that generates an introduction based on the type of category.

  • If the category is linked to a "normal" (non-category) Wikidata, grab the data, otherwise try to follow the redirect
  • Overwrite all the interwiki links so that these link to Wikipedia articles instead of categories

Based on the context, some (wiki)text gets generated. This is modular and with a decision tree so we can expand and improve it over time. Some options:

Probably a lot of the templates being used on categories can be re-used in this.

Later we can worry about intersected categories like Category:Churches in Haarlem

Usage

{{category intro}}

The template takes no parameters.

Additional information

The template is intended to be used in the following namespaces: the Category namespace

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

Relies on:
{{Interwiki from wikidata}}

Localization

This template is not intended to be localized.