Page Schemas

From Synthesis Infrastructures

Discord

sneakers-the-rat#discourse-modeling22-11-12 18:36:37

Info on using Page Schemas: So you could only need to make schemas for the different types of nodes that you'd want, so if i'm reading right then yes you would have several hundred pages but only 4-5 schemas.

A schema is defined (using page schemas) from a Category Page

A page is only ever loosely connected to a schema (rather than strictly, ie. can only have/requires the schema's fields) through its categ

sneakers-the-rat#discourse-modeling22-11-12 18:39:00

Info on using Page Schemas: So you could only need to make schemas for the different types of nodes that you'd want, so if i'm reading right then yes you would have several hundred pages but only 4-5 schemas.

A schema is defined (using page schemas) from a Category Page

A page is only ever loosely connected to a schema (rather than strictly, ie. can only have/requires the schema's fields) through its category. Page schemas then generates a template for the category. Typically templates will add a page to a category anyway ([ [Category:CategoryName] ]). So a page can have multiple schemas - that would just look like using multiple templates on the same page.


Creating a new Schema

sneakers-the-rat#discourse-modeling22-11-12 19:32:48

Page Schemas#Creating a new Schema Page schemas is mostly a handy way to generate boilerplate templates and link them to semantic properties. A Form (using Page Forms is something that is an interface for filling in values for a template.

For an example of how this shakes out, see Category:Participant Template:Participant Form:Participant

  • go to a `Category:CategoryName` page, creating it if it doesn't already exist.
  • Click "Create schema" in top right
  • If you want a form, check the "Form" box. it is possible to make a schema without a form. The schema just defines what pages will be generated, and the generated pages can be further edited afterwards (note that this might make them inconsistent with the schema)
  • Click "add template" If you are only planning on having one template per category, name the template the same thing as the category.
  • Add fields! Each field can have a corresponding form input (with a type, eg. a textbox, token input, date selector, etc.) and a semantic property.
  • Once you're finished, save the schema
  • Click "Generate pages" on the category page. Typically you want to uncheck any pages that are already bluelinks so you don't overwrite them. You might have to do the 'generate pages' step a few times, and it can take a few minutes, bc it's pretty buggy.