Template:SongRow/doc

From Angelina Jordan Wiki
Revision as of 20:40, 8 November 2025 by Most2dot0 (talk | contribs) (Documentation: explain hybrid AJAX approach)
This is a subpage documenting Template:SongRow. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This is part of the templates specifying the {{SongsTable}} song listing, and has no meaningful use outside of that context.

Technical details

This songs listing with performances had the issue, that it ran into size limitation in regards to template expansion. To get around this, a solution to render no all performance subtables during template expansion was found, where the performances subtables can be created by Javascript via Cargo query AJAX updates after the inital non-populated table was loaded. To limit the amount of these live Cargo queries, currently all tables with only on performance entry are created immediatly, so that only those with 2 or more performances need to be queried on demand.

This solution is likely also close to the template expansion limit, so it might be necessary to delay all table renderings. For this to happen, find the two places in this template that start with {{#ifeq:{{#expr:{{{8}}} > 1}}|1|}}, and replace the " > 1" with " > 0".

See also