Template:City-state/doc

This template provides an easy method to link to both a city and its parent state, rather than the city alone. Thus, Nashville, Tennessee becomes Nashville, Tennessee. The template works best on U.S. cities, but can work on some others, but check before using in those cases!

Usage

 * produces:

Good usage
Here are some cases of the template being used successfully for its intended purposes:
 * [[Image:Yes_check.svg|15px|Yes]]Y  produces:
 * Decent, appropriate use of this template
 * [[Image:Yes_check.svg|15px|Yes]]Y  produces:
 * Acceptable, though unnecessary as Atlanta, Georgia redirects to Atlanta
 * [[Image:Yes_check.svg|15px|Yes]]Y  produces:
 * Works, but unnecessary and possibly a poor stylistic choice as New York City is highly recognized
 * [[Image:Yes_check.svg|15px|Yes]]Y  produces:
 * Though PR is not a U.S. state, the template still handles it.
 * [[Image:Yes_check.svg|15px|Yes]]Y  produces:
 * The template can also handle Canadian provinces and territories. However, for locations in Newfoundland and Labrador, the full province name must be used, as Newfoundland is a disambiguation page.
 * [[Image:Yes_check.svg|15px|Yes]]Y  produces:
 * Decent, appropriate use of this template

Problem cases
This template can be used in most cases where you want to link to two articles where the basic usage fits, however there are cases where this template either breaks or is not advised.
 * [[Image:X mark.svg|15px|No]]N  produces:
 * The template assumes "Georgia" in the STATE field means the U.S. State
 * [[Image:X mark.svg|15px|No]]N  produces:
 * This is the result of a mistake, but care must be taken to check usage of this template
 * [[Image:X mark.svg|15px|No]]N</SPAN>  produces:
 * The template does not have a test case for the Australian state of Victoria at this time
 * [[Image:X mark.svg|15px|No]]N</SPAN>  produces:
 * "St John's, Newfoundland" redirects to the correct article location of St. John's, Newfoundland and Labrador. However, as noted in the previous section, "Newfoundland" is a disambiguation page.
 * [[Image:X mark.svg|15px|No]]N</SPAN>  produces:
 * A case in which the city is returned accurately, but not the state. The template currently cannot distinguish the country of Mexico from the State of Mexico.