Skip to content
Aa
Reading appearance
Browse
Browse the wiki
Books
Characters
Houses
Places
History
Culture
More topics
Images
Television
Chapters
Timeline
Random Article
Community
Community Portal
Recent Changes
Our Sites
Westeros
Forum of Ice and Fire
Blood of Dragons MUSH
Login
Talk
Interact
Interact
Edit source
View history
More page tools
What links here
Related changes
Page information
Special pages
Editing
Module
:
TV episode
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} function p.title(frame) local args = frame.args local data = require('Module:TV episode/' .. args[1]) local season = tonumber(args[2]) local episode = tonumber(args[3]) local title = data[season][episode].title if title ~= nil then return title else error("Episode doesn't exist") end end function p.Prev(frame) local args = frame.args local data = require('Module:TV episode/' .. args[1]) local season = tonumber(args[2]) local episode = tonumber(args[3]) local prev_season = data[season-1] local last_episode = prev_season and prev_season[#prev_season] local prev_episode = data[season][episode-1] or last_episode if prev_episode then local title = prev_episode.title local link = prev_episode.link or prev_episode.title return '"[[' .. link .. '|' .. title .. ']]"' else return nil end end function p.Next(frame) local args = frame.args local data = require('Module:TV episode/' .. args[1]) local season = tonumber(args[2]) local episode = tonumber(args[3]) local next_season = data[season+1] local first_episode = next_season and next_season[1] local next_episode = data[season][episode+1] or first_episode if next_episode then local title = next_episode.title local link = next_episode.link or next_episode.title return '"[[' .. link .. '|' .. title .. ']]"' else return nil end end return p
Summary:
Please note that all contributions to A Wiki of Ice and Fire may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
A Wiki of Ice and Fire:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Page included on this page:
Module:TV episode/doc
(
edit
)