User:Tegnosis/Structured Data

Some info on the future goal of adding structured data to the wiki.

Description
The first round will focus on Countries (example: England Genealogy) and their associated Topic pages (example: England Medical Records). As a note, we won't be able to use the current AllCountrySidebar template the way it's written since it breaks on the first space, but that doesn't work for Countries with more than one word and breaking on "Genealogy" won't work for Topic pages. I added "Name of Country" to the list of Fields for Country pages and that should solve that issue (i.e. we can use that field to build all the link names).

Pages

 * 1) Form:CountrySidebar (Beta: Form:CountrySidebar)
 * 2) Template:CountrySidebar (Beta: Template:CountrySidebar)
 * 3) Template:Country list (Beta: Template:Country list)
 * 4) Template:Topic list (Beta: Template:Topic list)
 * Category:CountrySidebars (Beta: Category:CountrySidebars)

Fields for countries

 * 1) Name of Country
 * 2) Type of page (Country or Topic)
 * 3) Dates
 * 4) * Incorporation/Start
 * 5) * Through current or end date
 * 6) Geographic center
 * 7) FamilySearch region
 * 8) Moderator
 * 9) Population
 * 10) What record types exist (storing the links)?
 * 11) Languages spoken?
 * 12) Place ID
 * 13) Note, some countries (China, Tawain, etc. are contentous about the county they belong to so might contain more than one country code)

Fields for Level 1

 * Wiki Countries and Subjurisdictions

Fields for localized jurisdiction names

 * i.e. State, Department, Province, Region, etc. (get list from Amber)
 * Form will have radio buttons to allow editor to choose Localized jurisdiction, then the page (via Template) can show up differently (beyond stating the localized jurisdiction name, Danielle & Amber to inform this)

There seems to be a standard way we can use where:
 * Level 0 = Country
 * Level 1 = State (or localized name)
 * Level 2 = County (or localized name)
 * Level 3 = City (or localized name)

Questions

 * 1) Country List
 * 2) * A template for all countries is here: Country list (in Beta: Country list)
 * 3) * The list is pulled from the Wiki Countries and Subjurisdictions spreadsheet, there are several countries that are highlighted in red. Should these havea  common sidebar or not?
 * 4) * The names and diacritics should be confirmed since it will drive the page names
 * 5) Topic List
 * 6) * A template for all topic types is here: Topic list (in Beta: Country list)
 * 7) * The list was generated from the topics on the England Medical Records page, but should be updated with any missing topics
 * 8) Need to remove some characters from the Page Name (  and  )
 * 9) * Can use DisplayTitle to show them
 * 10) * Other jurisdiction pages may have additional characters ( and  ) we need to handle similarly
 * 11) * There may be a way to allow these (all but the pipe) and never query on the page name directly, we can test if if makes sense (especially for all the levels of jurisdictions)
 * 12) Might need to explain Language Word Lists, but likely should be added to the Country Page Form
 * 13) Breadcrumbs
 * 14) * For Topic Pages, we should be fine with the information we have (verify)
 * 15) * For Country page, we need the sequence for each country. With England as the example: Europe→British Isles→United Kingdom→England (verify?)
 * 16) For now, we can continue to use the logic from the AllCountrySidebar template to display all the associated Topic pages, but after those are built with Cargo, we can use Cargo to query/show them (note, the Array extension may stop working in the future)
 * 17) We can use the #formredlink function to have uncreated topic pages shown as redlinks and then use the form to create them (maybe even use the userfunctions to hide the redlinks from all but admins or some level of signed in user?)