Module:Param Parse: Difference between revisions

Use default episode_smw func for additional_episode
(Rename additional episode property)
(Use default episode_smw func for additional_episode)
Line 162:
category_incomplete = 'Needs episode',
}
function parse.additional_episode_smw(episode)
local valid_episode = valid_episodes[string.lower(episode or '')]
if valid_episode then
return "additional_" .. valid_episode
end
return nil
end
parse.additional_episode = {
name = 'additional_episode',
func = parse.episode_func,
smw_property = 'Additional Episode',
smw_func = parse.additional_episode_smwepisode_smw,
category_incomplete = '',
}