Difference between revisions of "Form:Theory"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
query string=
 
query string=
  Theory[Topic]= //the topic.
+
  Theory[Topic]= //the topic
 
</pre>
 
</pre>
  
Line 15: Line 15:
 
  -->|{{#vardefine: varTopic|{{#show:{{FULLPAGENAME}}|?Topic|link=none}}|}}<!-- topic is not given: get the current value
 
  -->|{{#vardefine: varTopic|{{#show:{{FULLPAGENAME}}|?Topic|link=none}}|}}<!-- topic is not given: get the current value
 
-->}}<!--
 
-->}}<!--
 +
--><!--
 +
--><!-- get the topic's properties
 +
-->{{#vardefine: varSubject|{{#show:{{#var: varTopic}}|?Subject|link=none}}|}}<!--
 +
-->{{#vardefine: varPredicate|{{#show:{{#var: varTopic}}|?Predicate|link=none}}|}}<!--
 +
-->{{#vardefine: varObjectType|{{#show:{{#var: varTopic}}|?Object Type|link=none}}|}}<!--
 +
-->{{#if: {{#var: varObjectType}}||{{#vardefine: varObjectType|Text}}}}<!-- default: Text
 +
-->{{#vardefine: varObjectClass|{{#show:{{#var: varTopic}}|?Object Class|link=none}}|}}<!--
 +
-->{{#vardefine: varObjectEnumValues|{{#show:{{#var: varTopic}}|?Object Enum Values|link=none}}|}}<!--
 +
-->{{#vardefine: varObjectRegexp|{{#show:{{#var: varTopic}}|?Object Regexp|link=none}}|}}<!--
 +
-->{{#vardefine: varObjectValueTrue|{{#show:{{#var: varTopic}}|?Object Value True|link=none}}|}}<!--
 +
-->{{#if: {{#var: varObjectValueTrue}}||{{#vardefine: varObjectValueTrue|Yes}}}}<!-- default: Yes
 +
-->{{#vardefine: varObjectValueFalse|{{#show:{{#var: varTopic}}|?Object Value False|link=none}}|}}<!--
 +
-->{{#if: {{#var: varObjectValueFalse}}||{{#vardefine: varObjectValueFalse|No}}}}<!-- default: No
 +
-->{{#vardefine: varTitleFormula|{{#show:{{#var: varTopic}}|?Answer Title Formula|link=none}}|}}<!--
 +
-->{{#vardefine: varTextFormula|{{#show:{{#var: varTopic}}|?Single Answer Text Formula|link=none}}|}}<!--
 +
-->{{#vardefine: varTheoryType|{{#show:{{#var: varTopic}}|?Topic Type|link=none}}|}}<!--
 
--><!--
 
--><!--
 
--><!-- get the readonly properties
 
--><!-- get the readonly properties
-->{{#vardefine: varTheoryType|{{#show:{{#var: varTopic}}|?Topic Type|link=none}}|}}<!--
 
 
-->{{#vardefine: varTitle|{{#show:{{FULLPAGENAME}}|?Title|link=none}}|}}<!--  
 
-->{{#vardefine: varTitle|{{#show:{{FULLPAGENAME}}|?Title|link=none}}|}}<!--  
 +
-->{{#vardefine: varObject|{{#show:{{FULLPAGENAME}}|?Object|link=none}}|}}<!--
 
-->{{#vardefine: varFormulatedYear|{{#show:{{FULLPAGENAME}}|?Formulated Year|link=none}}|}}<!--  
 
-->{{#vardefine: varFormulatedYear|{{#show:{{FULLPAGENAME}}|?Formulated Year|link=none}}|}}<!--  
 
-->{{#vardefine: varAuthorsList|{{#show:{{FULLPAGENAME}}|?Authors List|link=none}}|}}<!--  
 
-->{{#vardefine: varAuthorsList|{{#show:{{FULLPAGENAME}}|?Authors List|link=none}}|}}<!--  
 
--><!--
 
--><!--
 
-->
 
-->
{{{info|page name=<Theory[Title]>&#32;({{PrintAuthorsArrayLastName|authors=<Theory[Authors List]>|delimiter=-}}-<Theory[Formulated Year]>)|create title=Add a New Answer|edit title=Edit}}}
+
{{{info
 +
|page name={{DecodeTitleFormula|title=<Theory[Title]>|formula=<Theory[Title Formula]>|subject=<Theory[Subject]>|predicate=<Theory[Predicate]>|object=<Theory[Object]>}}&#32;({{PrintAuthorsArrayLastName|authors=<Theory[Authors List]>|delimiter=-}}-<Theory[Formulated Year]>)
 +
|create title=Add a New Answer
 +
|edit title=Edit
 +
}}}
 
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
 
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
 
{{{for template|Theory}}}
 
{{{for template|Theory}}}
Line 33: Line 53:
 
| {{#var: varTheoryType}} {{{field|Theory Type|hidden|default={{#var: varTheoryType}}|}}}
 
| {{#var: varTheoryType}} {{{field|Theory Type|hidden|default={{#var: varTheoryType}}|}}}
 
|-
 
|-
! Title: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Enter a short title for this theory. Two or more theories can have the same title. To distinguish between them, the system will add the name of the authors and year to the page name. IMPORTANT: Please do NOT include the names of the authors or the year, as these will be added automatically.</p>
+
! Subject: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">An answer can be construed as an RDF triple that semantically links a subject, a predicate, and an object. The subject of an answer is given by its question.</p>
 +
| {{#var: varSubject}} {{{field|Subject|hidden|default={{#var: varSubject}}|}}}
 +
|-
 +
! Predicate: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">The predicate of an answer is given by its question.</p>
 +
| {{#var: varPredicate}} {{{field|Predicate|hidden|default={{#var: varPredicate}}|}}}
 +
|-
 +
! {{#if: {{#var: varTitleFormula}}<!--
 +
-->| Title Formula: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">The title will be constructed according to the following formula defined by the question.</p><!--
 +
-->| Title: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Enter a short title for this theory. Two or more theories can have the same title. To distinguish between them, the system will add the name of the authors and year to the page name. IMPORTANT: Please do NOT include the names of the authors or the year, as these will be added automatically.</p><!--
 +
-->}}
 
|&#32;<!--
 
|&#32;<!--
-->{{#if: {{#var: varTitle}}<!--
+
-->{{#if: {{#var: varTitleFormula}}<!--
  -->|{{#var: varTitle}}<!--
+
-->| {{#var: varTitleFormula}} {{{field|Title|hidden|}}}<!-- we still need this field so that the software recognizes the <Theory[Title]> parameter when building the title
  -->{{{field|Title|hidden|default={{#var:varTitle|}}|}}}<!--
+
  -->|<!--
-->|{{{field|Title|input type=text|mandatory}}}<!--
+
  -->{{#if: {{#var: varTitle}}<!--
 +
  -->|{{#var: varTitle}} {{{field|Title|hidden|default={{#var: varTitle}}|}}}<!--
 +
  -->| {{{field|Title|input type=text|mandatory}}}<!--
 +
  -->}}<!-- if
 
-->}}<!-- if
 
-->}}<!-- if
 
-->  
 
-->  
 
|-
 
|-
! Also Known As: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Optional. If the formulation has alternate names, please indicate them here. For instance, ''the first law'' of scientific change is also known as ''the law of scientific inertia'', so for The First Law this field would say "the law of scientific inertia".</p>
+
! Also Known As: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Optional. If the formulation has alternate names, please indicate them here. For instance, ''The First Law'' is also known as ''The Law of Scientific Inertia''.</p>
 
| {{{field|Alternate Titles|input type=text}}}
 
| {{{field|Alternate Titles|input type=text}}}
 +
|-
 +
!<!--
 +
-->{{#if: {{#var: varTextFormula}}<!--
 +
-->| Object: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">The formulation text will be constructed according to the following formula: "{{#var: varTextFormula}}". Please, indicate the object of the answer. </p><!--
 +
-->| Formulation Text: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Give the exact formulation of the theory here.</p><!--
 +
-->}}
 +
|<!--
 +
-->{{{field|Title Formula|hidden|default={{#var: varTitleFormula}}|}}}<!--
 +
-->{{{field|Text Formula|hidden|default={{#var: varTextFormula}}|}}}<!--
 +
--><!--
 +
-->{{#if: {{#var: varTextFormula}}<!--
 +
-->|<!-- formula is given
 +
  -->{{#if: {{#var: varObject}}<!-- check to see if it should be readonly
 +
  -->| {{#var: varObject}} {{{field|Object|hidden|default={{#var: varObject}}|}}} {{{field|Formulation Text|hidden|}}}<!--
 +
  -->|<!--
 +
    -->{{#switch: {{#var: varObjectType}}<!--
 +
    -->|Boolean={{{field|Object|input type=dropdown|values={{#var: varObjectValueFalse}},{{#var: varObjectValueTrue}}|mandatory}}}<!--
 +
    -->|Enumeration={{{field|Object|input type=dropdown|values={{#var: varObjectEnumValues}}|mandatory}}}<!--
 +
    -->|Class={{{field|Object|input type=dropdown|values={{GetTermCurrentDescendants|term={{#var: varObjectClass}}|link=none}}|mandatory}}}<!--
 +
    -->|Text={{{field|Object|input type=textarea|rows=5|mandatory}}}<!--
 +
    -->|Regular Expression={{{field|Object|input type=regexp|regexp={{#var: varObjectRegexp}}|mandatory}}}<!--
 +
    -->}}<!-- switch
 +
  -->}}<!-- if read only
 +
-->|<!-- formula is not given
 +
  --> {{{field|Formulation Text|input type=textarea|rows=5|mandatory}}} {{{field|Object|hidden|}}}<!--
 +
-->}}<!-- if formula is given
 +
-->
 
|-
 
|-
 
! Author(s): <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Who are the authors of this formulation? If the author is not in the list, please first add the author in Author category.</p>
 
! Author(s): <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Who are the authors of this formulation? If the author is not in the list, please first add the author in Author category.</p>
Line 62: Line 121:
 
-->}}<!-- if
 
-->}}<!-- if
 
-->
 
-->
|-
 
! Formulation Text: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Give the exact formulation of the theory here. IMPORTANT: Please avoid any wiki markup here, such as references, or wiki links.</p>
 
| {{{field|Formulation Text|input type=textarea|rows=5|mandatory}}}
 
 
|-
 
|-
 
! Formulation File: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Often formulations need to appear in a standard box with a title and text. Select or upload the image for this formulation.</p>
 
! Formulation File: <br><p class="sfFieldDescription" style="font-size:0.7em; color:gray;">Often formulations need to appear in a standard box with a title and text. Select or upload the image for this formulation.</p>

Latest revision as of 21:04, 19 January 2023

This is the "Theory" form. It is used to create new entries for individual non-definitional (descriptive or normative) theories.

query string=
 Theory[Topic]= //the topic