Familypedia
Forums: Index > Help desk > Subpage links in Form:Person


Robin has reported that the "create/update sensor page" link is sometimes missing from the Form:Person. This leads to a review of the logic, and some test.

The logic in the form works is implemented in {{showfacts formbuttons}} via these cases:

  1. if the page doesn't exist (test with an SMW query for Property:Modification date), show the links for "simple" and "advanced" forms (since it is futile to create the subpages before the main page).
  2. otherwise (the page exists) so show the links for "simple" and "advanced" forms, and then:
    • check (SMW query) that Property:Sex is set. If so:
      1. show "Edit children facts" (N.B. this should be removed, since partial forms no longer work)
      2. if the /sensor page exists (SMW query), show a link to Special:FormEdit, otherwise show "#formlink" to create the subpage
    • if the /tree page does not exist (SMW query), show "#formlink" to create the subpage [so no link if it exists]
    • if the /descendants page does not exist (SMW query), show "#formlink" to create the subpage [so no link if it exists]

Note that the "rename/redirect" SMW bug will cause the "SMW query" to fail in various cases.

So the "create/update sensor page" link will not appear if the SMW query says that the target page does not exist, or if the target page exists and the Property:Sex is not returned by the query.

Here are some sample cases:

Scenario Example link Links on form as expected?
"Normal case" page and subpages exist Alfred Ernest Mitchell (1910-1940) Edit without form, Advanced form, children facts, Update/Create Sensor page yes
"Normal case" - no subpages Axel Ivarson (1802-1847) Edit without form, Advanced form, children facts, Update/Create Sensor page, Create tree, Create descendants yes
Sex not set, /tree subpage only Unknown de Bourgogne (bef622-) Edit without form, Advanced form, Create descendants (NB no sensor) yes
Non-SMW page Athol Owen Mitchell (1912-1975) Edit without form, Advanced form, Create tree, Create descendants (NB no sensor) yes
Page does not exist Eveleen Veronica Dennis (1914-2006) Edit without form, Advanced form yes

Thurstan (talk) 04:27, January 3, 2018 (UTC)

Thank you very much. And some of us remember when the most complicated thing to remember in genealogy was the difference between microfiche and microfilm. This oldtimer now thinks there should be a refresher course in what to do if you create a redirect to a person page. -- Robin Patterson (Talk) 20:19, January 5, 2018 (UTC)