Changes

Jump to navigation Jump to search
5,999 bytes added ,  17:37, 2 November 2023
no edit summary
<noinclude>
This is the "Theory" template. This template is to be used for all individual theories(descriptive, including definitions, descriptive propositionsnormative, and normative propositionsdefinitions). It is currently used by [[Form:Definition]], [[Form:Descriptive Theory]], and [[Form:Normative Theory]].
It should be called in the following format:
<pre>
{{Theory
|Theory Type=
|Topic=
|Theory Type= {Definition, Descriptive, Normative}|Title= //omitted ignored for definitions; equals 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=
|Prehistory=
|History=
|Page Status=
|Editor Notes=
}}
</pre>
Edit the page to see the template text.
</noinclude><includeonly>{{#set:Topic={{{Topic|}}}|Formulated Year={{{Formulated Year|}}}|Formulation Text={{{Formulation Text|}}}|Alternate Titles={{{Alternate Titles|}}}|Resource={{{Resource|}}}|Formulation File={{{Formulation File|}}}|Theory Type={{{Theory Type|}}}|}}<!--
--><!--
--><!-- set the values-->{{#set:<!-- -->Topic={{{Topic|}}}|<!-- -->Formulated Year={{{Formulated Year|}}}|<!-- -->Alternate Titles={{{Alternate Titles|}}}|<!-- -->Description={{#replace:{{{Description|}}}|CiteRef::|CITE_}}|<!-- replace CiteRef's when storing the value to make sure that the references are shown properly -->Resource={{{Resource|}}}|<!-- -->Formulation File={{{Formulation File|}}}|<!-- -->Theory Type={{{Theory Type|}}}|<!-- -->Authors List={{{Authors List|}}}|<!-- -->Page Status={{{Page Status|Stub}}}|<!-- -->Editor Notes={{{Editor Notes|}}}|<!---->}}<!-- set--><!----><!-- set the subfield-->{{#vardefine: varSubfield|{{#show: {{{Topic|}}}|?Subfield|link=none}} }}<!---->{{#set: Subfield={{#var: varSubfield}}|}}<!----><!----><!-- set the subject and predicate-->{{#vardefine: varSubject|{{#show: {{{Topic|}}}|?Subject|link=none}} }}<!---->{{#vardefine: varPredicate|{{#show: {{{Topic|}}}|?Predicate|link=none}} }}<!---->{{#set: Subject={{#var: varSubject}}|Predicate={{#var: varPredicate}}|}}<!----><!-- --><!-- --><!-- Set the formulation text and object--><!---->{{#if: {{{Text Formula|}}}<!-- -->|{{#vardefine: varTextFormula|{{{Text Formula|}}} }}<!-- text formula is manually given -->|{{#vardefine: varTextFormula|{{#show: {{{Topic|}}}|?Single Answer Text Formula|link=none}} }}<!-- text formula is determined by the topic-->}}<!-- if --><!---->{{#if: {{{Formulation Text|}}}<!-- -->|<!-- --><!-- if formulation text is manually given, it overrides the object -->{{#set: Object={{{Formulation Text|}}}|Formulation Text={{{Formulation Text|}}}|}}<!-- --><!-- -->|<!-- --><!-- 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|}}}|link=yes}}|}}<!-- --><!---->}}<!-- if formulation text is manually given--><!----><!----><!-- set the first paragraph of the description so that it can be used on the topic page-->{{#set:Description First Paragraph={{PrintFirstParagraph|vartext={{{Description|}}}|}}|}}<!----><!----><!-- set the titleand format the variables
-->{{#switch: {{{Theory Type|}}}<!--
-->|<!-- -->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
--><!--
--><!-- retrieve the order from the topic
-->{{#vardefine: varOrder|{{#show: {{{Topic}}}|?Order}}|}}<!--
--><!-- if empty, assign 1 by default
-->{{#if: {{#var:varOrder}}||{{#vardefine: varOrder|1}}}}<!--
--><!-- save the order
-->{{#set:Order={{#var:varOrder}}|}}<!--
--><!--
--><!-- set the authors
-->{{#arrayunique:authorsArray}}<!--
-->{{#arrayprint:authorsArray||@@@@|{{#set:Has Author=@@@@}}|}}<!--
--><!--
--><!-- Calculate completion rates for each major property
--><!--
-->{{#vardefine: varCRFil|{{SetTextPropertyCompletionRate|propertyname=Formulation File|propertyvalue={{{Formulation File|}}}|requiredwordcount=1|returnvalue=true}}|}}<!--
-->{{#vardefine: varCRDes|{{SetTextPropertyCompletionRate|propertyname=Description|propertyvalue={{{Description|}}}|requiredwordcount=400|returnvalue=true}}|}}<!--
-->{{#vardefine: varCRPre|{{SetTextPropertyCompletionRate|propertyname=Prehistory|propertyvalue={{{Prehistory|}}}|requiredwordcount=350|returnvalue=true}}|}}<!--
-->{{#vardefine: varCRHst|{{SetTextPropertyCompletionRate|propertyname=History|propertyvalue={{{History|}}}|requiredwordcount=50|returnvalue=true}}|}}<!--
--><!--
--><!-- Now calculate the overall completion rate. 5 45 35 5
--><!--
-->{{#ifeq: {{{Page Status|}}}|Editor Approved<!--
-->|<!-- editor approved: completion rate is always 100%
-->{{#vardefine: varCRtotal|100}}<!--
--><!--
-->|<!-- not approved: calculate completion rate (90% max)
-->{{#vardefine: varCRtotal| {{#expr: ((5/100 * {{#var:varCRFil}}) + (45/100 * {{#var:varCRDes}}) + (35/100 * {{#var:varCRPre}}) + (5/100 * {{#var:varCRHst}}) ) round 0}} }}<!--
--><!--
-->}}<!-- if page status
--><!-- store the value
-->{{#set: CR_Total={{#var:varCRtotal}} }}<!--
--><!--
-->
{{PrintTheoryFormulation|theory={Formulation Text{FULLPAGENAME}}|}}}<!--
-->{{#if: {{{Formulation File|}}}|<nowiki/>
}}
{{PrintTheoryTitleAuthorYearResource|theory={{FULLPAGENAME}}|}} {{#if: {{{Alternate Titles|}}}|It is also known as '''{{{Alternate Titles|}}}'''.&#32;}}<!---->{{PrintTheoryCurrentlyAcceptedInCommunities|theory={{FULLPAGENAME}}|introskiptheorytitle=<br/>  yes|link=all|linktheory=noyes|communitiesfirst=no}}<!--
--><!-- print prehistory (collapsed) if any
-->
{{#if:{{{Prehistory|}}}|==PrehistoryBroader History==
<div class="mw-collapsible mw-collapsed">
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Prehistory}}
{{{Prehistory|}}}
</div>}}<!--
--><!-- print history if any
-->
==Scientonomic History=={{PrintSectionVideos|page={{FULLPAGENAME}}|section=History}}
{{#if:{{{History|}}}|
{{{History|}}}|}}<!--
{{PrintTheoryAcceptanceHistory<!--
-->|theory={{FULLPAGENAME}}<!--
-->|intro=Here is the complete acceptance record of this {{FULLPAGENAME#var: varTheoryType}}:<!-- -->|default=This theory {{#var: varTheoryType}} has never been accepted.<!--
-->}}<!--
--></div><!--
===Suggestions To Accept===
<div class="mw-collapsible mw-collapsed">
Here are all the modifications where the acceptance of this theory {{#var: varTheoryType}} has been suggested:<!--
-->|default=<!--
-->|outro=</div><!--
===Suggestions To Reject===
<div class="mw-collapsible mw-collapsed">
These are all the modification modifications where the rejection of the theory this {{#var: varTheoryType}} has been suggested:<!--
-->|outro=</div><!--
-->}}<!--
-->
==Description==
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Description}}
{{{Description|}}}
{{PrintTheoryExamples|theory={{FULLPAGENAME}}|intro=The gist of this {{#var: varTheoryType}} can be illustrated by the following examples.}}
==Reasons==
{{PrintTheoryReasons|theory={{FULLPAGENAME}}|default=No reasons are indicated for this {{#var: varTheoryType}}.|showedit=yes}}
 
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 {{ucfirst: {{#switchvar: varTheoryType}}}}=={{PrintSubjectsTopics |subject={{Theory TypeFULLPAGENAME}} |default=There are no higher-order questions concerning this {{#var: varTheoryType}}. |intro=The following higher-order questions concerning this {{#var: varTheoryType}}have been suggested: |Normativelink=[[Category:Normative Theory]] all |Descriptivebullets=[[Category:Descriptive Theory]] yes |Definitiondetails=[[Category:Definition]] no
}}
 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--><!-- -->[[Category:Epistemic Element]]<!---->[[Category:Theory]]<!----><!-- -->{{#switch: {{{Theory Type|}}}<!-- -->|Normative=[[Category:Normative Theory]]<!-- -->|Descriptive=[[Category:Descriptive Theory]]<!-- -->|Definition=[[Category:Definition]]<!-- -->}}<!-- -->{{#switch: {{{Page Status|Stub}}}<!-- -->|Editor Approved=[[Category:Editor Approved Theory Pages]]<!-- -->|Needs Editing=[[Category:Need Editing Theory Pages]]<!-- -->|Stub=[[Category:Stub Theory Pages]]<!---->}}<!----><!---->__NOEDITSECTION__<!---->__NOCACHE__<!----></includeonly>

Navigation menu