Module:Region topic/testcases: Difference between revisions
Appearance
Content deleted Content added
Moved data from Module:Sandbox/SiBr4/sub |
No edit summary |
||
Line 20: | Line 20: | ||
region_the = true, |
region_the = true, |
||
group1 = { |
group1 = { |
||
name = " |
name = "Sovereign states", |
||
data = { |
data = { |
||
{"AF","Afghanistan",switch="Asia"}, |
{"AF","Afghanistan",switch="Asia"}, |
||
{"BS","Bahamas",the=true}, |
{"BS","Bahamas",the=true}, |
||
⚫ | |||
{"DK","Denmark"}, |
{"DK","Denmark"}, |
||
{"EG","Egypt",hidden=true,switch="Africa"}, |
{"EG","Egypt",hidden=true,switch="Africa"}, |
||
{"FJ","Fiji"}, |
{"FJ","Fiji"}, |
||
⚫ | |||
⚫ | |||
{"GB","United Kingdom",the=true,subgroup={ |
{"GB","United Kingdom",the=true,subgroup={ |
||
{"ENG","England"}, |
{"ENG","England"}, |
||
Line 35: | Line 32: | ||
{"SCT","Scotland"}, |
{"SCT","Scotland"}, |
||
{"WLS","Wales"}, |
{"WLS","Wales"}, |
||
hidden=true,switch="UKCC"}} |
hidden=true,switch="UKCC"}}, |
||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
}, |
}, |
||
Line 48: | Line 48: | ||
}, |
}, |
||
group3 = { |
group3 = { |
||
name = " |
name = "{{red|Other territories}}", |
||
data = { |
data = { |
||
{"AI","Anguilla"}, |
{"AI","Anguilla"}, |
||
{"AQ","Antarctica",noredlink=true}, |
|||
{"VG","British Virgin Islands",the=true}, |
{"VG","British Virgin Islands",the=true}, |
||
{"GL","Greenland"}, |
{"GL","Greenland"}, |
Revision as of 17:42, 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 = "World",
region_the = true,
group1 = {
name = "Sovereign states",
data = {
{"AF","Afghanistan",switch="Asia"},
{"BS","Bahamas",the=true},
{"DK","Denmark"},
{"EG","Egypt",hidden=true,switch="Africa"},
{"FJ","Fiji"},
{"GB","United Kingdom",the=true,subgroup={
{"ENG","England"},
{"NIR","Northern Ireland"},
{"SCT","Scotland"},
{"WLS","Wales"},
hidden=true,switch="UKCC"}},
{"GE","Georgia",link="Georgia (country)",switch="Asia"},
{"KH","Cambodia",switch="Asia"},
{"MK","Macedonia",link="Republic of Macedonia",the=true}
}
},
group2 = {
name = "[[List of states with limited recognition|States with limited recognition]]",
data = {
{"XKS","Kosovo"},
{"XNC","Northern Cyprus"},
{"XSD","Somaliland",hidden=true,switch="Africa"},
{"XSO","South Ossetia",switch="Asia"}
}
},
group3 = {
name = "{{red|Other territories}}",
data = {
{"AI","Anguilla"},
{"AQ","Antarctica",noredlink=true},
{"VG","British Virgin Islands",the=true},
{"GL","Greenland"},
{"MO","Macau",switch="Asia"}
},
switch = "deps"
},
group4 = {
name = "Switchable hidden group",
data = {
{"AA","AA"},
{"AB","AB"},
{"AC","AC"}
},
switch = "foo",
hidden = true
},
group5 = {
name = "Switchable hidden group 2",
data = {
{"XW","XW",switch="show_XW"},
{"XX","XX",switch="show_XX",hidden=true},
{"XY","XY",switch="hide_XY",negate_switch=true},
{"XZ","XZ",switch="hide_XZ",hidden=true,negate_switch=true}
},
switch = "foo_hidden",
negate_switch = true,
hidden = true
}
})
end
return p