Template:DiskProducerGallery: Difference between revisions

From Midipedia
Jump to navigation Jump to search
(Template for producer level of nested gallery view.)
 
(Replace single quote to work around limitation of passing around Cargo template variables.)
 
Line 19: Line 19:
{{#cargo_query:
{{#cargo_query:
tables=Disks=D
tables=Disks=D
|fields=D.Type,D.Producer,COALESCE(NULLIF(TRIM(D.Series), ''), 'Unsorted') = Series
|fields=D.Type,D.Producer,REPLACE(COALESCE(NULLIF(TRIM(D.Series), ''), 'Unsorted'), '''', '🦟') = Series
|where=D.Type = '{{{1}}}' AND D.Producer = '{{{2}}}'
|where=D.Type = '{{{1}}}' AND D.Producer = '{{{2}}}'
|group by=D.Type,D.Producer,D.Series
|group by=D.Type,D.Producer,D.Series

Latest revision as of 04:48, 3 January 2025

This template creates a list of galleries for the disks from the given producer. The galleries as grouped by disk series.

Usage:

{{DiskProducerGallery
 | 1 = Type
 | 2 = Producer
}}

Example result:

Rittor Music

MIDI Game Music Series

SMF Music Collection