Jump to content

Module:Module sandbox/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
Tag: Reverted
Tag: Reverted
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
== Usage ==


local p = {}
p.main = function(frame)
local args = frame.args
local out = ''
-- some code here
return out
end
return p



<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''function_name''}}
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''function_name''}}

Revision as of 10:44, 6 June 2023

Usage

local p = {} p.main = function(frame) local args = frame.args local out = -- some code here

return out end return p


{{#invoke:Module sandbox|function_name}}


return {

   images = {
       default = 'Brazil Acre location map.svg',
       },
   name = 'Acre',
   zone = 'estado',
   genre = 'msi',
   top = -7.01,
   bottom = -11.19,
   left = -74.03,
   right = -66.47,
   projection = 'Projeção equiretangular',
   wikidata = 'Q40780',

}



return { name = 'Brazil Acre', top = -7.01, bottom = -11.19, left = -74.03, right = -66.47, image = 'Brazil Acre location map.svg', }