Module:Listbox: Difference between revisions

Want an adless experience? Log in or Create an account.
remove staging checks (WW Characters and BotW checks were moved to Module:Listing)
(set categories from listing page if using single arg)
(remove staging checks (WW Characters and BotW checks were moved to Module:Listing))
Line 26: Line 26:
-- override
-- override
function Listbox:renderContent()
function Listbox:renderContent()
   local listing = Listing._parseListing( ((self.categories[1] == 'The Wind Waker' and self.categories[3] == 'Enemies') or (self.categories[1] == 'Hyrule Warriors' and self.categories[3] ~= 'Legend Mode Scenarios') or self.categories[1] == 'Breath of the Wild') and self.subject .. '/Staging' or self.subject )
   local listing = Listing._parseListing( self.subject )


   -- If categories weren't set already (because caller used single arg), then use the ones parsed from the page.
   -- If categories weren't set already (because caller used single arg), then use the ones parsed from the page.