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({
["
})
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 = '
:wikitext('KP')
:done()
:tag('th')
:attr{ colspan = '5' }
:wikitext('XP')
:done()
Line 212 ⟶ 220:
:done()
:tag('td')
:attr{ colspan = '
: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.
:done()
:done()
|