Editing Module:QuestDetails
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 7: | Line 7: | ||
local args = frame:getParent().args |
local args = frame:getParent().args |
||
⚫ | |||
local questJson = mw.text.jsonEncode({ |
|||
start_point = args.start_point, |
|||
required_for = args.required_for, |
|||
next_quest = args.next_quest, |
|||
⚫ | |||
items = args.items and '\n'..args.items, |
|||
recommended = args.recommended and '\n'..args.recommended, |
|||
enemies = args.enemies, |
|||
episode_nth = args.episode_nth or 9999 |
|||
}) |
|||
mw.smw.set({ |
mw.smw.set({ |
||
start_point = args.start_point, |
start_point = args.start_point, |
||
required_for = args.required_for, |
required_for = args.required_for, |
||
next_quest = args.next_quest, |
next_quest = args.next_quest, |
||
requirements = |
requirements = requirements, |
||
items = args.items and '\n'..args.items, |
items = args.items and '\n'..args.items, |
||
recommended = args.recommended and '\n'..args.recommended, |
recommended = args.recommended and '\n'..args.recommended, |
||
enemies = args.enemies, |
enemies = args.enemies, |
||
override_seq = args.override_seq or 9999 |
|||
['Quest JSON'] = questJson |
|||
}) |
}) |
||
Line 103: | Line 93: | ||
:addClass('lighttable checklist') |
:addClass('lighttable checklist') |
||
:newline() |
:newline() |
||
:wikitext( |
:wikitext(requirements) |
||
:newline() |
:newline() |
||
:done() |
:done() |