Module:Sandbox/Evad37/X1: Difference between revisions

Content deleted Content added
.
just get coords
Line 13:
local title = mw.title.getCurrentTitle()
local content = frame:preprocess(title:getContent())
local coords = {}
return parent:preprocess("<pre>" .. content .. "</pre>")
for coord in mw.ustring.gmatch(content, "<span class=\"geo\">(.-)</span>") do
table.insert(coords, coord)
end
return table.concat( coords, "\n")
end