Modul:GeoData/Params
Dokumentaci tohoto modulu lze vytvořit na stránce Modul:GeoData/Params/Dokumentace
-- Parameters definition tor coord and geoData templates
-- založeno kopií z dewikivoyage (https://de.wikivoyage.org/w/index.php?title=Modul:GeoData/Params&oldid=1422402)
-- created as copy from dewikivoyage
local errorMsgs = {
unknownParam = ' Neznámý parametr: ',
unknownParams = ' Neznámé parametry: ',
maintenance = '[[Kategorie:Údržba:Neznámé parametry šablony GeoData]]'
}
return {
-- module administration
moduleInterface = {
suite = 'GeoData',
sub = 'Params',
serial = '2021-11-23',
item = 123456789
},
coord = {
[ 1 ] = '',
[ 2 ] = '',
lat = '',
long = '',
name = '',
format = '',
wikidata = '',
-- globe = '',
precision = '',
region = '',
scale = '',
zoom = '',
type = ''
},
geo = {
[ 1 ] = '',
[ 2 ] = '',
lat = '',
long = '',
name = '',
wikidata = '',
-- globe = '',
radius = '',
zoom = '',
},
checkParams = function( args, a )
local i = 0
local s = ''
for k, _ in pairs( args ) do
if not a[ k ] then
s = s .. ( s ~= '' and ', ' or '' ) .. "''" .. k .. "''"
i = i + 1
end
end
if i == 1 then
s = errorMsgs.unknownParam .. s
elseif i > 1 then
s = errorMsgs.unknownParams .. s
end
if s ~= '' then
s = '<span class="error">' .. s .. '</span>' .. errorMsgs.maintenance
end
return s
end
}