Module:Station: Difference between revisions

From Nguhcraft Wiki
Jump to navigation Jump to search
Biangfox (talk | contribs)
No edit summary
Biangfox (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:


p.yes = function(frame)
p.yes = function(frame)
return tostring(data)
local rS = ""
for i,j in pairs(data.stops) do rS = rS .. i .. " : " .. tostring(j) .. "\n" end
return rS
end
end



Latest revision as of 17:21, 11 January 2026

Documentation for this module may be created at Module:Station/doc

local p = {}

-- Load JSON data
local data = mw.loadJsonData("Data:Cenrail_Network")

p.yes = function(frame)
	local rS = ""
	for i,j in pairs(data.stops) do rS = rS .. i .. " : " .. tostring(j) .. "\n" end 
	return rS 
end

p.found = function(frame) 
end

return p