Jump to content

Module:TestModule: Difference between revisions

From NewsWikiTestbed
AdamZachar (talk | contribs)
Created page with "local p = {} --p stands for package function p.hello( frame ) return "Hello, world!" end return p"
 
AdamZachar (talk | contribs)
No edit summary
Line 3: Line 3:
function p.hello( frame )
function p.hello( frame )
     return "Hello, world!"
     return "Hello, world!"
end
function p.externalDataTest( frame )
    return mw.ext.externaldata.getWebData {
    url = "https://discoursedb.org/wiki/Special:GetData/Fruits_data"
  , data = "name=Name,color=Color,shape=Shape"
  , format = "CSV with header"
}
end
end


return p
return p

Revision as of 10:04, 10 June 2025


local p = {} --p stands for package

function p.hello( frame )
    return "Hello, world!"
end

function p.externalDataTest( frame )
    return mw.ext.externaldata.getWebData {
    url = "https://discoursedb.org/wiki/Special:GetData/Fruits_data"
  , data = "name=Name,color=Color,shape=Shape"
  , format = "CSV with header"
}
end

return p