Page MenuHomePhabricator

Allow displaying a collection on a wiki page
Open, Needs TriagePublic

Description

Collections are lists of articles that represent a particular knowledge area such as essential food-related topics. These lists could be reused by wikiprojects, editathons on different wikis, or the same wiki in different years, etc.

With the previous manual lists in wikitext, editors used to copy or transclude them. This ticket proposes to provide some markup support to embed collections on a given wiki page. In this way:

  • Editors can add a list just by adding simple mark-up. For example, `<show-collection id=wiki99/food>` could display a table with the articles in the collection.
  • The displayed list won't be marked as a new list by the system, avoiding accidental duplication.
  • The displayed list can include convenient UI controls to act on the item (edit, translate...), filter the list (to items present/missing on a given language, searching for a specific item...) or more.
  • The displayed list could include specific customization for a given context. Based on the same list, one display could focus on the items missing on a given language.
  • Reuse is encouraged by decoupling the source/definition of the collection from the potentially multiple uses of it.

Although this ticket is focused on the embedding of a Collection on a wiki page, we can think of a design (and maybe technical decisions) that could make this work to embed a Collection externally (e.g., on a website).