Module:Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (Spaces to tabs) |
The Gaffer (talk | contribs) No edit summary |
||
Line 23: | Line 23: | ||
local output1Value = args.output1 and mw.smw.ask('[[:+]][[' .. args.output1 .. ']]|?Value|limit=1') |
local output1Value = args.output1 and mw.smw.ask('[[:+]][[' .. args.output1 .. ']]|?Value|limit=1') |
||
local output1TotalValue = 0 |
local output1TotalValue = 0 |
||
mw.logObject(output1Value) |
mw.logObject(output1Value[1]['Value']) |
||
if output1Value ~= nil then |
if output1Value[1]['Value'] ~= nil then |
||
output1TotalValue = output1Value[1]['Value'] * (tonumber(args.output1qty) or 1) |
output1TotalValue = output1Value[1]['Value'] * (tonumber(args.output1qty) or 1) |
||
else |
else |