Module:Module sandbox/doc: Difference between revisions
Appearance
Content deleted Content added
Westindiaman (talk | contribs) Undid revision 1158808691 by Westindiaman (talk) |
Westindiaman (talk | contribs) Undid revision 1158808675 by Westindiaman (talk) |
||
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:47, 6 June 2023
Usage
{{#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', }