Difference between revisions of "Template:Topic"
Jump to navigation
Jump to search
Line 26: | Line 26: | ||
-->{{#set:Question={{{Question|}}}|Order={{{Order|1}}}|Formulated Year={{{Formulated Year|}}}|Page Status={{{Page Status|Stub}}}|Editor Notes={{{Editor Notes|}}}|Parent Topic={{{Parent Topic|}}}|Authors List={{{Authors List|}}}|Topic Type={{{Topic Type|}}}|Subfield=Dynamics}}<!-- | -->{{#set:Question={{{Question|}}}|Order={{{Order|1}}}|Formulated Year={{{Formulated Year|}}}|Page Status={{{Page Status|Stub}}}|Editor Notes={{{Editor Notes|}}}|Parent Topic={{{Parent Topic|}}}|Authors List={{{Authors List|}}}|Topic Type={{{Topic Type|}}}|Subfield=Dynamics}}<!-- | ||
--><!-- | --><!-- | ||
+ | --><!-- set the inheritance hierarchy | ||
-->{{#set:Subsumes items={{FULLPAGENAME}}}}<!-- | -->{{#set:Subsumes items={{FULLPAGENAME}}}}<!-- | ||
-->{{#arraydefine:varChildrenArray|{{#ask: [[-Subsumes items::<q>[[Parent Topic::{{FULLPAGENAME}}]]</q>]]|headers=hide|link=none}}|,|}}<!-- | -->{{#arraydefine:varChildrenArray|{{#ask: [[-Subsumes items::<q>[[Parent Topic::{{FULLPAGENAME}}]]</q>]]|headers=hide|link=none}}|,|}}<!-- | ||
-->{{#arrayunique:varChildrenArray}}<!-- | -->{{#arrayunique:varChildrenArray}}<!-- | ||
-->{{#arrayprint:varChildrenArray||@@@@|{{#set:Subsumes items=@@@@}}|}}<!-- | -->{{#arrayprint:varChildrenArray||@@@@|{{#set:Subsumes items=@@@@}}|}}<!-- | ||
+ | --><!-- | ||
+ | --><!-- do it again | ||
+ | -->{{#arraydefine:varSubsumeArray|{{#ask: [[-Subsumes items::<q>[[Parent Topic::{{FULLPAGENAME}}]]</q>]]|headers=hide|link=none}}|,|}}<!-- | ||
+ | -->{{#arrayunique:varSubsumeArray}}<!-- | ||
+ | -->{{#arrayprint:varSubsumeArray||@@@@|@@@@|print=pretty}}<!-- | ||
--><!-- | --><!-- | ||
--><!-- set the lower order elements (theories or questions) only if the order is greater than 1 | --><!-- set the lower order elements (theories or questions) only if the order is greater than 1 |
Revision as of 14:34, 12 January 2023
This is the template for all types of Topics - Definitional, Descriptive, or Normative. This template is to be used for all topics/questions the answers to which are definitions, descriptions, or prescriptions (it is used by Form:Topic).
It should be called in the following format:
{{Topic |Topic Type= |Question= |Order= |Lower Order Elements= |Parent Topic= |Description= |Authors List= |Formulated Year= |Academic Events= |Prehistory= |History= |Current View= |Related Topics= |Page Status= |Editor Notes= }}
Edit the page to see the template text.