Module:Recipe: Difference between revisions
From Growtopia Wiki
More actions
NekoPillow (talk | contribs) No edit summary |
NekoPillow (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
local recipe = {} | |||
function recipe.list(frame) | function recipe.list(frame) | ||
local s = {} | local s = {} | ||
| Line 11: | Line 13: | ||
return table.concat(s) | return table.concat(s) | ||
end | end | ||
return recipe | |||
Revision as of 12:43, 3 September 2024
Documentation for this module may be created at Module:Recipe/doc
local recipe = {}
function recipe.list(frame)
local s = {}
table.insert(s,"<div class='obtain recipebox'><tabber>")
for k,v in frame.getParent().args do
table.insert(s,"|-|")
table.insert(s,k)
table.insert(s,"=")
table.insert(v)
end
table.insert(s,"</tabber></div>")
return table.concat(s)
end
return recipe