Module:WikidataIB/sandbox1: Difference between revisions

Content deleted Content added
rm debug
use formatting ability from coord
Line 830:
dv = props[1].mainsnak.datavalue.value
local lat, long, prec = dv.latitude, dv.longitude, dv.precision
--[[
 
if form == "dec" then
lat_long[1] = lat
Line 869:
end
end
--]]
 
local lat_long = { lat, long }
lat_long["display"] = disp
lat_long["format"] = form
-- invoke template Coord with the values stored in the table
return frame:expandTemplate{title = 'coord', args = lat_long}