Module:Infobox Recipe/Sandbox: Difference between revisions

implement kp, put it next to xp
(time > duration)
(implement kp, put it next to xp)
Line 101:
if args.duration then
mw.smw.set({
["Useshas duration"] = args.duration
})
end
if args.kp then
mw.smw.set({
["has kp"] = args.kp
})
end
 
--Creates a row suitable for the raw materials section of the infobox.
Line 197 ⟶ 201:
:done()
:tag('th')
:attr{ colspan = '105' }
:wikitext('KP')
:done()
:tag('th')
:attr{ colspan = '5' }
:wikitext('XP')
:done()
Line 212 ⟶ 220:
:done()
:tag('td')
:attr{ colspan = '105' }
:css{ ['text-align'] = 'center' }
:wikitext(hc(args.kp) and (args.kp) or editButton("'''?''' (edit)"))
:done()
:tag('td')
:attr{ colspan = '5' }
:css{ ['text-align'] = 'center' }
:wikitext(hc(args.expxp) and (args.expxp) or editButton("'''?''' (edit)"))
:done()
:done()
11,291

edits