Difference between revisions of "Template:Theory"
Jump to navigation
Jump to search
Line 32: | Line 32: | ||
-->{{#set:<!-- | -->{{#set:<!-- | ||
-->Topic={{{Topic|}}}|<!-- | -->Topic={{{Topic|}}}|<!-- | ||
− | |||
-->Formulated Year={{{Formulated Year|}}}|<!-- | -->Formulated Year={{{Formulated Year|}}}|<!-- | ||
-->Alternate Titles={{{Alternate Titles|}}}|<!-- | -->Alternate Titles={{{Alternate Titles|}}}|<!-- | ||
Line 53: | Line 52: | ||
-->{{#set: Subject={{#var: varSubject}}|Predicate={{#var: varPredicate}}|}}<!-- | -->{{#set: Subject={{#var: varSubject}}|Predicate={{#var: varPredicate}}|}}<!-- | ||
--><!-- | --><!-- | ||
− | --><!-- | + | --><!-- |
+ | --><!-- Set the formulation text and object | ||
+ | --><!-- | ||
-->{{#if: {{{Text Formula|}}}<!-- | -->{{#if: {{{Text Formula|}}}<!-- | ||
-->|{{#vardefine: varTextFormula|{{{Text Formula|}}} }}<!-- text formula is manually given | -->|{{#vardefine: varTextFormula|{{{Text Formula|}}} }}<!-- text formula is manually given | ||
Line 60: | Line 61: | ||
--><!-- | --><!-- | ||
-->{{#if: {{{Formulation Text|}}}<!-- | -->{{#if: {{{Formulation Text|}}}<!-- | ||
− | -->|{{#set:Formulation Text={{{Formulation Text|}}}|}}<!-- formulation text is | + | -->|<!-- |
− | + | --><!-- if formulation text is manually given, it overrides the object | |
− | -->}}<!-- if | + | -->{{#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|}}}|}}|}}<!-- | ||
+ | --><!-- | ||
+ | -->}}<!-- if formulation text is manually given | ||
--><!-- | --><!-- | ||
--><!-- | --><!-- |
Revision as of 16:34, 24 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.