Module:Tour history: Difference between revisions

(Created page with "-- NOT CURRENTLY USED, CAN PROBABLY BE DELETED local p = {} local cargo = mw.ext.cargo function p._list( artist, tour, year, noposter ) select_clause = "CONCAT('[[', shows....")
 
No edit summary
Line 1: Line 1:
-- NOT CURRENTLY USED, CAN PROBABLY BE DELETED
local p = {}
local p = {}
local cargo = mw.ext.cargo


-- NOT CURRENTLY USED, CAN PROBABLY BE REMOVED
function p._list( artist, tour, year, noposter )
function p._list( artist, tour, year, noposter )
local cargo = mw.ext.cargo
select_clause = "CONCAT('[[', shows._pageName, '|', shows.date, ']]')=Date, " ..
select_clause = "CONCAT('[[', shows._pageName, '|', shows.date, ']]')=Date, " ..
"shows.venue=Venue, shows.location=Location, " ..
"shows.venue=Venue, shows.location=Location, " ..
Line 38: Line 38:


mw.logObject(results)
mw.logObject(results)
end
function p._is_tour_page(title)
return string.sub(title, -12) == 'tour history'
or string.sub(title, -9)  == 'residency'
or string.sub(title, -5)  == ' tour'
end
function p.is_tour_page(frame)
local title = frame.args[1] or frame:getTitle()
return p._is_tour_page(frame)
end
end


return p
return p