Difference between revisions of "Category:Field"

From BITPlan mediawiki-japi Wiki
Jump to navigation Jump to search
(modified by JSMW_PageSchema at 2015-01-06T15:47:13Z)
Line 54: Line 54:
 
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 16:47, 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>
     </Field>
     <Field name="label">
        <semanticforms_FormInput>
           <InputType>Text</InputType>
           <Parameter name="size">80</Parameter>
        </semanticforms_FormInput>
        <Label>Label</Label>
     </Field>
     <Field name="form">
        <semanticforms_FormInput>
           <InputType>Page</InputType>
           <Parameter name="size">80</Parameter>
        </semanticforms_FormInput>
        <Label>Form</Label>
     </Field>
  </Template>

</PageSchema> This Category has been generated with JSMW_PageSchema Version 0.0.2 at 2015-01-06T15:47:13Z
It has the template: Template:Field
And the form: Form:Field
https://semantic-mediawiki.org/wiki/Help:List_of_datatypes

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());

Pages in category "Field"

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