Module:Module sandbox/doc: Difference between revisions
Appearance
Content deleted Content added
Westindiaman (talk | contribs) Tag: Reverted |
Westindiaman (talk | contribs) Undid revision 1158808691 by Westindiaman (talk) |
||
Line 1: | Line 1: | ||
{{Module sandbox heading}} |
{{Module sandbox heading}} |
||
<!-- 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 == |
|||
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''}} |
|||
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', |
|||
} |
|||
</code> |
|||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
|||
return { |
|||
name = 'Brazil Acre', |
|||
top = -7.01, |
|||
bottom = -11.19, |
|||
left = -74.03, |
|||
right = -66.47, |
|||
image = 'Brazil Acre location map.svg', |
|||
} |
|||
<!-- Categories below this line, please; interwikis at Wikidata --> |
|||
}}</includeonly> |
|||
return { |
|||
name = 'Brazil Acre', |
|||
top = -7.01, |
|||
bottom = -11.19, |
|||
left = -74.03, |
|||
right = -66.47, |
|||
image = 'Brazil Acre location map.svg', |
|||
} |
Revision as of 10:46, 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', }