Difference between revisions of "Category:FAQ"
Jump to navigation
Jump to search
(modified by JSMW_PageSchema at 2015-01-07T09:34:01Z) |
(generated with [https://github.com/WolfgangFahl/JSMW_PageSchema JSMW_PageSchema Version 0.0.3] at 2015-03-21T07:07:38Z) |
||
(34 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <PageSchema category="FAQ"> | + | <PageSchema category="FAQ" name="FAQ" pluralName="FAQs"> |
− | <semanticforms_Form name="FAQ"/> | + | <semanticforms_Form name="FAQ" pluralName="FAQs"/> |
− | <Template name="FAQ" format="standard"> | + | <Template name="FAQ" pluralName="FAQs" format="standard"> |
− | <Field name="question"> | + | <Field name="question" pluralName="questions"> |
<semanticforms_FormInput> | <semanticforms_FormInput> | ||
<InputType></InputType> | <InputType></InputType> | ||
− | <Parameter name="size">5000</Parameter> | + | <Parameter name="size" pluralName="sizes">5000</Parameter> |
+ | <Parameter name="mandatory" pluralName="mandatorys"></Parameter> | ||
</semanticforms_FormInput> | </semanticforms_FormInput> | ||
<Label>Question</Label> | <Label>Question</Label> | ||
− | <semanticmediawiki_Property name="FAQ_question"> | + | <semanticmediawiki_Property name="FAQ_question" pluralName="FAQ_questions"> |
<Type>Text</Type> | <Type>Text</Type> | ||
</semanticmediawiki_Property> | </semanticmediawiki_Property> | ||
</Field> | </Field> | ||
− | <Field name="askedOn"> | + | <Field name="askedOn" pluralName="askedOns"> |
<semanticforms_FormInput> | <semanticforms_FormInput> | ||
<InputType></InputType> | <InputType></InputType> | ||
− | <Parameter name="size">12</Parameter> | + | <Parameter name="size" pluralName="sizes">12</Parameter> |
</semanticforms_FormInput> | </semanticforms_FormInput> | ||
<Label>asked on</Label> | <Label>asked on</Label> | ||
− | <semanticmediawiki_Property name="FAQ_askedOn"> | + | <semanticmediawiki_Property name="FAQ_askedOn" pluralName="FAQ_askedOns"> |
<Type>Date</Type> | <Type>Date</Type> | ||
</semanticmediawiki_Property> | </semanticmediawiki_Property> | ||
</Field> | </Field> | ||
− | <Field name="askedBy"> | + | <Field name="askedBy" pluralName="askedBys"> |
<semanticforms_FormInput> | <semanticforms_FormInput> | ||
<InputType>ComboBox</InputType> | <InputType>ComboBox</InputType> | ||
− | <Parameter name="size">80</Parameter> | + | <Parameter name="size" pluralName="sizes">80</Parameter> |
</semanticforms_FormInput> | </semanticforms_FormInput> | ||
<Label>asked by</Label> | <Label>asked by</Label> | ||
− | <semanticmediawiki_Property name="FAQ_askedBy"> | + | <semanticmediawiki_Property name="FAQ_askedBy" pluralName="FAQ_askedBys"> |
<Type>Page</Type> | <Type>Page</Type> | ||
</semanticmediawiki_Property> | </semanticmediawiki_Property> | ||
</Field> | </Field> | ||
− | <Field name="answer"> | + | <Field name="answer" pluralName="answers"> |
<semanticforms_FormInput> | <semanticforms_FormInput> | ||
<InputType></InputType> | <InputType></InputType> | ||
− | <Parameter name="size">5000</Parameter> | + | <Parameter name="size" pluralName="sizes">5000</Parameter> |
</semanticforms_FormInput> | </semanticforms_FormInput> | ||
<Label>Answer</Label> | <Label>Answer</Label> | ||
− | <semanticmediawiki_Property name="FAQ_answer"> | + | <semanticmediawiki_Property name="FAQ_answer" pluralName="FAQ_answers"> |
<Type>Text</Type> | <Type>Text</Type> | ||
</semanticmediawiki_Property> | </semanticmediawiki_Property> | ||
Line 44: | Line 45: | ||
</Template> | </Template> | ||
</PageSchema> | </PageSchema> | ||
− | + | === UML === | |
− | + | <!-- Plantuml --> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<uml> | <uml> | ||
− | + | title FAQ | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | title | ||
note as FAQDiagramNote | note as FAQDiagramNote | ||
Copyright (c) 2015 BITPlan GmbH | Copyright (c) 2015 BITPlan GmbH | ||
[[http://www.bitplan.com]] | [[http://www.bitplan.com]] | ||
end note | end note | ||
− | note as FAQNote | + | note as FAQNote |
I represent a Frequently asked question | I represent a Frequently asked question | ||
end note | end note | ||
− | + | class FAQ <<Category>> { | |
− | + | ' no category question Question | |
Text Question | Text Question | ||
+ | ' no category askedOn asked on | ||
Date asked on | Date asked on | ||
+ | ' no category askedBy asked by | ||
Page asked by | Page asked by | ||
+ | ' no category answer Answer | ||
Text Answer | Text Answer | ||
− | |||
} | } | ||
− | hide | + | FAQNote .. FAQ |
+ | skinparam classBackgroundColor white | ||
+ | skinparam classBorderColor #FF8000 | ||
+ | skinparam classFontColor black | ||
+ | skinparam classFontSize 12 | ||
+ | skinparam classFontName Arial | ||
+ | skinparam NoteBorderColor #FF8000 | ||
+ | skinparam NoteBackgroundColor #FFFFF0 | ||
+ | hide circle | ||
</uml> | </uml> | ||
+ | === Documentation === | ||
+ | The Frequently asked Questions on this site are based on the PageSchema shown below<br> | ||
+ | |||
+ | === Concept === | ||
+ | {{Concept | ||
+ | |name=FAQ | ||
+ | }} | ||
+ | === Links === | ||
+ | * [[List of FAQs]] | ||
+ | * [[Concept:FAQ]] | ||
+ | * [[:Category:FAQ]] | ||
+ | * [[:Template:FAQ]] | ||
+ | * [[:Form:FAQ]] | ||
+ | ====Properties ==== | ||
+ | * [[Property:FAQ_question]] | ||
+ | * [[Property:FAQ_askedOn]] | ||
+ | * [[Property:FAQ_askedBy]] | ||
+ | * [[Property:FAQ_answer]] | ||
+ | === Java Source code to generate FAQ Category === | ||
+ | <br><source lang='java'> PageSchemaManager psm = new PageSchemaManager(); | ||
+ | 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 = "The Frequently asked Questions on this site are based on the PageSchema shown below<br>\n"; | ||
+ | String exampleSource = ""; // paste source code here | ||
+ | faqPageSchema | ||
+ | .setWikiDocumentation(wikiDocumentation, exampleSource, "java","=== Java Source code to generate FAQ Category ==="); | ||
+ | faqPageSchema | ||
+ | .setUmlDocumentation("I represent a Frequently asked question"); | ||
+ | |||
+ | psm.update(this.getWiki());</source> | ||
+ | This example source code works with [https://github.com/WolfgangFahl/JSMW_PageSchema JSMW_PageSchema Version 0.0.3]<br> | ||
+ | <br> | ||
+ | [[Category:PageSchema]]This Category has been generated with [https://github.com/WolfgangFahl/JSMW_PageSchema JSMW_PageSchema Version 0.0.3] at 2015-03-21T07:07:38Z<br> |
Latest revision as of 08:07, 21 March 2015
<PageSchema category="FAQ" name="FAQ" pluralName="FAQs">
<semanticforms_Form name="FAQ" pluralName="FAQs"/> <Template name="FAQ" pluralName="FAQs" format="standard"> <Field name="question" pluralName="questions"> <semanticforms_FormInput> <InputType></InputType> <Parameter name="size" pluralName="sizes">5000</Parameter> <Parameter name="mandatory" pluralName="mandatorys"></Parameter> </semanticforms_FormInput> <Label>Question</Label> <semanticmediawiki_Property name="FAQ_question" pluralName="FAQ_questions"> <Type>Text</Type> </semanticmediawiki_Property> </Field> <Field name="askedOn" pluralName="askedOns"> <semanticforms_FormInput> <InputType></InputType> <Parameter name="size" pluralName="sizes">12</Parameter> </semanticforms_FormInput> <Label>asked on</Label> <semanticmediawiki_Property name="FAQ_askedOn" pluralName="FAQ_askedOns"> <Type>Date</Type> </semanticmediawiki_Property> </Field> <Field name="askedBy" pluralName="askedBys"> <semanticforms_FormInput> <InputType>ComboBox</InputType> <Parameter name="size" pluralName="sizes">80</Parameter> </semanticforms_FormInput> <Label>asked by</Label> <semanticmediawiki_Property name="FAQ_askedBy" pluralName="FAQ_askedBys"> <Type>Page</Type> </semanticmediawiki_Property> </Field> <Field name="answer" pluralName="answers"> <semanticforms_FormInput> <InputType></InputType> <Parameter name="size" pluralName="sizes">5000</Parameter> </semanticforms_FormInput> <Label>Answer</Label> <semanticmediawiki_Property name="FAQ_answer" pluralName="FAQ_answers"> <Type>Text</Type> </semanticmediawiki_Property> </Field> </Template>
</PageSchema>
UML
Documentation
The Frequently asked Questions on this site are based on the PageSchema shown below
Concept
Links
Properties
Java Source code to generate FAQ Category
PageSchemaManager psm = new PageSchemaManager();
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 = "The Frequently asked Questions on this site are based on the PageSchema shown below<br>\n";
String exampleSource = ""; // paste source code here
faqPageSchema
.setWikiDocumentation(wikiDocumentation, exampleSource, "java","=== Java Source code to generate FAQ Category ===");
faqPageSchema
.setUmlDocumentation("I represent a Frequently asked question");
psm.update(this.getWiki());
This example source code works with JSMW_PageSchema Version 0.0.3
This Category has been generated with JSMW_PageSchema Version 0.0.3 at 2015-03-21T07:07:38Z
Pages in category "FAQ"
This category contains only the following page.