Difference between revisions of "Template:Theory"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
<pre>
 
<pre>
 
{{Theory
 
{{Theory
|Topic=  
+
|Topic=  
|Theory Type= {Definition, Descriptive, Normative}
+
|Theory Type= {Definition, Descriptive, Normative}
|Subject=
+
|Title= //ignored for Definitions. Equals to Topic.
|Predicate=
+
|Alternative Titles=
|Title= //ignored for Definitions. Equals to Topic.
+
|Title Formula= //Taken from the Topic's Answer Title Formula. If need to be manually modified, it can be done here.
|Alternative Titles=
+
|Text Formula= //Taken from the Topic's Single Answer Text Formula. If need to be manually modified, it can be done here.
|Title Formula= //Taken from the Topic's Answer Title Formula. If need to be manually modified, it can be done here.
+
|Object= //Will be used to construct the formulation text.
|Text Formula= //Taken from the Topic's Single Answer Text Formula. If need to be manually modified, it can be done here.
+
|Formulation Text= //This is left as a backdoor: use this if the formulation needs to be manually tweaked.  
|Object= //Will be used to construct the formulate text.
+
|Description=
|Formulation Text= //This is left as a backdoor: use this if the formulation needs to be manually tweaked.  
+
|Formulated Year=
|Description=
+
|Authors List=
|Formulated Year=
+
|Resource=
|Authors List=
+
|Formulation File=
|Resource=
+
|Prehistory=
|Formulation File=
+
|History=
|Prehistory=
+
|Page Status=
|History=
+
|Editor Notes=
|Page Status=
 
|Editor Notes=
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 67: Line 65:
 
  -->|<!--
 
  -->|<!--
 
   --><!-- if formulation text is not given (the expected behavior), then the object is stored and the formulation text is generated according to the formula.
 
   --><!-- if formulation text is not given (the expected behavior), then the object is stored and the formulation text is generated according to the formula.
   -->{{#set: Object={{{Object|}}}|Formulation Text={{DecodeTextFormula|formula={{#var: varTextFormula}}|subject={{#var: varSubject}}|predicate={{#var: varPredicate}}|object={{{Object|}}}|}}|}}<!--
+
   -->{{#set: Object={{{Object|}}}|Formulation Text={{DecodeTextFormula|formula={{#var: varTextFormula}}|subject={{#var: varSubject}}|predicate={{#var: varPredicate}}|object={{{Object|}}}|link=yes}}|}}<!--
 
   --><!--
 
   --><!--
 
-->}}<!-- if formulation text is manually given
 
-->}}<!-- if formulation text is manually given
Line 75: Line 73:
 
-->{{#set:Description First Paragraph={{PrintFirstParagraph|vartext={{{Description|}}}|}}|}}<!--
 
-->{{#set:Description First Paragraph={{PrintFirstParagraph|vartext={{{Description|}}}|}}|}}<!--
 
--><!--
 
--><!--
--><!-- set the title
+
--><!-- set the title and format the variables
 
-->{{#switch: {{{Theory Type|}}}<!--
 
-->{{#switch: {{{Theory Type|}}}<!--
  -->|Definition={{#set:Title={{{Topic|}}}|}}<!-- for definitions the title is the topic itself
+
  -->|<!--
  -->|{{#set:Title={{DecodeTitleFormula|title={{{Title|}}}|formula={{{Title Formula|}}}|subject={{{Subject|}}}|predicate={{{Predicate|}}}|object={{{Object|}}}|}}|}}<!--
+
  -->Definition={{#set:Title={{{Topic|}}}|}}<!-- for definitions the title is the topic itself
 +
  -->{{#vardefine: varTheoryType|definition}}<!--
 +
  -->|<!--
 +
  -->{{#set:Title={{DecodeTitleFormula|title={{{Title|}}}|formula={{{Title Formula|}}}|subject={{#var: varSubject}}|predicate={{#var: varPredicate}}|object={{{Object|}}}|}}|}}<!--
 +
  -->{{#vardefine: varTheoryType|theory}}<!--
 
-->}}<!-- switch
 
-->}}<!-- switch
 
--><!--
 
--><!--
Line 144: Line 146:
 
{{PrintTheoryAcceptanceHistory<!--
 
{{PrintTheoryAcceptanceHistory<!--
 
  -->|theory={{FULLPAGENAME}}<!--
 
  -->|theory={{FULLPAGENAME}}<!--
  -->|intro=Here is the complete acceptance record of {{FULLPAGENAME}}:<!--
+
  -->|intro=Here is the complete acceptance record of this {{#var: varTheoryType}}:<!--
  -->|default=This theory has never been accepted.<!--
+
  -->|default=This {{#var: varTheoryType}} has never been accepted.<!--
 
-->}}<!--
 
-->}}<!--
 
--></div><!--
 
--></div><!--
Line 154: Line 156:
 
===Suggestions To Accept===
 
===Suggestions To Accept===
 
<div class="mw-collapsible mw-collapsed">
 
<div class="mw-collapsible mw-collapsed">
Here are all the modifications where the acceptance of this theory has been suggested:<!--
+
Here are all the modifications where the acceptance of this {{#var: varTheoryType}} has been suggested:<!--
 
  -->|default=<!--
 
  -->|default=<!--
 
  -->|outro=</div><!--
 
  -->|outro=</div><!--
Line 165: Line 167:
 
===Suggestions To Reject===
 
===Suggestions To Reject===
 
<div class="mw-collapsible mw-collapsed">
 
<div class="mw-collapsible mw-collapsed">
These are all the modifications where the rejection of the theory has been suggested:<!--
+
These are all the modifications where the rejection of this {{#var: varTheoryType}} has been suggested:<!--
 
  -->|outro=</div><!--
 
  -->|outro=</div><!--
 
-->}}<!--
 
-->}}<!--
Line 181: Line 183:
 
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Description}}
 
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Description}}
 
{{{Description|}}}
 
{{{Description|}}}
 
+
{{PrintTheoryExamples|theory={{FULLPAGENAME}}|intro=The gist of this {{#var: varTheoryType}} can be illustrated by the following examples.}}
{{PrintTheoryExamples|theory={{FULLPAGENAME}}|limit=4|intro=The gist of the theory can be illustrated by the following examples.}}
 
 
 
 
==Reasons==
 
==Reasons==
{{PrintTheoryReasons|theory={{FULLPAGENAME}}|default=No reasons are indicated for this theory.|showedit=yes}}
+
{{PrintTheoryReasons|theory={{FULLPAGENAME}}|default=No reasons are indicated for this {{#var: varTheoryType}}.|showedit=yes}}
  
If a reason supporting this theory is missing, please {{#formlink:form=Reason|link text=add it here|popup|reload|query string=Reason[Conclusion]={{FULLPAGENAME}}|}}.
+
If a reason supporting this {{#var: varTheoryType}} is missing, please {{#formlink:form=Reason|link text=add it here|popup|reload|query string=Reason[Conclusion]={{FULLPAGENAME}}|}}.
  
==Questions About This Theory==
+
==Questions About This {{ucfirst: {{#var: varTheoryType}}}}==
 
{{PrintSubjectsTopics
 
{{PrintSubjectsTopics
 
  |subject={{FULLPAGENAME}}
 
  |subject={{FULLPAGENAME}}
  |default=There are no higher-order questions concerning this theory.
+
  |default=There are no higher-order questions concerning this {{#var: varTheoryType}}.
  |intro=The following higher-order questions  concerning this theory have been suggested:
+
  |intro=The following higher-order questions  concerning this {{#var: varTheoryType}} have been suggested:
 
  |link=all
 
  |link=all
 
  |bullets=yes
 
  |bullets=yes
Line 199: Line 199:
 
}}
 
}}
  
If a question about this theory is missing, please {{#formlink:form=Topic|link text=add it here|query string=Topic[Subject]={{FULLPAGENAME}}&Topic[Subfield]={{#var: varSubfield}}&Topic[Topic Type]=Descriptive|}}.<!--
+
If a question about this {{#var: varTheoryType}} is missing, please {{#formlink:form=Topic|link text=add it here|query string=Topic[Subject]={{FULLPAGENAME}}&Topic[Subfield]={{#var: varSubfield}}&Topic[Topic Type]=Descriptive|}}.<!--
 
--><!--  
 
--><!--  
 
--><!-- add categories
 
--><!-- add categories

Latest revision as of 17:37, 2 November 2023

This is the "Theory" template. This template is to be used for all theories (descriptive, normative, and definitions). It is currently used by Form:Theory.

It should be called in the following format:

{{Theory
|Topic= 
|Theory Type= {Definition, Descriptive, Normative}
|Title= //ignored for Definitions. Equals to Topic.
|Alternative Titles=
|Title Formula= //Taken from the Topic's Answer Title Formula. If need to be manually modified, it can be done here.
|Text Formula= //Taken from the Topic's Single Answer Text Formula. If need to be manually modified, it can be done here.
|Object= //Will be used to construct the formulation text.
|Formulation Text= //This is left as a backdoor: use this if the formulation needs to be manually tweaked. 
|Description=
|Formulated Year=
|Authors List=
|Resource=
|Formulation File=
|Prehistory=
|History=
|Page Status=
|Editor Notes=
}}

Edit the page to see the template text.