Module:Neighbor Journey: Difference between revisions
ReisuDesign (talk | contribs) m ReisuDesign moved page Module:NeighborJourney to Module:Neighbor Journey without leaving a redirect |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 77: | Line 77: | ||
local output = { | local output = { | ||
"{| class=\"wikitable wikitable--stripe\"", | "{| class=\"wikitable wikitable--stripe\"", | ||
"! Node !! Quantity !! Title !! {{Item|Dough|notext=1}}" | "! width=155px | Node !! Quantity !! Title !! {{Item|Dough|notext=1}}" | ||
} | } | ||
| Line 128: | Line 128: | ||
table.insert(output, | table.insert(output, | ||
"| " .. first.quantity .. | "| " .. first.quantity .. | ||
" || '''" .. first.title .. "''' " .. | " || '''" .. first.title .. "''' || " .. | ||
first.dough | |||
) | ) | ||
| Line 139: | Line 139: | ||
table.insert(output, | table.insert(output, | ||
"| " .. reward.quantity .. | "| " .. reward.quantity .. | ||
" || '''" .. reward.title .. "''' " .. | " || '''" .. reward.title .. "''' || " .. | ||
reward.dough | |||
) | ) | ||
end | end | ||
| Line 149: | Line 149: | ||
table.insert(output, "|}") | table.insert(output, "|}") | ||
-- Process the generated wikitext so that templates | |||
-- such as {{Icon/Journey}} and {{Item}} are evaluated. | |||
local result = table.concat(output, "\n") | |||
return frame:preprocess(result) | |||
end | end | ||
return p | return p | ||