User:Tdoyle/Sandbox17

From WRG
Jump to navigationJump to search

Q: How can we create a system to obtain a list of all Whitneys listed on the Family Group Sheets who don't have pages of their own?

A: Write a script

  1. Have it parse all pages in the Family: namespace
  2. Have it look for all children who are not linked
  3. Save their names, pages they are listed on, and hopefully b. & d. info
  4. Sort the list by given name
  5. Output the results to one long page with section headers for given name
  6. Include the appropriate section on the Given Name pages

Run the script periodically and have the script just overwrite the long page.

To find the children's b. & d. info, search the page content:

  • after their names
  • before the next child or end of children
  • search for text after b.
  • but before a comma or semicolon (or period?)
  • search for 4 numbers together