Difference between revisions of "Category:FAQ"

From BITPlan mediawiki-japi Wiki
Jump to navigation Jump to search
(modified by JSMW_PageSchema at 2015-01-07T09:27:56Z)
(modified by JSMW_PageSchema at 2015-01-07T09:34:01Z)
Line 45: Line 45:
 
</PageSchema>
 
</PageSchema>
 
[[Category:PageSchema]]
 
[[Category:PageSchema]]
This Category has been generated with [https://github.com/WolfgangFahl/JSMW_PageSchema JSMW_PageSchema Version 0.0.2] at 2015-01-07T09:27:56Z<br>
+
This Category has been generated with [https://github.com/WolfgangFahl/JSMW_PageSchema JSMW_PageSchema Version 0.0.2] at 2015-01-07T09:34:01Z<br>
 
The following results are based on it:  
 
The following results are based on it:  
 
* [[:Category:FAQ]]<br>
 
* [[:Category:FAQ]]<br>
 
* [[:Template:FAQ]]<br>
 
* [[:Template:FAQ]]<br>
 
* [[:Form:FAQ]]<br>
 
* [[:Form:FAQ]]<br>
 
+
The Frequently asked Questions on this site are based on the PageSchema shown below<br>
the example source code below shows how [https://github.com/WolfgangFahl/JSMW_PageSchema JSMW_PageSchema Version 0.0.2] generated this Category page<br><source lang='java'> PageSchemaManager psm=new PageSchemaManager();
+
This example source code works with [https://github.com/WolfgangFahl/JSMW_PageSchema JSMW_PageSchema Version 0.0.2]=== Java Source code to generate FAQ Category ===<br><source lang='java'></source><br>
  PageSchema faqPageSchema=new PageSchema(psm,"FAQ");
 
 
 
  Template faqTemplate = faqPageSchema.getDefaultTemplate();
 
  faqTemplate.addField("question","Question","Text","size=5000");
 
  faqTemplate.addField("askedOn","asked on","Date","size=12");
 
  faqTemplate.addField("askedBy","asked by","Page","ComboBox","size=80");
 
  faqTemplate.addField("answer","Answer","Text","size=5000");
 
 
 
  // FIXME add comment option
 
  String wikiDocumentation=""; // add the documentation here
 
  String exampleSource=""; // paste the full source here
 
  faqPageSchema.setWikiDocumentation(wikiDocumentation,exampleSource,"java");
 
  faqPageSchema.setUmlDocumentation("I represent a Frequently asked question");
 
 
 
  psm.update(this.getWiki());</source><br>
 
 
<uml>
 
<uml>
 
skinparam classBackgroundColor white
 
skinparam classBackgroundColor white

Revision as of 10:34, 7 January 2015

<PageSchema category="FAQ">

  <semanticforms_Form name="FAQ"/>
  <Template name="FAQ" format="standard">
     <Field name="question">
        <semanticforms_FormInput>
           <InputType></InputType>
           <Parameter name="size">5000</Parameter>
        </semanticforms_FormInput>
        <Label>Question</Label>
        <semanticmediawiki_Property name="FAQ_question">
           <Type>Text</Type>
        </semanticmediawiki_Property>
     </Field>
     <Field name="askedOn">
        <semanticforms_FormInput>
           <InputType></InputType>
           <Parameter name="size">12</Parameter>
        </semanticforms_FormInput>
        <Label>asked on</Label>
        <semanticmediawiki_Property name="FAQ_askedOn">
           <Type>Date</Type>
        </semanticmediawiki_Property>
     </Field>
     <Field name="askedBy">
        <semanticforms_FormInput>
           <InputType>ComboBox</InputType>
           <Parameter name="size">80</Parameter>
        </semanticforms_FormInput>
        <Label>asked by</Label>
        <semanticmediawiki_Property name="FAQ_askedBy">
           <Type>Page</Type>
        </semanticmediawiki_Property>
     </Field>
     <Field name="answer">
        <semanticforms_FormInput>
           <InputType></InputType>
           <Parameter name="size">5000</Parameter>
        </semanticforms_FormInput>
        <Label>Answer</Label>
        <semanticmediawiki_Property name="FAQ_answer">
           <Type>Text</Type>
        </semanticmediawiki_Property>
     </Field>
  </Template>

</PageSchema> This Category has been generated with JSMW_PageSchema Version 0.0.2 at 2015-01-07T09:34:01Z
The following results are based on it:

The Frequently asked Questions on this site are based on the PageSchema shown below

This example source code works with JSMW_PageSchema Version 0.0.2=== Java Source code to generate FAQ Category ===


Pages in category "FAQ"

This category contains only the following page.