Module:Station: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| 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 .. " | 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