Difference between revisions of "Template:Topic"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
|Question= | |Question= | ||
|Order= | |Order= | ||
− | |Lower Order | + | |Lower Order Elements= |
|Parent Topic= | |Parent Topic= | ||
|Description= | |Description= | ||
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|}}}|}}<!-- | -->{{#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|}}}|}}<!-- | ||
--><!-- | --><!-- | ||
− | --><!-- set the lower order | + | --><!-- set the lower order elements (theories or questions) only if the order is greater than 1 |
− | -->{{#ifeq: {{{Order|1}}} | 1 || {{# | + | -->{{#ifeq: {{{Order|1}}} | 1 <!-- |
+ | -->|<!-- nothing to do if this is a first-order theory | ||
+ | -->|<!-- | ||
+ | -->{{#arraydefine:foelementsArray|{{{Lower Order Elements|}}}|,|}}<!-- | ||
+ | -->{{#arrayunique:foelementsArray}}<!-- | ||
+ | -->{{#arrayprint:foelementsArray||@@@@|{{#set:Has Lower Order Element=@@@@}}|}}<!-- | ||
+ | --><!-- | ||
+ | -->}}<!-- ifeq | ||
--><!-- | --><!-- | ||
--><!-- set the authors | --><!-- set the authors |
Revision as of 20:48, 16 October 2022
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.