Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:UrlParamTest: Difference between revisions

From Farming Simulator Modding Wiki
No edit summary
No edit summary
Line 16: Line 16:
     local out = ""
     local out = ""
     for k,v in pairs(title) do
     for k,v in pairs(title) do
         out = out .. k .. ": " .. v .. "\n"
         out = out .. tostring(k) .. ": " .. tostring(v) .. "\n"
     end
     end



Revision as of 01:06, 21 September 2025

Documentation for this module may be created at Module:UrlParamTest/doc

local p = {}

function p.Get(frame)

	local args = {}
    -- get the arguments
    if frame == mw.getCurrentFrame() then
        args = frame:getParent().args
    else
        args = frame.args
    end


	local title = mw.title.getCurrentTitle()

    local out = ""
    for k,v in pairs(title) do
        out = out .. tostring(k) .. ": " .. tostring(v) .. "\n"
    end

	return out
	
end

return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.