Template:Location set and format/doc


 * Purpose
 * Helper function for templates that format a location for display to the user, and sets the values in the page's properties.


 * Functions
 * Error control- If a location does not have a page, an error property is set for the page.
 * Names shortenned. Article page names are shortened to display names.  EG: Greene County, Ohio uses property short name to display "Greene County".  If there is no page location, then this function uses Shortlink2 to trim predicted suffix patterns (material following the comma or in parens).
 * Language specific- order and insertion of connecting grammar "in", "at", and commas that are pertinent for a language.


 * Parameters
 * 1) Event name eg birth, death, wedding1 etc.
 * 2) address
 * 3) locality
 * 4) county
 * 5) nation-subdiv1
 * 6) nation
 * 7) places-other