Module:QuestDetails: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
mNo edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
mw.smw.set({ |
mw.smw.set({ |
||
["start_point"] = args.start_point, |
["start_point"] = args.start_point, |
||
}) |
|||
end |
|||
if args.required_for then |
|||
mw.smw.set({ |
|||
["required_for"] = args.required_for, |
|||
}) |
|||
end |
|||
if args.next_quest then |
|||
mw.smw.set({ |
|||
["next_quest"] = args.next_quest, |
|||
}) |
}) |
||
end |
end |
||
Line 13: | Line 23: | ||
mw.smw.set({ |
mw.smw.set({ |
||
["requirements"] = '\n'..args.requirements, |
["requirements"] = '\n'..args.requirements, |
||
}) |
|||
end |
|||
if args.items then |
|||
mw.smw.set({ |
|||
["items"] = '\n'..args.items, |
|||
}) |
}) |
||
end |
end |
||
Line 52: | Line 67: | ||
:done() |
:done() |
||
if (args.required_for) then |
|||
table |
|||
:tag( 'tr' ) |
|||
:tag( 'td' ) |
|||
:tag( 'b' ) |
|||
:wikitext('Required for') |
|||
:done() |
|||
:attr('style', 'vertical-align:top; width:15%; padding: 1em;') |
|||
:done() |
|||
:tag( 'td' ) |
|||
:tag('div') |
|||
:newline() |
|||
:wikitext( args.required_for ) |
|||
:attr('style', 'max-width:85%; width:auto; padding-left: 1em; padding-right: 2em;') |
|||
:done() |
|||
:done() |
|||
end |
|||
table |
|||
:tag( 'tr' ) |
:tag( 'tr' ) |
||
:tag( 'td' ) |
:tag( 'td' ) |
||
Line 67: | Line 101: | ||
:done() |
:done() |
||
:done() |
:done() |
||
if (args.items) then |
|||
table |
|||
:tag( 'tr' ) |
|||
:tag( 'td' ) |
|||
:tag( 'b' ) |
|||
:wikitext('Items') |
|||
:done() |
|||
:attr('style', 'vertical-align:top; width:15%; padding: 1em;') |
|||
:done() |
|||
:tag( 'td' ) |
|||
:tag('div') |
|||
:addClass('lighttable checklist') |
|||
:newline() |
|||
:wikitext( args.items ) |
|||
:attr('style', 'max-width:85%; width:auto; padding-left: 1em; padding-right: 2em;') |
|||
:done() |
|||
:done() |
|||
end |
|||
if (args.recommended) then |
if (args.recommended) then |