Module:Sandbox/User:The Gaffer/Modules/Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
The Gaffer (talk | contribs) No edit summary |
The Gaffer (talk | contribs) No edit summary |
||
Line 47: | Line 47: | ||
table.insert(out, '| [[' .. args.rawmat1 .. ']]') |
table.insert(out, '| [[' .. args.rawmat1 .. ']]') |
||
table.insert(out, '| style="text-align: right;" | ' .. (args.rawmat1qty or 1)) |
table.insert(out, '| style="text-align: right;" | ' .. (args.rawmat1qty or 1)) |
||
table.insert(out, '| style="text-align: right;" | ' .. rawmat1cost) |
table.insert(out, '| style="text-align: right;" | ' .. rawmat1cost[1]) |
||
table.insert(out, '|-') |
table.insert(out, '|-') |
||
end |
end |
||
Line 54: | Line 54: | ||
table.insert(out, '| [[' .. args.rawmat2 .. ']]') |
table.insert(out, '| [[' .. args.rawmat2 .. ']]') |
||
table.insert(out, '| style="text-align: right;" | ' .. (args.rawmat2qty or 1)) |
table.insert(out, '| style="text-align: right;" | ' .. (args.rawmat2qty or 1)) |
||
table.insert(out, '| style="text-align: right;" | ' .. rawmat2cost) |
table.insert(out, '| style="text-align: right;" | ' .. rawmat2cost[1]) |
||
table.insert(out, '|-') |
table.insert(out, '|-') |
||
end |
end |
||
Line 61: | Line 61: | ||
table.insert(out, '| [[' .. args.rawmat3 .. ']]') |
table.insert(out, '| [[' .. args.rawmat3 .. ']]') |
||
table.insert(out, '| style="text-align: right;" | ' .. (args.rawmat3qty or 1)) |
table.insert(out, '| style="text-align: right;" | ' .. (args.rawmat3qty or 1)) |
||
table.insert(out, '| style="text-align: right;" | ' .. rawmat3cost) |
table.insert(out, '| style="text-align: right;" | ' .. rawmat3cost[1]) |
||
table.insert(out, '|-') |
table.insert(out, '|-') |
||
end |
end |