Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Add incomplete categories) |
No edit summary |
||
Line 83: | Line 83: | ||
-- Episode |
-- Episode |
||
local valid_episodes = { |
local valid_episodes = { |
||
['hopeport'] = 'Hopeport', |
|||
['hopeforest'] = 'Hopeforest', |
|||
['mine of mantuban'] = 'Mine of Mantuban', |
|||
['crenopolis'] = 'Crenopolis' |
|||
} |
|||
function parse.episode_func(episode) |
function parse.episode_func(episode) |
||
local valid_episode = valid_episodes[string.lower(episode or '')] |
|||
if valid_episode then |
|||
return '[[File:'.. |
return '[[File:'..valid_episode..' episode icon.png|18px]] [['..valid_episode..']]' |
||
end |
end |
||
return nil |
return nil |
||
end |
end |
||
function parse.episode_smw(episode) |
function parse.episode_smw(episode) |
||
local valid_episode = valid_episodes[string.lower(episode or '')] |
|||
if valid_episode then |
|||
return |
return valid_episode |
||
end |
end |
||
return nil |
return nil |