Difference between revisions of "Template:Theory"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
<pre> | <pre> | ||
{{Theory | {{Theory | ||
− | |Theory Type= {Definition, Descriptive, Normative} | + | |Topic= |
− | | | + | |Theory Type= {Definition, Descriptive, Normative} |
− | |Title= // | + | |Subject= |
− | |Alternative Titles= | + | |Predicate= |
− | |Formulation Text= | + | |Title= //ignored for Definitions. Equals to Topic. |
− | |Description= | + | |Alternative Titles= |
− | |Formulated Year= | + | |Title Formula= //Taken from the Topic's Answer Title Formula. If need to be manually modified, it can be done here. |
− | |Authors List= | + | |Text Formula= //Taken from the Topic's Single Answer Text Formula. If need to be manually modified, it can be done here. |
− | |Resource= | + | |Object= //Will be used to construct the formulate text. |
− | |Formulation File= | + | |Formulation Text= //This is left as a backdoor: use this if the formulation needs to be manually tweaked. |
− | |Prehistory= | + | |Description= |
− | |History= | + | |Formulated Year= |
− | |Page Status= | + | |Authors List= |
− | |Editor Notes= | + | |Resource= |
+ | |Formulation File= | ||
+ | |Prehistory= | ||
+ | |History= | ||
+ | |Page Status= | ||
+ | |Editor Notes= | ||
}} | }} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
− | </noinclude><includeonly>{{#set:Topic={{{Topic|}}}|Formulated Year={{{Formulated Year | + | </noinclude><includeonly>{{#set:Topic={{{Topic|}}}|Formulated Year={{{Formulated Year|}}}|Alternate Titles={{{Alternate Titles|}}}|Description={{{Description|}}}|Resource={{{Resource|}}}|Formulation File={{{Formulation File|}}}|Theory Type={{{Theory Type|}}}|Authors List={{{Authors List|}}}|Page Status={{{Page Status|Stub}}}|Editor Notes={{{Editor Notes|}}}|}}<!-- |
+ | --><!-- | ||
+ | --><!-- set the formulation text | ||
+ | -->{{#if: {{{Formulation Text|}}}<!-- | ||
+ | -->|{{#set:Formulation Text={{{Formulation Text|}}}|}}<!-- | ||
+ | -->|{{#set:Formulation Text={{DecodeTextFormula|formula={{{Text Formula|}}}|subject={{{Subject|}}}|predicate={{{Predicate|}}}|object={{{Object|}}}|}}|}}<!-- | ||
+ | -->}}<!-- if | ||
--><!-- | --><!-- | ||
--><!-- set the first paragraph of the description so that it can be used on the topic page | --><!-- set the first paragraph of the description so that it can be used on the topic page | ||
Line 30: | Line 41: | ||
-->{{#switch: {{{Theory Type|}}}<!-- | -->{{#switch: {{{Theory Type|}}}<!-- | ||
-->|Definition={{#set:Title={{{Topic|}}}|}}<!-- for definitions the title is the topic itself | -->|Definition={{#set:Title={{{Topic|}}}|}}<!-- for definitions the title is the topic itself | ||
− | -->|{{#set:Title={{{Title|}}}|}}<!-- | + | -->|{{#set:Title={{DecodeTitleFormula|title={{{Title|}}}|formula={{{Title Formula|}}}|subject={{{Subject|}}}|predicate={{{Predicate|}}}|object={{{Object|}}}|}}|}}<!-- |
-->}}<!-- switch | -->}}<!-- switch | ||
--><!-- | --><!-- |
Revision as of 23:06, 16 January 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} |Subject= |Predicate= |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 formulate 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.