Module:Performances/doc

From Angelina Jordan Wiki

This is the documentation page for Module:Performances

Work in Progress!!

This module is supposed to provide access to the list of performances Angelina did. At the heart of it is a very generic, configurable table-generator, that could also be used in different contexts.

Usage

{{#invoke: Performances | createTable                                 -- createTable is the generic table generator
  |page=Data:Performances.json                                        -- link to page with JSON data
  |headers=Song,Date,Type,With,Video                                  -- List of titles used in the group section headers
  |keys=[[{song}]],{date},{type},{with},[{url} {song} - {event}]      -- computed data items corresponding to those titles
  |sort={date}                                                        -- computed sort keys for sorting outer table
  |filters=date:2018,event:Kongsberg                                  -- filters to select what items are displayed
  |char_limit=7                                                       -- The amount of characters of the sort key considered for grouping the sections
  |caption=Kongsberg 2018 by Month                                    -- Title displayed in Header of outer Table
  |group_sort={date} - {type} - {pos}                                 -- how the group section sub-tables are sorted
  |id=1                                                               -- Id needed if multiple tables are generated within a page
}}

ToDo

  • Add data from supplemental lists, like (Video)MetaData, SongsToVideos, etc., by merging their data into the provided base list, e.g. as "url-title", "url-uploadDate" fields. This should be done generically, e.g. by providing the field to match with the supplumentals list page name.
  • Add a 2nd, topmost grouping level that inserts anchored section headers as normal data fields, as it das the Songs table for the A-Z sections. Could be used for just that, or e.g. to provided Year headers in a table that is sorted by date, and has section headers as months. Possibly this could use a different sort field, e.g. to list Events by Year.
  • make sorting more flexible, e.g. by applying regex substitutions to data values before being sorted.

Examples

Kongsberg 2018, by date (month)

Kongsberg 2018 by Month
date [34 Items]

Kongsberg 2016, by date (day)

Kongsberg 2016 by day
{date} [12 Items]

Allsang pa Grensen

{event} [7 Items]

2017 by Event

2017 Events
[[{event}]] [186 Items]

Full Table by Song

All Songs
{song} [1030 Items]

Code

Edit Code