Module:place/data: difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
m Reverted edits by Panda10. If you think this rollback is in error, please leave a message on my talk page. Tag: Rollback |
so that for instance Velence is added to "Towns in Hungary" category |
||
Line 1,387: | Line 1,387: | ||
}, |
}, |
||
["country/China"] = { |
["country/China"] = { |
||
["country"] = {true}, |
|||
}, |
|||
["country/Hungary"] = { |
|||
["country"] = {true}, |
["country"] = {true}, |
||
}, |
}, |
Revision as of 23:37, 22 February 2019
- The following documentation is located at Module:place/data/documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
A data module of Module:place ultimately used by {{place}}
.
local export = {}
export.placetype_aliases = {
["s"] = "state",
["c"] = "country",
["p"] = "province",
["r"] = "region",
["mountain range"] = "range",
}
export.placename_aliases = {
["country"] = {
["US"] = "United States",
["USA"] = "United States",
},
["city"] = {
["New York"] = "New York City",
},
}
export.place_article = {
["country"] = {
["Bahamas"] = "the",
["Central African Republic"] = "the",
["Comoros"] = "the",
["Congo"] = "the",
["Czech Republic"] = "the",
["Democratic Republic of the Congo"] = "the",
["Dominican Republic"] = "the",
["Gambia"] = "the",
["Holy Roman Empire"] = "the",
["Maldives"] = "the",
["Marshall Islands"] = "the",
["Netherlands"] = "the",
["Philippines"] = "the",
["Republic of the Congo"] = "the",
["Roman Empire"] = "the",
["Seychelles"] = "the",
["Solomon Islands"] = "the",
["Soviet Union"] = "the",
["UK"] = "the",
["United Arab Emirates"] = "the",
["United Kingdom"] = "the",
["United States"] = "the",
["United States of America"] = "the",
["US"] = "the",
["Vatican"] = "the",
},
["autonomous community"] = {
["Basque Country"] = "the",
["Valencian Community"] = "the",
},
["oblast"] = {
["Jewish Autonomous Oblast"] = "the",
},
}
export.autolink = {
["continent"] = true,
["country"] = true,
}
export.implications = {
["contregion"] = {
["Caucasus"] = {"continent", "Asia"},
["Middle East"] = {"continent", "Asia"},
["the Middle East"] = {"continent", "Asia"},
["the Caucasus"] = {"continent", "Asia"},
},
}
export.cat_data = {
["administrative village"] = {
preposition="of",
["default"] = {
["municipality"] = {true},
},
},
["administrative capital"] = {
preposition="of",
["default"] = {
["municipality"] = {true},
},
},
["ancient city"] = {
plural="ancient cities",
["default"] = {
["itself"] = {"Cities"},
},
},
["ancient civilisation"] = {
["default"] = {
["itself"] = {"Historical polities"},
},
},
["ancient civilization"] = {
["default"] = {
["itself"] = {"Historical polities"},
},
},
["ancient empire"] = {
["default"] = {
["itself"] = {"Historical polities"},
},
},
["ancient kingdom"] = {
["default"] = {
["itself"] = {"Historical polities"},
},
},
["archipelago"] = {
["default"] = {
["itself"] = {"Islands"},
},
},
["atoll"] = {
["default"] = {
["itself"] = {true},
},
},
["autonomous community"] = {
plural="autonomous communities",
preposition="of",
["default"] = {
["country"] = {true},
},
},
["autonomous oblast"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["autonomous okrug"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["autonomous prefecture"] = {
preposition="of",
["default"] = {
["country"] = {"Prefectures of "},
},
},
["autonomous region"] = {
preposition="of",
["country/Portugal"] = {
["itself"] = {"Districts and autonomous regions of Portugal"},
},
["country/China"] = {
["country"] = {true}
},
["default"] = {
},
},
["autonomous republic"] = {
preposition="of",
["country/Soviet Union"] = {
["country"] = {true},
},
["default"] = {
},
},
["autonomous territory"] = {
preposition="of",
plural="autonomous territories",
["default"] = {
["itself"] = {"Dependencies"},
},
},
["bishopric"] = {
["default"] = {
["itself"] = {"Polities"},
},
},
["borough"] = {
preposition="of",
["default"] = {
},
["city/New York City"] = {
["itself"] = {"Boroughs in New York City"},
},
["city/Pennsylvania"] = {
["itself"] = {"Boroughs in Pennsylvania"},
},
},
["canton"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["cape"] = {
["default"] = {
["itself"] = {"Peninsulas"},
},
},
["capital"] = {
article="the",
preposition="of",
["default"] = {
},
},
["capital city"] = {
article="the",
plural="capital cities",
preposition="of",
["default"] = {
["itself"] = {true},
},
},
["city"] = {
plural="cities",
["country/North Macedonia"] = {
["itself"] = {"Cities in the Republic of North Macedonia"},
},
["country/Myanmar"] = {
["itself"] = {"Cities in Burma"},
},
-- UNITED STATES
["country/United States"] = {
["itself"] = {"Cities in the United States of America"},
},
["state/Alabama"] = {
["itself"] = {"Cities in Alabama, USA"},
},
["state/Alaska"] = {
["itself"] = {"Cities in Alaska, USA"},
},
["state/Arizona"] = {
["itself"] = {"Cities in Arizona, USA"},
},
["state/Arkansas"] = {
["itself"] = {"Cities in Arkansas, USA"},
},
["state/California"] = {
["itself"] = {"Cities in California, USA"},
},
["state/Colorado"] = {
["itself"] = {"Cities in Colorado, USA"},
},
["state/Connecticut"] = {
["itself"] = {"Cities in Connecticut, USA"},
},
["state/Delaware"] = {
["itself"] = {"Cities in Delaware, USA"},
},
["state/Florida"] = {
["itself"] = {"Cities in Florida, USA"},
},
["state/Georgia"] = {
["itself"] = {"Cities in Georgia, USA"},
},
["state/Hawaii"] = {
["itself"] = {"Cities in Hawaii, USA"},
},
["state/Idaho"] = {
["itself"] = {"Cities in Idaho, USA"},
},
["state/Illinois"] = {
["itself"] = {"Cities in Illinois, USA"},
},
["state/Indiana"] = {
["itself"] = {"Cities in Indiana, USA"},
},
["state/Iowa"] = {
["itself"] = {"Cities in Iowa, USA"},
},
["state/Kansas"] = {
["itself"] = {"Cities in Kansas, USA"},
},
["state/Kentucky"] = {
["itself"] = {"Cities in Kentucky, USA"},
},
["state/Louisiana"] = {
["itself"] = {"Cities in Louisiana, USA"},
},
["state/Maine"] = {
["itself"] = {"Cities in Maine, USA"},
},
["state/Maryland"] = {
["itself"] = {"Cities in Maryland, USA"},
},
["state/Massachusetts"] = {
["itself"] = {"Cities in Massachusetts, USA"},
},
["state/Michigan"] = {
["itself"] = {"Cities in Michigan, USA"},
},
["state/Minnesota"] = {
["itself"] = {"Cities in Minnesota, USA"},
},
["state/Mississippi"] = {
["itself"] = {"Cities in Mississippi, USA"},
},
["state/Missouri"] = {
["itself"] = {"Cities in Missouri, USA"},
},
["state/Montana"] = {
["itself"] = {"Cities in Montana, USA"},
},
["state/Nebraska"] = {
["itself"] = {"Cities in Nebraska, USA"},
},
["state/Nevada"] = {
["itself"] = {"Cities in Nevada, USA"},
},
["state/New Hampshire"] = {
["itself"] = {"Cities in New Hampshire, USA"},
},
["state/New Jersey"] = {
["itself"] = {"Cities in New Jersey, USA"},
},
["state/New Mexico"] = {
["itself"] = {"Cities in New Mexico, USA"},
},
["state/New York"] = {
["itself"] = {"Cities in New York, USA"},
},
["state/North Carolina"] = {
["itself"] = {"Cities in North Carolina, USA"},
},
["state/North Dakota"] = {
["itself"] = {"Cities in North Dakota, USA"},
},
["state/Ohio"] = {
["itself"] = {"Cities in Ohio, USA"},
},
["state/Oklahoma"] = {
["itself"] = {"Cities in Oklahoma, USA"},
},
["state/Oregon"] = {
["itself"] = {"Cities in Oregon, USA"},
},
["state/Pennsylvania"] = {
["itself"] = {"Cities in Pennsylvania, USA"},
},
["state/Rhode Island"] = {
["itself"] = {"Cities in Rhode Island, USA"},
},
["state/South Carolina"] = {
["itself"] = {"Cities in South Carolina, USA"},
},
["state/South Dakota"] = {
["itself"] = {"Cities in South Dakota, USA"},
},
["state/Tennessee"] = {
["itself"] = {"Cities in Tennessee, USA"},
},
["state/Texas"] = {
["itself"] = {"Cities in Texas, USA"},
},
["state/Utah"] = {
["itself"] = {"Cities in Utah, USA"},
},
["state/Vermont"] = {
["itself"] = {"Cities in Vermont, USA"},
},
["state/Virginia"] = {
["itself"] = {"Cities in Virginia, USA"},
},
["state/Washington"] = {
["itself"] = {"Cities in Washington, USA"},
},
["state/West Virginia"] = {
["itself"] = {"Cities in West Virginia, USA"},
},
["state/Wisconsin"] = {
["itself"] = {"Cities in Wisconsin, USA"},
},
["state/Wyoming"] = {
["itself"] = {"Cities in Wyoming, USA"},
},
-- AUSTRALIA
["country/Australia"] = {
["itself"] = {"Cities in Australia"},
},
["state/New South Wales"] = {
["itself"] = {"Cities in New South Wales"},
},
["state/Queensland"] = {
["itself"] = {"Cities in Queensland"},
},
["state/South Australia"] = {
["itself"] = {"Cities in South Australia"},
},
["state/Tasmania"] = {
["itself"] = {"Cities in Tasmania"},
},
["state/Victoria"] = {
["itself"] = {"Cities in Victoria"},
},
["state/Western Australia"] = {
["itself"] = {"Cities in Western Australia"},
},
-- CANADA
["country/Canada"] = {
["itself"] = {"Cities in Canada"},
},
["province/British Columbia"] = {
["itself"] = {"Cities in British Columbia"},
},
["province/Alberta"] = {
["itself"] = {"Cities in Alberta"},
},
["province/Saskatchewan"] = {
["itself"] = {"Cities in Saskatchewan"},
},
["province/Manitoba"] = {
["itself"] = {"Cities in Saskatchewan"},
},
["province/Ontario"] = {
["itself"] = {"Cities in Ontario"},
},
["province/Quebec"] = {
["itself"] = {"Cities in Quebec"},
},
["province/New Brunswick"] = {
["itself"] = {"Cities in New Brunswick"},
},
["province/Nova Scotia"] = {
["itself"] = {"Cities in Nova Scotia"},
},
["province/Prince Edward Island"] = {
["itself"] = {"Cities in Prince Edward Island"},
},
["province/Newfoundland and Labrador"] = {
["itself"] = {"Cities in Newfoundland and Labrador"},
},
["territory/Yukon"] = {
["itself"] = {"Cities in Yukon"},
},
["territory/Northwest Territories"] = {
["itself"] = {"Cities in the Northwest Territories"},
},
["territory/Nunavut"] = {
["itself"] = {"Cities in Nunavut"},
},
["default"] = {
["itself"] = {true},
["country"] = {true},
},
},
["colony"] = {
plural="colonies",
preposition="of",
["default"] = {
},
},
["commandery"] = {
plural="commanderies",
preposition="of",
["default"] = {
["itself"] = {true},
["country"] = {true},
},
},
["commonwealth"] = {
preposition="of",
["default"] = {
},
},
["continent"] = {
["default"] = {
["itself"] = {true},
},
},
["contregion"] = {
["default"] = {
},
},
["council area"] = {
preposition="of",
["default"] = {
},
},
["country"] = {
plural="countries",
synergy={
["macroregion"]={
before="in the",
between="of",
}
},
["default"] = {
["continent"] = {true},
["itself"] = {true},
},
},
["county"] = {
plural="counties",
preposition="of",
["country/England"] = {
["itself"] = {"Counties of England"},
},
["country/Holy Roman Empire"] = {
},
["country/People's Republic of China"] = {
["itself"] = {"Counties of China"},
},
["country/Republic of China"] = {
["itself"] = {"Counties of Taiwan"},
},
["default"] = {
["itself"] = {"Polities"},
["country"] = {true},
},
},
["county-level city"] = {
plural="county-level cities",
["default"] = {
["itself"] = {true},
["country"] = {"Cities in "},
},
},
["department"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["departmental capital"] = {
article="the",
preposition="of",
["default"] = {
},
},
["department capital"] = {
article="the",
preposition="of",
["default"] = {
},
},
["dependency"] = {
plural="dependencies",
preposition="of",
["default"] = {
["itself"] = {true},
},
},
["desert"] = {
["default"] = {
["itself"] = {true},
},
},
["district"] = {
preposition="of",
["country/Portugal"] = {
["itself"] = {"Districts and autonomous regions of Portugal"},
},
["default"] = {
["country"] = {true},
},
},
["district capital"] = {
article="the",
preposition="of",
["default"] = {
},
},
["division"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["duchy"] = {
plural="duchies",
["default"] = {
["itself"] = {"Polities"},
},
},
["federal city"] = {
plural="federal cities",
preposition="of",
["default"] = {
["country"] = {true},
},
},
["fictional city"] = {
plural="fictional cities",
["default"] = {
["itself"] = {"Fictional locations"},
},
},
["fictional island"] = {
["default"] = {
["itself"] = {"Fictional locations"},
},
},
["fictional kingdom"] = {
["default"] = {
["itself"] = {"Fictional locations"},
},
},
["fictional region"] = {
["default"] = {
["itself"] = {"Fictional locations"},
},
},
["forest"] = {
["default"] = {
["itself"] = {true},
},
},
["former autonomous territory"] = {
plural="former autonomous territories",
preposition="of",
["default"] = {
["itself"]= {"Polities"},
},
},
["former colony"] = {
plural="former colonies",
preposition="of",
["default"] = {
["itself"]= {"Polities"},
},
},
["former country"] = {
plural="former countries",
["default"] = {
["itself"] = {"Historical polities"},
},
},
["former county"] = {
plural="former counties",
preposition="of",
["default"] = {
},
},
["former empire"] = {
["default"] = {
["itself"] = {"Historical polities"},
},
},
["former kingdom"] = {
["default"] = {
["itself"] = {"Historical polities"},
},
},
["former maritime republic"] = {
["default"] = {
["itself"] = {"Historical polities"},
},
},
["former region"] = {
preposition="of",
["default"] = {
["country"] = {"Regions of "},
},
},
["former republic"] = {
plural="former republics",
["default"] = {
["itself"] = {"Historical polities"},
},
},
["former separatist state"] = {
["default"] = {
["itself"] = {"Historical polities"},
},
},
["former state"] = {
preposition="of",
["default"] = {
["country"] = {"States of "},
},
},
["governorate"] = {
preposition = "of",
["default"] = {
},
},
["headland"] = {
["default"] = {
["itself"] = {true},
},
},
["hill"] = {
["default"] = {
["itself"] = {true},
},
},
["historical region"] = {
["default"] = {
["itself"] = {"Historical and traditional regions"},
},
},
["island"] = {
["default"] = {
["itself"] = {true},
},
},
["judicial capital"] = {
article="the",
preposition="of",
["default"] = {
["itself"] = {"Capital cities"},
},
},
["kibbutz"] = {
plural="kibbutzim",
["default"] = {
["itself"] = {true},
},
},
["kingdom"] = {
["default"] = {
["itself"] = {"Polities"},
},
},
["krai"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["lake"] = {
["default"] = {
["itself"] = {true},
},
},
["legislative capital"] = {
article="the",
preposition="of",
["default"] = {
["itself"] = {"Capital cities"},
},
},
["macroregion"] = {
real_name="region",
preposition="of",
["country/Brazil"] = {
["country"] = {true},
},
["default"] = {
},
},
["marginal sea"] = {
preposition="of",
["default"] = {
["itself"] = {"Seas"},
},
},
["mediaeval city"] = {
["default"] = {
["itself"] = {"Cities"},
},
},
["mediaeval kingdom"] = {
["default"] = {
["itself"] = {"Historical polities"},
},
},
["mention capital"] = {
synergy = {
["country"] = {
before = "of",
between = "where the country’s capital",
after = "is located"
}
},
["default"] = {
},
},
["mountain"] = {
["default"] = {
["itself"] = {true},
},
},
["municipality"] = {
plural="municipalities",
preposition="of",
["country/Brazil"] = {
["state"] = {true},
["country"] = {true},
},
["country/China"] = {
["country"] = {"Municipalities of "},
},
["default"] = {
["country"] = {true},
},
},
["mythological city"] = {
plural="mythological cities",
["default"] = {
["itself"] = {"Mythological locations"},
},
},
["mythological island"] = {
["default"] = {
["itself"] = {"Mythological locations"},
},
},
["mythological kingdom"] = {
["default"] = {
["itself"] = {"Mythological locations"},
},
},
["mythological region"] = {
["default"] = {
["itself"] = {"Mythological locations"},
},
},
["mythological river"] = {
["default"] = {
["itself"] = {"Mythological locations"},
},
},
["oblast"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["ocean"] = {
["default"] = {
["itself"] = {true},
},
},
["overseas department"] = {
preposition="of",
["default"] = {
["itself"] = {"Polities"},
},
},
["overseas territory"] = {
preposition="of",
plural="overseas territories",
["default"] = {
["itself"] = {"Polities"},
},
},
["parish"] = {
plural="parishes",
preposition="of",
["default"] = {
}
},
["peninsula"] = {
["default"] = {
["itself"] = {true},
},
},
["periphery"] = {
plural="peripheries",
preposition="of",
["country/Greece"] = {
["itself"] = {"Regions of Greece"},
},
["default"] = {
},
},
["prefecture"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["prefecture-level city"] = {
plural="prefecture-level cities",
["default"] = {
["country"] = {"Cities in "},
},
},
["province"] = {
preposition="of",
["country/France"] = {
},
["default"] = {
["country"] = {true},
},
},
["provincial capital"] = {
article="the",
preposition="of",
["province/Quebec"] = {
["itself"] = {"Cities in Quebec"},
},
["default"] = {
["country"] = {"Cities in "},
},
},
["range"] = {
real_name = "mountain range",
["default"] = {
["itself"] = {"Mountains"},
},
},
["regency"] = {
plural="regencies",
preposition="of",
["default"] = {
["country"] = {true},
},
},
["region"] = {
preposition="of",
["country/Armenia"] = {
["country"] = {true},
},
["country/Brazil"] = {
["country"] = {true},
},
["country/England"] = {
["itself"] = {"Counties and regions of England"},
},
["country/Finland"] = {
["country"] = {true},
},
["country/France"] = {
["country"] = {true},
},
["country/Georgia"] = {
["country"] = {true},
},
["country/Greece"] = {
["country"] = {true},
},
["country/Italy"] = {
["country"] = {true},
},
["country/Latvia"] = {
["country"] = {true},
},
["country/Peru"] = {
["country"] = {true},
},
["country/Portugal"] = {
["country"] = {true},
},
["country/Romania"] = {
["country"] = {true},
},
["default"] = {
},
},
["regional capital"] = {
article="the",
preposition="of",
["default"] = {
},
},
["regional unit"] = {
preposition="of",
plural="regional units",
["default"] = {
},
},
["republic"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["river"] = {
["default"] = {
["itself"] = {true},
},
["country/Canada"] = {
["country"] = {true},
},
["country/China"] = {
["country"] = {true},
},
},
["satrapy"] = {
preposition="of",
plural="satrapies",
["default"] = {
},
},
["sea"] = {
["default"] = {
["itself"] = {true},
},
},
["special administrative region"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["star"] = {
["default"] = {
["itself"] = {true},
},
},
["state"] = {
preposition="of",
["default"] = {
["country"] = {true},
},
},
["state capital"] = {
article="the",
preposition="of",
["country/Brazil"] = {
["country"] = {true},
},
["country/United States"] = {
["itself"] = {"State capitals of the United States of America"},
},
["country/United States of America"] = {
["itself"] = {"State capitals of the United States of America"},
},
["default"] = {
},
},
["strait"] = {
["default"] = {
["itself"] = {true},
},
},
["subdistrict"] = {
preposition="of",
["country/Indonesia"] = {
["municipality"] = {true},
},
["default"] = {
["itself"] = {true},
},
},
["subprovincial city"] = {
["default"] = {
["country"] = {"Cities in "},
},
},
["supercontinent"] = {
["default"] = {
["itself"] = {"Continents"},
},
},
["territory"] = {
plural="territories",
preposition="of",
["country/Canada"] = {
["country"] = {true},
},
["country/Australia"] = {
["country"] = {true},
},
["default"] = {
},
},
["town"] = {
["country/Canada"] = {
["province"] = {true},
["country"] = {true},
},
["country/China"] = {
["country"] = {true},
},
["country/Hungary"] = {
["country"] = {true},
},
["country/Taiwan"] = {
["country"] = {true},
},
["default"] = {
["itself"] = {true},
},
},
["township"] = {
["default"] = {
["itself"] = {true},
},
},
["traditional county"] = {
plural="traditional counties",
preposition="of",
["default"] = {
},
},
["traditional region"] = {
["default"] = {
["itself"] = {"Historical and traditional regions"},
},
},
["unrecognised country"] = {
plural="unrecognised countries",
["default"] = {
["itself"] = {"Countries"},
},
},
["valley"] = {
["default"] = {
["itself"] = {true},
},
},
["village"] = {
["country/Armenia"] = {
["country"] = {true},
},
["country/Netherlands"] = {
["country"] = {true},
},
["default"] = {
["itself"] = {true},
},
},
["voivodeship"] = {
preposition="of",
["default"] = {
},
},
}
return export