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)
 * 5) Template:Language list (Beta: Template:Language list
 * 6) Template:Region lookup (Beta: Template:Region lookup
 * Category:CountrySidebars (Beta: Category:CountrySidebars)
 * 1) Beta: Wake Island Genealogy (reverted)
 * 2) Beta: Wake Island Cemeteries

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 (needed?)
 * 13) Note, some countries (China, Taiwan, 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: Topic list)
 * 7) * The list was generated from the topics on the England Medical Records page, but should be updated with any missing topics
 * 8) ** Use the AllCountrySidebar as master list
 * 9) ** "Poorhouses, Poor Law, etc." should just be "Poor Law"
 * 10) Need to remove some characters from the Page Name (  and  )
 * 11) * Can use DisplayTitle to show them
 * 12) * Other jurisdiction pages may have additional characters ( and  ) we need to handle similarly
 * 13) * 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)
 * 14) Might need to explain Language Word Lists, but likely should be added to the Country Page Form
 * 15) * There is a Standardized Topic Pages for Sidebars spreadsheet with a tab for Language Lists and another for Genealogical Word Lists to Make
 * 16) Breadcrumbs
 * 17) * For Topic Pages, we should be fine with the information we have (verify)
 * 18) * For Country page, we need the sequence for each country. With England as the example: Europe→British Isles→United Kingdom→England (verify we can grab an example page for us and there's no gotchas?)
 * 19) ** Pull Breadcrumbs out of sidebar template
 * 20) 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)
 * 21) 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?)
 * 22) What about "Shipping and Shipwrecks" Topic Type?  It's not on the AllCountrySidebar template, but on some pages (e.g. England Cemeteries)
 * 23) The way it's set-up now, it will overwrite pages that already exist when using the formlink to create a "new" page, but the Country or Country/Topic already exist.  This is likely fine for the country level since we aren't creating anything new, only changing the current template to the new one.  For all the jurisdictions and sub-jurisdictions, we should discuss their structure (same as country with jurisdiction page and jurisdiction topic pages?) and how they would be created.  Maybe ideally they are only created via #formredlink.
 * 24) * This is solved by making the page creation unique (adds a number and warning otherwise)
 * 25) * This was updated so if the page already exists, it adds a number (usually "2") to the end of the new page name and throws a warning (example)
 * 26) Is "FamilySearch Region" needed?  If it's just "Africa, Asia, Australia/Oceania, Europe, North America, or South America", can't we just assign it based on selected Country?
 * 27) For the Dates ("Incorporation/Start" & "Current or End Date"), should these be multiple instance templates with fields?  For example:
 * 28) * Type - Incorporation, End, Other?
 * 29) * Date - Date of above
 * 30) * Notes
 * 31) * Maybe End should be a radio button?
 * 32) Are there a list of moderators?
 * 33) Is "Languages spoken" related to "Word lists"?  Is there a list of Languages to choose from?
 * 34) Is "Place ID" required?  If so, is there a list?