Okay, so for birthDate / deathDate, you can directly set this with a "Microdata property" value of "birthDate" or "deathDate" on a custom field that accepts dates.
However, schema.org defines that affiliation has a type of Organization, so you can't set it with a scalar value that the user can pick. Instead, you have to drill down to one of its other values, like "name" which is a generic property. So to set the name of the affiliation, your "Microdata property" value would be:
Code:
affiliation:Organization > name
This tells VaultWiki that we need to use the custom field to fill "name". And to put name underneath the "affiliation" property of the page, if it exists (if the page is a "Person", then it will). When validating / generating, we need to include that "affiliation" is supposed to be an "Organization", because it's not a scalar schema.org type.
For "knowsAbout", this is a little tricky because it accepts various values. Basically, for the purposes of your custom field, you need to choose. If you're going to use the Text or URL schema, then it's pretty straightforward:
But you may want to use "knowsAbout" to point to another "Thing". Again, since Thing is a type, you need to specify a sub-property. For simple discussion, we'll choose the generic "name" again, (although in the real world that would be redundant and unnecessarily complicated since "knowsAbout" already takes Text as a value)
Code:
knowsAbout:Thing > name
For more complex use... since "knowsAbout" can take a Thing, it can really be used for anything, like:
Code:
knowsAbout:Movie > actor:Person > name
In this case, you would be saying the Person the wiki page is about, "knowsAbout" a Movie. In that movie, there is an "actor" (who is a Person) and their "name" is the value of the custom field.
You can do a lot with this, but it can get a little overwhelming for your wiki editors if you put too many fields, so try to keep it to the ones you actually need.
Bookmarks