SR Test

From Referata scratchpad
Jump to: navigation, search

This test derived from an attempt to generate an outline with nested properties:
Category-A pages have a property, catb, with Category-B page values
Category-B pages have a property, catc, with Category-C page values

I want an outline with the following structure

  • Category-C page 1
    • Category-B pages with catc=(Category-C page 1)
      • Category-A pages with catb=(Category-B page with catc=(Category-C page 1))
  • Category-C page 2
etc.

I have two-level category hierarchy outlines working fine but I don't understand this technology well enough to figure it out for more than two-levels.

Before I could address the outline problem I wanted to see how to access a Page-type property's property. That brought me to this test. It has 8 pages not counting this one.

  • Property:catc has type text. In my outline problem this would be another page but I tried to simplify things here.
  • B1 has property catc = C1
  • There are three templates that attempt to set their page's catc property from arg-1's catc property. All of them set their catb property to arg-1.
    • Template:BuildI attempts to set the page's catc property from the arg-1's catc property using
      [[catc::{{#show{{{1}}}|?catc}}]]
      Result: Catc is never set and does not show up in the Facts section. In the table cell where Catc is set, the following text is displayed: [[catc::C1]]
    • Template:BuildII attempts to set the page's catc property from the 1st arg-1's catc property using
      {{#set:catc={{#show:{{{1}}}|?catc}}}}
      Result: Catc's value in the Facts section has the warning message: ":C1|C1" cannot be used as a page name in this wiki.
    • Template:BuildIII attempts to set the page's catc property from the 1st arg-1's catc property using
      {{#set:catc={{#show:{{#show:{{PAGENAME}}|?catb}}|?catc}}}}
      Result: This approach seems most natural but {{#show:{{#show:{{PAGENAME}}|?catb}}|?catc}} gives the warning message: The symbol "" was used in a place where it is not useful. The part "" of the query was not understood. Results might not be as expected.
  • Test I has {{BuildI|B1}}
  • Test II has BuildII|B1}}
  • Test III has BuildIII|B1}}