User:Hazeldee0512/My sandbox3

Intro goes here

Helpful links

 * Introduction to Semantic MediaWiki
 * Semantic forms, quick start guide
 * Defining forms
 * Form field types
 * Form input types
 * Linking to forms
 * Properties and types
 * Inline queries - using the ask and show parser functions for queries
 * Example of query


 * SMW quick reference
 * Create class - quickly create properties, forms, templates and category pages

Fields with multiple values

 * Multiple values for the same field

Defining a page name

 * Two-step process
 * uses #forminput
 * user inputs a page title
 * doesn't override an existing page
 * opens the "edit with form" edit box if page already exists
 * One-step process
 * uses #formlink


 * includes just a "create page" button


 * Defining a page name from the input that is directly on the form page (before completing the form)



Adding an "Add" button to a form
1. Code used in the form:
 * AddFieldName = the name of the field that will be used within the Main template that formats the form page. This is placed where you want the "Add" button to appear.
 * AddFieldName = the name of the field that will be used within the Main template that formats the form page. This is placed where you want the "Add" button to appear.


 * }
 * AddTemplateName = the name of the template that will hold code for the field that is being used on the form.
 * This code can be placed at the bottom of the form code, but muas it want appear


 * This should to be placed at the end of the form code, but must appear after the template in which it will be embedded.
 * This should to be placed at the end of the form code, but must appear after the template in which it will be embedded.

2. Code used in the AddTemplate:
 * This template code uses the field names that given between for template and end template

3. Code used in the MainTemplate:
 * This template code uses the AddFieldNames that given in  {{field|AddFieldName....  in the form code.

Query links

 * 1) SuccessQuery
 * 2) KSU query

Examples

 * Form:Multiple-instance templates example
 * Form:Multiple-instance templates example2

Properties
OneWiki change requests::PHP upgrade
 * Example

NOTE: The word "link" appears as a red link because the property does not exist. The PHP upgrade does not appear as a red link, because the "OneWiki change requests" is an existing property.