Difference between revisions of "Making semantic forms"

From Sun Myung Moon Archive
 
(27 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
*See also [[MediaWiki logbook]]  
 
*See also [[MediaWiki logbook]]  
  
==List of pages used for making a form and infobox for the Private: namespace==
+
==List of pages used to make forms==
 +
<div class="toccolours mw-collapsible mw-collapsed" style="width:600px">
 +
===Add pr file===
 
*[[Form:Private databox]]
 
*[[Form:Private databox]]
**[[Template:Private databox]]
+
*[[Template:Private databox]]
**[[Private:Owner]]
+
*[[Private:Test for Private databox]]
**[[Private:Testpage to check the formlink]]
+
===Create biography===
**[[:Category:Private page with databox]]
+
*[[Form:Infobox person]]
*[[Form:Model]]
+
*[[Template:Infobox person]]
**[[Template:Model]]
+
*[[Template:Sections biography]]
**Various properties, see [[Special:Properties]]
+
*[[Test for biography pages]]
 +
===Create concepts page===
 +
*[[Form:Theological concepts]]
 +
*[[Template:Theological concepts]]
 +
*[[Test for Theological concepts pages]]
 +
*[[Create concepts page]]
 +
===Create event page===
 +
*[[Form:Event page]]
 +
*[[Template:Event page]]
 +
*[[Template:Sections event page]]
 +
*[[Test for event pages]]
 +
===Create organizations page===
 +
*[[Form:Organizations]]
 +
*[[Template:Organizations]]
 +
*[[Template:Sections Organizations]]
 +
*[[Test for Organizations]]
 +
===Queries===
 +
*[[Querying SMW data]]
 +
===Special pages===
 
*[[Special:CreateCategory]]
 
*[[Special:CreateCategory]]
 
*[[Special:CreateClass]]
 
*[[Special:CreateClass]]
Line 18: Line 38:
 
*[[Special:RunQuery]]
 
*[[Special:RunQuery]]
 
*[[Special:FormStart]]
 
*[[Special:FormStart]]
 +
</div>
  
 
==Logbook==
 
==Logbook==
Line 25: Line 46:
 
*In the file LocalSettings.php in the main MediaWiki directory, add the following line below the Semantic MediaWiki extension line (both the main 'include_once' line and the 'enableSemantics' line):
 
*In the file LocalSettings.php in the main MediaWiki directory, add the following line below the Semantic MediaWiki extension line (both the main 'include_once' line and the 'enableSemantics' line):
 
  include_once "$IP/extensions/SemanticForms/SemanticForms.php";
 
  include_once "$IP/extensions/SemanticForms/SemanticForms.php";
 +
--[[User:DivineCriticizer|DivineCriticizer]]
  
 
====Using <nowiki>#forminput</nowiki> to make new pages with a form====
 
====Using <nowiki>#forminput</nowiki> to make new pages with a form====
Line 32: Line 54:
 
   
 
   
 
:<code><nowiki>{{#forminput:form=|size=|default value=|button text=|query string=''query string parameters''|autocomplete on category=|autocomplete on namespace=|remote autocompletion|placeholder=|popup}}</nowiki></code>
 
:<code><nowiki>{{#forminput:form=|size=|default value=|button text=|query string=''query string parameters''|autocomplete on category=|autocomplete on namespace=|remote autocompletion|placeholder=|popup}}</nowiki></code>
 +
--[[User:DivineCriticizer|DivineCriticizer]]
  
 
===160618===
 
===160618===
 
====Combobox input in form====
 
====Combobox input in form====
 
*We added the code <code>input type=combobox</code> to the field definition in the [[Form:Private databox]] page in the field <code>Copyright status</code>. The combobox works.<ref>[https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Combobox_input MediaWiki>Semantic forms>Combobox input]</ref>
 
*We added the code <code>input type=combobox</code> to the field definition in the [[Form:Private databox]] page in the field <code>Copyright status</code>. The combobox works.<ref>[https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Combobox_input MediaWiki>Semantic forms>Combobox input]</ref>
 +
--[[User:DivineCriticizer|DivineCriticizer]]
 
====Making a model class====
 
====Making a model class====
 
:''This was done so we can see the codes that are generated for each of the fields that were made with different properties, types and values. To see this, go to the various pages based on the class 'Model' (for example [[Form:Model]], [[Template:Model]], and the test page made based on this model [[Testing the Model form]]).''<br>
 
:''This was done so we can see the codes that are generated for each of the fields that were made with different properties, types and values. To see this, go to the various pages based on the class 'Model' (for example [[Form:Model]], [[Template:Model]], and the test page made based on this model [[Testing the Model form]]).''<br>
 
[[File:Create a class Model.JPG|300px]]
 
[[File:Create a class Model.JPG|300px]]
 +
--[[User:DivineCriticizer|DivineCriticizer]]
 
=====Make a page with the Model form=====
 
=====Make a page with the Model form=====
 
Make such a <code>Page</code> by entering the name of the page you wish to make, or the name of an already existing page. Then click 'create or edit'.
 
Make such a <code>Page</code> by entering the name of the page you wish to make, or the name of an already existing page. Then click 'create or edit'.
 
{{#forminput:form=Model|size=|default value=|button text=|query string=query string parameters|autocomplete on category=|autocomplete on namespace=|remote autocompletion|placeholder=|new tab}}
 
{{#forminput:form=Model|size=|default value=|button text=|query string=query string parameters|autocomplete on category=|autocomplete on namespace=|remote autocompletion|placeholder=|new tab}}
 +
--[[User:DivineCriticizer|DivineCriticizer]]
 +
 +
===160619===
 +
====Making help page for Adding a private file====
 +
*See [[Private:Help:Making a private page with a form]]
 +
--[[User:DivineCriticizer|DivineCriticizer]]
  
 
== References ==
 
== References ==
Line 52: Line 83:
 
*[https://www.youtube.com/watch?v=2_HF73hH7JE Video Yaron Koren - Semantic Forms, SMWCon Fall 2013]
 
*[https://www.youtube.com/watch?v=2_HF73hH7JE Video Yaron Koren - Semantic Forms, SMWCon Fall 2013]
  
[[Category:Wiki things]]
+
[[Category:Assist]]

Latest revision as of 21:38, 16 July 2015

This page documents making semantic forms in this wiki.

List of pages used to make forms

Logbook

160717

Extension added

  • Activated in Semantic Bundle
  • In the file LocalSettings.php in the main MediaWiki directory, add the following line below the Semantic MediaWiki extension line (both the main 'include_once' line and the 'enableSemantics' line):
include_once "$IP/extensions/SemanticForms/SemanticForms.php";

--DivineCriticizer

Using #forminput to make new pages with a form

See more here:[1]

Make a new page by entering the name of an already existing or new page. Then click 'create or edit' and the form will be added to the new or existing page.

  • Form=Name of form
{{#forminput:form=|size=|default value=|button text=|query string=''query string parameters''|autocomplete on category=|autocomplete on namespace=|remote autocompletion|placeholder=|popup}}

--DivineCriticizer

160618

Combobox input in form

  • We added the code input type=combobox to the field definition in the Form:Private databox page in the field Copyright status. The combobox works.[2]

--DivineCriticizer

Making a model class

This was done so we can see the codes that are generated for each of the fields that were made with different properties, types and values. To see this, go to the various pages based on the class 'Model' (for example Form:Model, Template:Model, and the test page made based on this model Testing the Model form).

Create a class Model.JPG --DivineCriticizer

Make a page with the Model form

Make such a Page by entering the name of the page you wish to make, or the name of an already existing page. Then click 'create or edit'.

 

--DivineCriticizer

160619

Making help page for Adding a private file

--DivineCriticizer

References

External links to pages that we used