Modul:Faktenbox/Zeilen: Unterschied zwischen den Versionen

Aus FürthWiki

local smw = require("Modul:SMW")
(+ getTelUri())
(local smw = require("Modul:SMW"))
 
Zeile 5: Zeile 5:
local wik = require("Modul:Wiki")
local wik = require("Modul:Wiki")
local geo = require("Modul:Geo")
local geo = require("Modul:Geo")
local que = require("Modul:Queries")
local smw = require("Modul:SMW")
local lfd = require("Modul:LinkFormDatum")
local lfd = require("Modul:LinkFormDatum")
local wob = require("Modul:Wörterbuch")
local wob = require("Modul:Wörterbuch")
Zeile 84: Zeile 84:
t = t .. ",<br>"
t = t .. ",<br>"
end
end
local p = que.getPages("[[:+]][[AktenNr::" .. a .. "]]", true)
local p = smw.getPages("[[:+]][[AktenNr::" .. a .. "]]", true)
if #p > 1 then
if #p > 1 then
t = t .. "{{#queryformlink:form=Abfrage Denkmalschutz|link text=[[AktenNr::" .. a .. "]]|query string=Abfrage Denkmalschutz[AktenNr]=" .. a .. "&_run}}"
t = t .. "{{#queryformlink:form=Abfrage Denkmalschutz|link text=[[AktenNr::" .. a .. "]]|query string=Abfrage Denkmalschutz[AktenNr]=" .. a .. "&_run}}"
Zeile 104: Zeile 104:
-- fab = require("Modul:Faktenbox"); fbdata=fab.fbdata{pargs={}}; fbdata.fullpagename="Isaak-Loewi-Straße 1, 3, 5, 7, 9, Liesl-Kießling-Straße 16"; print(p.zeileGeoDaten_(fbdata))
-- fab = require("Modul:Faktenbox"); fbdata=fab.fbdata{pargs={}}; fbdata.fullpagename="Isaak-Loewi-Straße 1, 3, 5, 7, 9, Liesl-Kießling-Straße 16"; print(p.zeileGeoDaten_(fbdata))
local t = ""
local t = ""
local geokoordinate = que.getValues(fbdata.fullpagename, "Geokoordinate", true)
local geokoordinate = smw.getValues(fbdata.fullpagename, "Geokoordinate", true)
local geojson = que.getValues(fbdata.fullpagename, "GeoJson", true)
local geojson = smw.getValues(fbdata.fullpagename, "GeoJson", true)
if #geojson > 0 then
if #geojson > 0 then
geojson = geojson[1]
geojson = geojson[1]