Modul:Karte: Unterschied zwischen den Versionen

83 Bytes hinzugefügt ,  Gestern um 18:32
+ subobjectIdCleaner()
(subobject-ID LatLon)
(+ subobjectIdCleaner())
Zeile 4: Zeile 4:
local str = require("Modul:String")
local str = require("Modul:String")
local wik = require("Modul:Wiki")
local wik = require("Modul:Wiki")
local smw = require("Modul:SMW")


function p.Karte(frame)
function p.Karte(frame)
Zeile 77: Zeile 78:
for _, s in ipairs(subobjects) do
for _, s in ipairs(subobjects) do
s["SubObjektTyp"] = "Geo"
s["SubObjektTyp"] = "Geo"
mw.smw.subobject(s, s["Geolokation"] or "LatLon")
local id = smw.subobjectIdCleaner(s["Geolokation"] or s["Geokoordinate"])
mw.smw.subobject(s, id)
end
end