Open main menu

Changes

no edit summary
* <code><nowiki>SubObjectCategory</nowiki></code> = "Topic Current Ontology".
* <code><nowiki>Community</nowiki></code> - the community that accepts the theory.
* <code><nowiki>Term</nowiki></code> - the term page. Note that this should be the definitional topic page, not its the page for the respective ontological question.
* <code><nowiki>Topic</nowiki></code> - the page for the respective ontological question for ease of access.
* <code><nowiki>Ontological Question Type</nowiki></code> - DisjointnessSubtypes
* <code><nowiki>Disjoint Group</nowiki></code> - the name of disjoint group.
* <code><nowiki>Theory</nowiki></code> - the pages for the respective theories for ease of access (uses <code><nowiki>|+sep=,</nowiki></code>).
-->{{#if: {{{term|}}}<!--
-->|<!--
-->{{#vardefine: varTerm|{{{term|}}}}}<!--
--><!-- get the topic page
-->{{#vardefine: varTopic|{{FormatSubtypesTopicTitle|term={{{term|}#var: varTerm}}|}}|}}<!--
--><!--
--><!-- get the list of the communities where the topic is accepted
-->{{#arraydefine: varCommunities|{{PrintTopicCurrentlyAcceptedInCommunitiesList|topic={{#var: varTopic}}|link=none}}|,|unique}}<!--
-->{{#arrayunique: varCommunities}}<!-- remove duplicates and empty values
-->{{#arrayprint: varCommunities||varCommunity<!--
-->{{#arraydefine: varTheories|{{PrintTopicAnswerAcceptedInCommunity|topic={{#var: varTopic}}|community=varCommunity|link=none}}|,|}}<!--
-->{{#arrayunique: varTheories}}<!-- remove duplicates and empty values
-->{{#ifexpr: {{#arraysize:varTheories}} = 0<!-- check if the array exists
-->|<!--
--><!-- no claims found: store a subobject leaving Disjoint Group, Disjoints, and theory empty
-->{{#subobject:<!--
-->|SubObjectCategory=Topic Current Ontology<!--
-->|Term={{{term|}#var: varTerm}}<!--
-->|Topic={{#var: varTopic}}<!--
-->|Ontological Question Type=Subtypes<!--
-->|<!--
--><!-- some claims are found: get the names of disjoint groups in the correct order
-->{{#arraydefine: varGroups|{{PrintAcceptedDisjointGroupsList|term={{{term|}#var: varTerm}}|Communitycommunity=varCommunity}}|,|}}<!--
--><!--
--><!-- for each group, get the accepted theories
-->{{#arrayprint: varGroups||varGroup<!--
-->|<!--
--><!-- get the group order
--><!-- TODO HERE
--><!--
--><!-- get the children
-->{{#arraydefine: varSubtypesarraySubtypes<!--
-->|<!--
-->{{#ask:<!--
-->|sort=Element.Child<!--
-->|order=asc<!--
-->|link=none<!--
-->|limit=10000<!--
-->}}<!--
--><!--
--><!-- get the theories
-->{{#arraydefine: varSubtypeTheoriesarraySubtypeTheories<!--
-->|<!--
-->{{#ask:<!--
-->|sort=Element.Child<!--
-->|order=asc<!--
-->|link=none<!--
-->|limit=10000<!--
-->}}<!--
-->| , |unique<!--
-->}}<!-- arraydefine theories
--><!--
--><!--
--><!-- store the subobject
--><!-- store the subobject
-->{{#subobject:<!--
-->|SubObjectCategory=Topic Current Ontology<!--
-->|Term={{{term|}#var: varTerm}}<!--
-->|Topic={{#var: varTopic}}<!--
-->|Ontological Question Type=Subtypes<!--
-->|Community=varCommunity<!--
-->|Disjoint Group=varGroup<!--
-->|Disjoint Group Order={{PrintDisjointGroupOrder|disjointgroup=varGroup}}<!-- -->|Theory={{#arrayprint: varSubtypeTheoriesarraySubtypeTheories|,&#32;|@@@@|@@@@}}|+sep=,<!-- -->|Subtypes={{#arrayprint: varSubtypesarraySubtypes|,&#32;|@@@@|@@@@}}|+sep=,<!--
-->}}<!-- subobject
--><!--
--><!--
--><!--