Module:Param Parse: Difference between revisions

no edit summary
(Add incomplete categories)
No edit summary
Line 83:
 
-- Episode
local valid_episodes = {['Hopeport'] = 1, ['Hopeforest'] = 1, ['Mine of Mantuban'] = 1, ['Crenopolis'] = 1}
['hopeport'] = 'Hopeport',
['hopeforest'] = 'Hopeforest',
['mine of mantuban'] = 'Mine of Mantuban',
['crenopolis'] = 'Crenopolis'
}
function parse.episode_func(episode)
iflocal valid_episode = valid_episodes[string.lower(episode] thenor '')]
if valid_episode then
return '[[File:'..episodevalid_episode..' episode icon.png|18px]] [['..episodevalid_episode..']]'
end
return nil
end
function parse.episode_smw(episode)
iflocal valid_episode = valid_episodes[string.lower(episode] thenor '')]
if valid_episode then
return episodevalid_episode
end
return nil