Difference between revisions of "Template:Theory"
Jump to navigation
Jump to search
(54 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This is the "Theory" template. This template is to be used for all | + | 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: | It should be called in the following format: | ||
<pre> | <pre> | ||
{{Theory | {{Theory | ||
− | |||
|Topic= | |Topic= | ||
− | |Title= // | + | |Theory Type= {Definition, Descriptive, Normative} |
+ | |Title= //ignored for Definitions. Equals to Topic. | ||
|Alternative Titles= | |Alternative Titles= | ||
− | |Formulation Text= | + | |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= | |Description= | ||
|Formulated Year= | |Formulated Year= | ||
Line 22: | Line 25: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
− | </noinclude><includeonly> | + | </noinclude><includeonly><!-- |
--><!-- | --><!-- | ||
− | --><!-- set the title | + | --><!-- 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 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={{{Title|}}}|}}<!-- | + | -->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 | ||
+ | --><!-- | ||
+ | --><!-- 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 | --><!-- set the authors | ||
Line 56: | Line 116: | ||
--><!-- | --><!-- | ||
--> | --> | ||
− | {{{ | + | {{PrintTheoryFormulation|theory={{FULLPAGENAME}}|}}<!-- |
-->{{#if: {{{Formulation File|}}}|<nowiki/> | -->{{#if: {{{Formulation File|}}}|<nowiki/> | ||
Line 63: | Line 123: | ||
}} | }} | ||
− | {{PrintTheoryTitleAuthorYearResource|theory={{FULLPAGENAME}}|}} {{#if: {{{Alternate Titles|}}}|It is also known as '''{{{Alternate Titles|}}}'''.}}<!-- | + | {{PrintTheoryTitleAuthorYearResource|theory={{FULLPAGENAME}}|}} {{#if: {{{Alternate Titles|}}}|It is also known as '''{{{Alternate Titles|}}}'''. }}<!-- |
− | -->{{PrintTheoryCurrentlyAcceptedInCommunities|theory={{FULLPAGENAME}}|skiptheorytitle=yes|link= | + | -->{{PrintTheoryCurrentlyAcceptedInCommunities|theory={{FULLPAGENAME}}|skiptheorytitle=yes|link=yes|communitiesfirst=no}}<!-- |
--><!-- print prehistory (collapsed) if any | --><!-- print prehistory (collapsed) if any | ||
--> | --> | ||
− | {{#if:{{{Prehistory|}}}|== | + | {{#if:{{{Prehistory|}}}|==Broader History== |
<div class="mw-collapsible mw-collapsed"> | <div class="mw-collapsible mw-collapsed"> | ||
+ | {{PrintSectionVideos|page={{FULLPAGENAME}}|section=Prehistory}} | ||
{{{Prehistory|}}} | {{{Prehistory|}}} | ||
</div>}}<!-- | </div>}}<!-- | ||
Line 74: | Line 135: | ||
--><!-- print history if any | --><!-- print history if any | ||
--> | --> | ||
− | ==History== | + | ==Scientonomic History== |
+ | {{PrintSectionVideos|page={{FULLPAGENAME}}|section=History}} | ||
{{#if:{{{History|}}}| | {{#if:{{{History|}}}| | ||
{{{History|}}}|}}<!-- | {{{History|}}}|}}<!-- | ||
Line 84: | Line 146: | ||
{{PrintTheoryAcceptanceHistory<!-- | {{PrintTheoryAcceptanceHistory<!-- | ||
-->|theory={{FULLPAGENAME}}<!-- | -->|theory={{FULLPAGENAME}}<!-- | ||
− | -->|intro=Here is the complete acceptance record of {{ | + | -->|intro=Here is the complete acceptance record of this {{#var: varTheoryType}}:<!-- |
− | -->|default=This | + | -->|default=This {{#var: varTheoryType}} has never been accepted.<!-- |
-->}}<!-- | -->}}<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 94: | 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 | + | Here are all the modifications where the acceptance of this {{#var: varTheoryType}} has been suggested:<!-- |
-->|default=<!-- | -->|default=<!-- | ||
-->|outro=</div><!-- | -->|outro=</div><!-- | ||
Line 105: | 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 | + | These are all the modifications where the rejection of this {{#var: varTheoryType}} has been suggested:<!-- |
-->|outro=</div><!-- | -->|outro=</div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 119: | Line 181: | ||
--> | --> | ||
==Description== | ==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.}} | ||
+ | ==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: {{#var: varTheoryType}}}}== |
− | | | + | {{PrintSubjectsTopics |
+ | |subject={{FULLPAGENAME}} | ||
+ | |default=There are no higher-order questions concerning this {{#var: varTheoryType}}. | ||
+ | |intro=The following higher-order questions concerning this {{#var: varTheoryType}} have been suggested: | ||
+ | |link=all | ||
+ | |bullets=yes | ||
+ | |details=no | ||
}} | }} | ||
− | <!--add categories --> | + | |
− | {{#switch: {{{Page Status|Stub}}} | + | 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|}}.<!-- |
− | |Editor Approved=[[Category:Editor Approved Theory Pages]] | + | --><!-- |
− | |Needs Editing=[[Category:Need Editing Theory Pages]] | + | --><!-- add categories |
− | |Stub=[[Category:Stub Theory Pages]] | + | --><!-- |
− | }} | + | -->[[Category:Epistemic Element]]<!-- |
− | __NOEDITSECTION__ | + | -->[[Category:Theory]]<!-- |
− | __NOCACHE__ | + | --><!-- |
− | </includeonly> | + | -->{{#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> |
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.