Difference between revisions of "Form:Ontological Topic"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Undo revision 16825 by Hakob Barseghyan (talk))
Tag: Undo
Line 13: Line 13:
 
-->{{#vardefine: varTerm|{{#urldecode:{{#urlget:Term|}}}}|}}<!--
 
-->{{#vardefine: varTerm|{{#urldecode:{{#urlget:Term|}}}}|}}<!--
 
-->{{#if: {{IfObjectExists|category=Definitional Topic|object={{#var: varTerm}}|}}<!--
 
-->{{#if: {{IfObjectExists|category=Definitional Topic|object={{#var: varTerm}}|}}<!--
  -->|{{#vardefine: varTermGiven|yes}}<!-- term is given: set the flag
+
  -->|<!-- all good
  -->|{{#vardefine: varTermGiven|no}}<!-- term is not given: set the flag
+
  -->|{{#vardefine: varTerm|{{#show:{{FULLPAGENAME}}|?Term|link=none}}|}}<!-- term is not given in the URL: retrieve current value
 
-->}}<!--
 
-->}}<!--
 
--><!--
 
--><!--
 
-->{{#vardefine: varQuestionType|{{#urldecode:{{#urlget:QuestionType|}}}}|}}<!--
 
-->{{#vardefine: varQuestionType|{{#urldecode:{{#urlget:QuestionType|}}}}|}}<!--
 +
-->{{#if: {{#var: varQuestionType}}<!--
 +
-->|<!-- all good
 +
-->|{{#vardefine: varQuestionType|{{#show:{{FULLPAGENAME}}|?Ontological Question Type|link=none}}|}}<!-- question type is not given in the URL: retrieve current value
 +
-->}}<!--
 
--><!--
 
--><!--
 
-->
 
-->
Line 25: Line 29:
 
{| class="formtable"
 
{| class="formtable"
 
!width="30%"| Term: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">What term (class) is this ontological question about? If the term is not in the list, please first add it in the Definitional Topic category.</p>
 
!width="30%"| Term: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">What term (class) is this ontological question about? If the term is not in the list, please first add it in the Definitional Topic category.</p>
|width="70%"|<!--
+
|width="70%"|{{#var:varTerm|}} {{{field|Term|hidden|default={{#var:varTerm|}}|}}}
-->{{#ifeq: {{#var:varTermGiven}}|yes<!--
 
-->|{{#var:varTerm|}}<!--
 
  -->{{{field|Term|hidden|default={{#var:varTerm|}}|}}}<!--
 
-->|{{{field|Term|input type=dropdown|existing values only|values from category=Definitional Topic|mandatory}}} <!--
 
-->}}
 
 
|-  
 
|-  
 
! Question Type: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Ontological questions can concern the existence of the a class, its subtypes or supertypes, or its associations (aggregation, composition).</p>
 
! Question Type: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Ontological questions can concern the existence of the a class, its subtypes or supertypes, or its associations (aggregation, composition).</p>
|<!--
+
|{{#var:varQuestionType|}} {{{field|Ontological Question Type|hidden|default={{#var:varQuestionType|}}|}}}
-->{{#if: {{#var:varQuestionType}}<!--
 
-->|{{#var:varQuestionType|}}<!--
 
  -->{{{field|Ontological Question Type|hidden|default={{#var:varQuestionType|}}|}}}<!--
 
-->|{{{field|Ontological Question Type|input type=dropdown|mandatory|values=Existence, Subtypes, Supertypes, Associations|default=Existence}}} <!--
 
-->}}
 
 
|-
 
|-
 
! Description: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Provide some detail here and explain the importance of the question at issue. This section can include the usual wiki markup.</p>
 
! Description: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Provide some detail here and explain the importance of the question at issue. This section can include the usual wiki markup.</p>

Revision as of 18:20, 17 December 2022

This is the form used to create/edit all ontological questions - those of existence of X, subtypes/supertypes of X, and associations of X. it expects the following parameters passed onto the query string in the following format:

query string=
 Term= //the name of the term
 &
 QuestionType= // the type of the question from this list {Existence,Subtypes,Supertypes,Associations}