Difference between revisions of "Category:Field"

From BITPlan mediawiki-japi Wiki
Jump to navigation Jump to search
(modified by JSMW_PageSchema at 2015-01-06T16:36:07Z)
Line 9: Line 9:
 
         </semanticforms_FormInput>
 
         </semanticforms_FormInput>
 
         <Label>Name</Label>
 
         <Label>Name</Label>
 +
        <semanticmediawiki_Property name="Field_name">
 +
            <Type>Text</Type>
 +
        </semanticmediawiki_Property>
 
       </Field>
 
       </Field>
 
       <Field name="label">
 
       <Field name="label">
Line 16: Line 19:
 
         </semanticforms_FormInput>
 
         </semanticforms_FormInput>
 
         <Label>Label</Label>
 
         <Label>Label</Label>
 +
        <semanticmediawiki_Property name="Field_label">
 +
            <Type>Text</Type>
 +
        </semanticmediawiki_Property>
 
       </Field>
 
       </Field>
 
       <Field name="form">
 
       <Field name="form">
Line 23: Line 29:
 
         </semanticforms_FormInput>
 
         </semanticforms_FormInput>
 
         <Label>Form</Label>
 
         <Label>Form</Label>
 +
        <semanticmediawiki_Property name="Field_form">
 +
            <Type>Page</Type>
 +
        </semanticmediawiki_Property>
 
       </Field>
 
       </Field>
 
   </Template>
 
   </Template>
 
</PageSchema>
 
</PageSchema>
 
[[Category:PageSchema]]
 
[[Category:PageSchema]]
This Category has been generated with JSMW_PageSchema Version 0.0.2 at 2015-01-06T15:47:13Z<br>
+
This Category has been generated with JSMW_PageSchema Version 0.0.2 at 2015-01-06T16:36:07Z<br>
 
It has the template: [[:Template:Field]]<br>
 
It has the template: [[:Template:Field]]<br>
 
And the form: [[:Form:Field]]<br>
 
And the form: [[:Form:Field]]<br>
https://semantic-mediawiki.org/wiki/Help:List_of_datatypes<br>
+
the name of the field will also be a property name so please make sure you follow the rule for [https://www.mediawiki.org/wiki/Manual:Page_title page title]s<br>
 
<uml>
 
<uml>
 
skinparam classBackgroundColor white
 
skinparam classBackgroundColor white
Line 54: Line 63:
 
hide  <<Category>> circle
 
hide  <<Category>> circle
 
</uml>
 
</uml>
<source lang='java'>
 
PageSchema fieldPageSchema = new PageSchema("Field");
 
fieldPageSchema.setUmlDocumentation("a container for single piece of data");
 
fieldPageSchema.setWikiDocumentation("https://semantic-mediawiki.org/wiki/Help:List_of_datatypes");
 
Template fieldTemplate=fieldPageSchema.getDefaultTemplate();
 
fieldTemplate.addField("name","Name","Text","size=80");
 
fieldTemplate.addField("label","Label","Text","size=80");
 
fieldTemplate.addField("form","Form","Page","size=80");
 
  formTemplate.addField("formInput", "FormInput", "Page", "size=80");
 
fieldPageSchema.update(this.getWiki());
 
</source>
 

Revision as of 18:36, 6 January 2015

<PageSchema>

  <category>Field</category>
  <semanticforms_Form name="Field"/>
  <Template name="Field" format="standard">
     <Field name="name">
        <semanticforms_FormInput>
           <InputType>Text</InputType>
           <Parameter name="size">80</Parameter>
        </semanticforms_FormInput>
        <Label>Name</Label>
        <semanticmediawiki_Property name="Field_name">
           <Type>Text</Type>
        </semanticmediawiki_Property>
     </Field>
     <Field name="label">
        <semanticforms_FormInput>
           <InputType>Text</InputType>
           <Parameter name="size">80</Parameter>
        </semanticforms_FormInput>
        <Label>Label</Label>
        <semanticmediawiki_Property name="Field_label">
           <Type>Text</Type>
        </semanticmediawiki_Property>
     </Field>
     <Field name="form">
        <semanticforms_FormInput>
           <InputType>Page</InputType>
           <Parameter name="size">80</Parameter>
        </semanticforms_FormInput>
        <Label>Form</Label>
        <semanticmediawiki_Property name="Field_form">
           <Type>Page</Type>
        </semanticmediawiki_Property>
     </Field>
  </Template>

</PageSchema> This Category has been generated with JSMW_PageSchema Version 0.0.2 at 2015-01-06T16:36:07Z
It has the template: Template:Field
And the form: Form:Field
the name of the field will also be a property name so please make sure you follow the rule for page titles

Pages in category "Field"

The following 2 pages are in this category, out of 2 total.