Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Region topic/testcases
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
--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(frame,data) else args.name = "Module:Region topic/testcases" args.data = data return require("Module:Region topic").luaMain(frame,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",switch="show_XW"}, {"XX",switch="show_XX",hidden=true}, {"XY",switch="hide_XY",negate_switch=true}, {"XZ",switch="hide_XZ",hidden=true,negate_switch=true} }, switch = "foo_hidden", negate_switch = true, hidden = true } }) end return p
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Region topic/testcases/doc
(
edit
)