Difference between revisions of "Template:Topic"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 24: Line 24:
 
  |Multiple Answers Text Formula=
 
  |Multiple Answers Text Formula=
 
  |Answer Title Formula=
 
  |Answer Title Formula=
|Order= //This will be deprecated. The question's order will be calculated from the Subject. If the subject is a term registered in the encyclopedia, then the question is first order. Otherwise, the question's order will be equal to subject's order + 1. 
 
|Lower Order Elements= //This will be deprecated. It will be calculated automatically from the subject, object, and predicate.
 
 
  |Description=
 
  |Description=
 
  |Authors List=
 
  |Authors List=
Line 72: Line 70:
 
-->{{#if: {{#var: varSubjectOrder}}<!--
 
-->{{#if: {{#var: varSubjectOrder}}<!--
 
  -->|{{#vardefine: varOrder| {{#expr: {{#var: varSubjectOrder}} + 1}} }}<!--
 
  -->|{{#vardefine: varOrder| {{#expr: {{#var: varSubjectOrder}} + 1}} }}<!--
  -->|{{#vardefine: varOrder| {{{Order|1}}} }}<!-- no subject. For backward compatibility, take the manually indicated order 
+
  -->|{{#vardefine: varOrder| 1 }}<!-- no subject. Set 1 by default
 
-->}}<!-- if subject order is given
 
-->}}<!-- if subject order is given
 
-->{{#set:Order={{#var: varOrder}}|}}<!--  
 
-->{{#set:Order={{#var: varOrder}}|}}<!--  
--><!--
+
--><!--  
--><!-- set the inherited from and heirtable
+
--><!-- set the inherited from and heritable
 
-->{{#if: {{{Inherited From|}}}<!--
 
-->{{#if: {{{Inherited From|}}}<!--
  -->|{{#set:Heritable=No|Inherited From={{{Inherited From|}}}|Inherited=Yes}}<!-- an inherited question is not itself heritable
+
  -->|<!-- an inherited question is not itself heritable
-->|{{#set:Heritable={{{Heritable|No}}}|Inherited=No}}<!--  
+
  -->{{#set:Heritable=No|Inherited From={{{Inherited From|}}}|Inherited=Yes}}<!--  
 +
-->|<!-- a non-inherited question can be heritable
 +
  -->{{#set:Heritable={{{Heritable|No}}}|Inherited=No}}<!--  
 
-->}}<!-- if
 
-->}}<!-- if
 
--><!--
 
--><!--
Line 106: Line 106:
 
--><!--
 
--><!--
 
--><!--
 
--><!--
--><!-- set the lower order elements (theories or questions) only if the order is greater than 1
 
-->{{#ifeq: {{{Order|1}}} | 1 <!--
 
-->|<!-- nothing to do if this is a first-order theory
 
-->|<!--
 
-->{{#arraydefine:foelementsArray|{{{Lower Order Elements|}}}|,|}}<!--
 
-->{{#arrayunique:foelementsArray}}<!--
 
-->{{#arrayprint:foelementsArray||@@@@|{{#set:Has Lower Order Element=@@@@}}|}}<!--
 
--><!--
 
-->}}<!-- ifeq
 
 
--><!--
 
--><!--
 
--><!-- set the authors
 
--><!-- set the authors
Line 272: Line 263:
 
--><!--
 
--><!--
 
--><!--add categories  
 
--><!--add categories  
--><!--
 
-->{{#switch: {{{Order|1}}}<!--
 
--> |2=[[Category:Second Order Element]][[Category:Second Order Topic]]<!--
 
--> |#default=[[Category:First Order Element]][[Category:First Order Topic]]<!-- 
 
-->}}<!--
 
 
--><!--
 
--><!--
 
-->{{#switch: {{{Topic Type|}}}<!--
 
-->{{#switch: {{{Topic Type|}}}<!--
--> |Normative=[[Category:Normative Topic]]<!--
+
-->|Normative=[[Category:Normative Topic]]<!--
--> |Descriptive=[[Category:Descriptive Topic]]<!--
+
-->|Descriptive=[[Category:Descriptive Topic]]<!--
--> |Definitional=[[Category:Definitional Topic]]<!--
+
-->|Definitional=[[Category:Definitional Topic]]<!--
--> |{{Note}} Something went wrong and the topic type is undefined. If you see this message, please contact the editors with the details.<!--   
+
-->|{{Note}} Something went wrong and the topic type is undefined. If you see this message, please contact the editors with the details.<!--   
 
-->}}<!--
 
-->}}<!--
 
--><!--
 
--><!--
 
-->{{#switch: {{{Page Status|Stub}}}<!--
 
-->{{#switch: {{{Page Status|Stub}}}<!--
--> |Editor Approved=[[Category:Editor Approved Topic Pages]]<!--
+
-->|Editor Approved=[[Category:Editor Approved Topic Pages]]<!--
--> |Needs Editing=[[Category:Need Editing Topic Pages]]<!--
+
-->|Needs Editing=[[Category:Need Editing Topic Pages]]<!--
--> |Stub=[[Category:Stub Topic Pages]]<!--
+
-->|Stub=[[Category:Stub Topic Pages]]<!--
 
-->}}<!--
 
-->}}<!--
 
--><!--
 
--><!--

Revision as of 20:16, 19 January 2023

This is the template for all types of Non-Definitional Topics (Descriptive, Normative). This template is to be used for all topics/questions the answers to which are descriptions or prescriptions (it is used by Form:Topic).

It should be called in the following format:

{{Topic
 |Subject= //For first order questions, the subject must be a term registered in the encyclopedia. For higher order questions, the subject can be any lower level non-definitional theory question or theory.
 |Topic Type= {Descriptive, Normative}
 |Subfield= {Ontology, Dynamics, etc.}
 |Heritable= {Yes, No}
 |Inherited From= //the question that this question is inherited from
 |Question Text Formula= //For heritable questions only.
 |Question Title Formula= //For heritable questions only.
 |Question Title= //Ignored for heritable questions.
 |Question= //For non heritable questions only. For heritable questions, this is available to the editors only to use in cases when the text produced by the formula should be overridden. 
 |Predicate= //Some text or a term registered in the encyclopedia
 |Object Type= {Boolean, Class, Enumeration, Regular Expression, Text}
 |Object Value True= //optional. Used only if Object Type=Boolean
 |Object Value False= //optional. Used only if Object Type=Boolean
 |Object Class= //optional. Used only if Object Type=Class
 |Object Enum Values= //optional. Used only if Object Type=Enumeration
 |Object Regexp= //optional. Used only if Object Type=Regexp
 |Single Answer Text Formula=
 |Multiple Answers Text Formula=
 |Answer Title Formula=
 |Description=
 |Authors List=
 |Formulated Year=
 |Academic Events=
 |Prehistory=
 |History=
 |Current View=
 |Parent Topic= //This will be deprecated. It will be calculated automatically in an agent-relative way following the current inheritance hierarchy of that agent. 
 |Related Topics= //This will be deprecated. It will be calculated automatically in an agent-relative way following the current inheritance hierarchy of that agent.
 |Page Status=
 |Editor Notes=
}}

Edit the page to see the template text.