Difference between revisions of "Template:Topic"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
|Multiple Answers Text Formula= | |Multiple Answers Text Formula= | ||
|Answer Title Formula= | |Answer Title Formula= | ||
− | |||
− | |||
|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 | + | -->|{{#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 | + | --><!-- 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 |
− | + | -->{{#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 authors | --><!-- set the authors | ||
Line 272: | Line 263: | ||
--><!-- | --><!-- | ||
--><!--add categories | --><!--add categories | ||
− | |||
− | |||
− | |||
− | |||
− | |||
--><!-- | --><!-- | ||
-->{{#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.