3,725
edits
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) m (Protected "Module:Tour history": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 36: | Line 36: | ||
} | } | ||
) | ) | ||
end | end | ||
function p._is_tour_page(title) | function p._is_tour_page(title) | ||
return string.sub(title, -12) == 'tour history' | return string.sub(title, -12) == 'tour history' | ||
or string.sub(title, -9) == 'residency' | or string.sub(title, -9) == 'residency' | ||
or string.sub(title, -5) == ' tour' | or string.sub(title, -5) == ' tour' | ||
or string.sub(title, -8) == 'festival' | |||
or '' | or '' | ||
end | end | ||
function p.is_tour_page(frame) | function p.is_tour_page(frame) | ||
local title = frame.args[1] or frame:getTitle() | local title = frame.args[1] or string.lower(frame:getTitle()) | ||
return p._is_tour_page( | return p._is_tour_page(title) | ||
end | end | ||
return p | return p |