Module:Songs: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 58: Line 58:
local query = {
local query = {
limit = '1000',
limit = '1000',
where = 'Album_Songs.singers HOLDS "' .. escaped .. '"',
where = 'Album_Songs.singers HOLDS "' .. escaped .. '"'
fields = Album_Songs.song_title, Album_Songs.album
}
}
local results = cargo.query(query)
local fields = {'song_title', 'album'}
local results = cargo.query('Album_Songs', table.concat(fields, ','), query)
local table = '{| class="wikitable sortable mw-collapsible"\n! Song !! Album\n'
local table = '{| class="wikitable sortable mw-collapsible"\n! Song !! Album\n'
959

edits

Navigation menu