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
 
Line 6: Line 6:
p.yes = function(frame)
p.yes = function(frame)
local rS = ""
local rS = ""
for i,j in pairs(data.stops) do rS = rS .. i .. " : " .. j .. "\n" end  
for i,j in pairs(data.stops) do rS = rS .. i .. " : " .. tostring(j) .. "\n" end  
return rS  
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