Modul:Karte/Work: Unterschied zwischen den Versionen

Aus FürthWiki

keine Bearbeitungszusammenfassung
(Änderung 769621 von HeikoBot (Diskussion) rückgängig gemacht.)
Markierung: Rückgängigmachung
Keine Bearbeitungszusammenfassung
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 s["Geokoordinate"])
local id = smw.subobjectIdCleaner(s["Geolokation"] or s["Geokoordinate"])
mw.smw.subobject(s, id)
end
end