Editing Module:QuestList
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
require('strict') |
require('strict') |
||
require('Module:Mw.html extension') |
require('Module:Mw.html extension') |
||
local purge = require('Module:Purge')._purge |
|||
local parse = require('Module:Param Parse') |
local parse = require('Module:Param Parse') |
||
Line 16: | Line 15: | ||
'[[Release Date::+]]', |
'[[Release Date::+]]', |
||
'?Name#-', |
'?Name#-', |
||
'?Premium', |
|||
'order=asc', |
'order=asc', |
||
'sort=Episode sequence number', |
'sort=Episode sequence number', |
||
Line 24: | Line 22: | ||
local table = mw.html.create('table') |
local table = mw.html.create('table') |
||
⚫ | |||
if (episodes == nil) then |
|||
⚫ | |||
table:wikitext("No quests available for " .. args.episode .. " " .. purge('source-'..mw.uri.anchorEncode(args.episode), '(update)', 'span')) |
|||
⚫ | |||
else |
|||
} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
table |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:wikitextIf(episode.Premium == true, '[[File:Premium Pass icon.png|16px]] ') |
|||
⚫ | |||
⚫ | |||
:done() |
:done() |
||
:done() |
|||
:tag('tr') |
|||
:tag('th') |
|||
: |
:wikitext('Quest') |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:done() |
:done() |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
if ( episode ) then |
|||
⚫ | |||
⚫ | |||
'[[Category:Quests]]', |
|||
'[[Name::+]]', |
|||
⚫ | |||
'?Quest type', |
|||
'?Difficulty', |
|||
⚫ | |||
'order=asc', |
|||
⚫ | |||
⚫ | |||
if ( |
if ( quests ) then |
||
-- get |
-- get quests for episode -- |
||
⚫ | |||
⚫ | |||
table |
|||
' |
:tag('tr') |
||
⚫ | |||
⚫ | |||
:wikitext( quest[1] ) |
|||
:done() |
|||
' |
:tag('td') |
||
:css { |
|||
⚫ | |||
⚫ | |||
} |
} |
||
:wikitext( quest['Quest type'] ) |
|||
:done() |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:done() |
|||
:tag(' |
:tag('td') |
||
: |
:css { |
||
['width'] = '55%' |
|||
} |
|||
:tag(' |
:tag('div') |
||
: |
:addClass('lighttable checklist') |
||
:newline() |
|||
:wikitext( quest.Requirements ) |
|||
: |
:newline() |
||
:done() |
|||
⚫ | |||
⚫ | |||
:done() |
|||
⚫ | |||
⚫ | |||
⚫ | |||
} |
|||
:tag('div') |
|||
:addClass('lighttable checklist') |
|||
:newline() |
|||
⚫ | |||
:newline() |
|||
⚫ | |||
:done() |
:done() |
||
:done() |
:done() |
||
:done() |
|||
end |
end |
||
end |
end |
||
end |
end |
||
end |
|||
table:done() |
|||
⚫ | |||
end |
|||
⚫ | |||
⚫ | |||
end |
end |
||