"ഘടകം:Slippymap/sandbox" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
No edit summary |
No edit summary |
||
| വരി 19: | വരി 19: | ||
mapHtml:attr("id", "map") | mapHtml:attr("id", "map") | ||
-- | -- Get the correct logo URL (ensure it's a string) | ||
local logoUrl = mw.uri.fullUrl(logo) | local logoUrl = mw.uri.fullUrl(logo) | ||
if type(logoUrl) == "table" then | |||
logoUrl = logoUrl[1] -- Extract the string URL from the table | |||
end | |||
local script = mw.html.create("script") | local script = mw.html.create("script") | ||