TopLevel genCountry.php - jcobban/Genealogy GitHub Wiki
This script displays the page summarizing services that are provided for a particular country. You get to this script for a particular country from CountriesEdit.php.
When invoked by method='get'
it supports the following parameters:
parameter | description |
---|---|
'cc' | the ISO 3166-1 2-character code for the country |
'lang' | the language selection as an IETF BCP 47 code |
This script displays a dialog such as:
The page includes a combination of static and dynamic information. The static information is obtained from a template file genCountry$cc$lang.html
where $cc
is replaced by the ISO 3166-1 country code and $lang
is replaced by the IETF BCP 47 localization identifier. For example the English version of the static part of the country page for the USA is genCountryUSen.html
.
In addition to links to popular resources this page is the top level of the hierarchy of pages about a particular country within the site. As such it has links to site resources such as:
- a link to a list of administrative units immediately below the country level, for example states or provinces. This is implemented by DomainsEdit.php.
- a link to information about censuses of this country. This is implemented by genCensuses.php.
Next: genealogy.js