Module:Region topic/testcases: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
local function navbox(frame,data) |
local function navbox(frame,data) |
||
local args = frame.args |
local args = frame.args |
||
if args.list then |
|||
⚫ | |||
⚫ | |||
⚫ | |||
else |
|||
⚫ | |||
⚫ | |||
⚫ | |||
return require("Module:Region topic").luaMain(args) |
|||
end |
|||
end |
end |
||
Revision as of 13:17, 30 December 2015
![]() | This is the test cases page for the module Module:Region topic. Results of the test cases. |
--This module returns a set of testcases for [[Module:Region topic]].
--See its output on its talk page.
local p = {}
local function navbox(frame,data)
local args = frame.args
if args.list then
return require("Module:Region topic").luaList(data)
else
args.name = "Module:Region topic/tests"
args.data = data
return require("Module:Region topic").luaMain(args)
end
end
function p.data1(frame)
return navbox(frame,{
region = "Europe",
group1 = {
data = {
{"AD","Andorra"},
{"AL","Albania"},
{"AT","Austria"}
}
},
group2 = {
data = {
{"FO","Faroe Islands",the=true},
{"GG","Guernsey"},
{"GI","Gibraltar"}
}
}
})
end
return p