Angelina Jordan Wiki talk:Extensions

From Angelina Jordan Wiki
Revision as of 15:45, 11 October 2025 by Most2dot0 (talk | contribs) (Extension:Page Forms: new section)

Extension:Cargo

@Dcljr: You suggested it yourself before to use mw:Extension:Cargo to get rid of the problems of the large JSON files for storage of changes, and to make contributions of others easier. I agree, and I would really like to try it out pretty soon, because it likely will have an effect on which further developments to Module:Performances and Data:Performances.json still do make sense and which do not. And that leaves me currently in a somewhat frozen state in regards to that. --Most2dot0 (talk) 07:12, 17 September 2025 (UTC)

OK, hang on. The installation and configuration of Cargo is not trivial, so I need to devote some time to it. (Was dealing with spotty wifi yesterday. Hopefully that won't happen again this evening.) BTW, this doesn't work. I only get the notification if you ping me successfully when you first leave your message. Any attempt to ping someone by editing an existing message won't cause a ping. The workaround is to just leave a new message with the correct ping in it (it can be a reply to your own message). - dcljr (talk) 18:52, 18 September 2025 (UTC)
It happened again. I may or may not have it under control now. Might try installing Cargo tomorrow (Friday, I mean). - dcljr (talk) 05:47, 19 September 2025 (UTC)
As you can see, that didn't happen. Plan to do it tonight, though, and have already given the usual warnings. (I'll reply to your latest comments elsewhere afterwards.) - dcljr (talk) 23:20, 20 September 2025 (UTC)

Extension:Page Forms

Page Forms + Cargo integration notes per ChatGPT:

Context

The wiki uses the Cargo extension to store data in structured tables. It maintains a performance database for an artist with two Cargo tables:

  • Performances — stores details of each performance of a song.
  • Videos — stores linked video recordings.

Each song has its own page where its performances are defined. Multiple videos can be linked manually to a performance via a local performance ID, joined with the song’s page name (for example, `"SongName_1"`).

Goal

To simplify creating new song pages, especially at the start when only one performance and one video are available.

Approach

The Page Forms extension can be used to create a form that gathers all required data and automatically generates the song page with the correct Cargo data.

Details

  • Page Forms integrates directly with Cargo; it supports writing data through the `` parser function.
  • You can create a form that collects all song, performance, and video information, then stores it via Cargo templates.
  • Using Page Forms, you do not need to rely on MediaWiki’s preload feature — the form itself creates and populates the page content.

Typical Setup

  1. Define the Cargo tables (already done).
  2. Create templates, such as `Template:Performance` and `Template:Video`, each containing `` calls for their fields.
  3. Build a Page Form that maps input fields to the corresponding Cargo fields in those templates.
  4. Configure the form to create new song pages and include subobjects for performances and videos.

This provides a structured, form-driven workflow that avoids manual text editing and ensures consistent data storage in Cargo.

mw:Extension:Page Forms is sort of recommended in the preload feature description. It states itself that it supports Cargo. I assume we could use it to create an page with multiple elements, where all the essential information needed to create an article stub with Cargo data could be requested. A short discussion with ChatGPT encourages that thought (see box on the right), as it states its possible. Thus I would appreciate it if we eventually could have this extension --Most2dot0 (talk) 15:45, 11 October 2025 (UTC)