Jump to content

Module:Concert location/doc: Difference between revisions

added info about Washington, D.C.
m (→‎Examples: typo)
(added info about Washington, D.C.)
 
Line 1: Line 1:
This Lua module is designed to automatically generate categories for concert pages based on the location, date, and artist provided in an infobox.
This Lua module is designed to automatically generate categories for concert pages based on the location, date, and artist provided in an infobox.
==Features==
==Features==
*Detects U.S. states by abbreviation (e.g., "CA") or full name (e.g., "California").
*Detects U.S. states by abbreviation (e.g., "CA") or full name (e.g., "California"), while correctly recognizing Washington, D.C. (and variants such as “Washington DC” or “Washington D.C.”) as a unique location.
*Detects non-U.S. countries by using the text after the last comma in the location string, with support for multi-word country names and common aliases (e.g., "London, UK" → "United Kingdom").
*Detects non-U.S. countries by using the text after the last comma in the location string, with support for multi-word country names and common aliases (e.g., "London, UK" → "United Kingdom").
*Automatically prefixes "the" for country names when appropriate (e.g., "The Bahamas", "The Netherlands").
*Automatically prefixes "the" for country names when appropriate (e.g., "The Bahamas", "The Netherlands").