Module:Sandbox/User:Alsang/NodeDescriptionChecker: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(add function to check if pages and recipes exist)
(table to identify which recipes changed formatting)
Line 290: Line 290:
local query = mw.smw.ask('[[Name::' .. name .. ']][[Recipe JSON::~*]]|?#-')
local query = mw.smw.ask('[[Name::' .. name .. ']][[Recipe JSON::~*]]|?#-')
local result = tostring(query)
local result = tostring(query)
if result=='table' then
cell:wikitext(', recipe:' .. result)
cell:wikitext(' has recipe')
elseif result=='nil' then
cell:wikitext(' needs recipe')
else
cell:wikitext(result)
end
end
end
cell:wikitext('<br>')
cell:wikitext('<br>')