Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Redirect to `_(episode)` if available) |
m (hide` (episode)` on link) |
||
Line 136: | Line 136: | ||
-- Check if the page with '(episode)' exists |
-- Check if the page with '(episode)' exists |
||
if mw.title.new(page_name).exists then |
if mw.title.new(page_name).exists then |
||
return '[[File:'..valid_episode..' episode icon.png|18px]] [['..page_name..']]' |
return '[[File:'..valid_episode..' episode icon.png|18px]] [['..page_name..'|'..valid_episode..']]' |
||
else |
else |
||
-- Fallback to the original episode name |
-- Fallback to the original episode name |