"ഘടകം:Slippymap/sandbox" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

No edit summary
No edit summary
വരി 1: വരി 1:
local p = {}
local p = {}


function p.slippymap(frame)
function p.renderMap(frame)
     -- Get arguments from the template or directly from the page
     -- Get arguments from the template or directly from the page
     local args = frame:getParent().args
     local args = frame:getParent().args
വരി 21: വരി 21:
     -- Get the correct logo URL (ensure it's a string)
     -- 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
    -- Check if the logoUrl is nil and fallback to a default
     if logoUrl == nil then
         logoUrl = mw.uri.fullUrl("File:63rd state kalolsavam logo.png") -- Fallback logo
     end
     end


"https://schoolwiki.in/ഘടകം:Slippymap/sandbox" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്