Module:QuestDetails: Difference between revisions

342 bytes added ,  Yesterday at 22:30
no edit summary
No edit summary
No edit summary
Line 3:
function p.details(frame)
local args = frame.args
local mw = require('mw')
if args.start_point then
local params = {}
mw.smw.set(params){
params ['"start_point'"] = 'value1'args.start_point,
params['requirements'] = 'value2'
})
end
mw.smw.set(params)
params['requirements']if =args.requirements 'value2'then
mw.smw.set({
["requirements"] = args.requirements,
})
end
if args.recommended then
mw.smw.set({
["recommended"] = args.recommended,
})
end
if args.enemies then
mw.smw.set({
["enemies"] = args.enemies,
})
end
local requirements;
if (args['.requirements']) then
requirements = args['.requirements']
else
requirements = 'None'
Line 51 ⟶ 67:
:done()
if (args['.recommended']) then
table
:tag( 'tr' )
Line 62 ⟶ 78:
:tag( 'td' )
:tag('p')
:wikitext( args['.recommended'] )
:done()
:attr('style', 'max-width:85%; width:auto; padding-left: 1em; padding-right: 2em;')
Line 69 ⟶ 85:
end
if (args['.enemies']) then
table
:tag( 'tr' )
Line 80 ⟶ 96:
:tag( 'td' )
:tag('p')
:wikitext( args['.enemies'] )
:done()
:attr('style', 'max-width:85%; width:auto; padding-left: 1em; padding-right: 2em;')
553

edits