Difference between revisions of "Template:SetTermOntologyDisjointness"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
* <code><nowiki>Ontological Question Type</nowiki></code> - Disjointness | * <code><nowiki>Ontological Question Type</nowiki></code> - Disjointness | ||
* <code><nowiki>Theory</nowiki></code> - the page for the accepted theory for ease of access. | * <code><nowiki>Theory</nowiki></code> - the page for the accepted theory for ease of access. | ||
− | * <code><nowiki> | + | * <code><nowiki>Disjoints</nowiki></code> - a comma separated list of disjoint classes (uses <code><nowiki>|+sep=,</nowiki></code>). |
'''NOTE:''' As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values. | '''NOTE:''' As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values. | ||
Line 29: | Line 29: | ||
-->{{#arraydefine: varTheories|{{PrintTopicAnswerAcceptedInCommunity|topic={{#var: varTopic}}|community=varCommunity|link=none}}|,|}}<!-- | -->{{#arraydefine: varTheories|{{PrintTopicAnswerAcceptedInCommunity|topic={{#var: varTopic}}|community=varCommunity|link=none}}|,|}}<!-- | ||
-->{{#arrayunique: varTheories}}<!-- remove duplicates and empty values | -->{{#arrayunique: varTheories}}<!-- remove duplicates and empty values | ||
− | -->{{# | + | -->{{#ifexpr: {{#arraysize:varTheories}} = 0<!-- check if the array exists |
− | -->| | + | -->|<!-- |
--><!-- no claims found: store a subobject leaving Disjoints empty | --><!-- no claims found: store a subobject leaving Disjoints empty | ||
-->{{#subobject:<!-- | -->{{#subobject:<!-- | ||
Line 43: | Line 43: | ||
--><!-- | --><!-- | ||
-->|<!-- | -->|<!-- | ||
− | --><!-- claims are found: | + | --><!-- claims are found: store subobjects for each theory |
− | -->{{# | + | -->{{#arrayprint: varTheories||varTheory<!-- |
− | + | -->|<!-- | |
− | + | --><!-- | |
− | + | --><!-- store the subobject | |
− | + | -->{{#subobject:<!-- | |
− | + | -->|SubObjectCategory=Topic Current Ontology<!-- | |
− | + | -->|Term={{{term|}}}<!-- | |
− | + | -->|Topic={{#var: varTopic}}<!-- | |
− | + | -->|Ontological Question Type=Disjointness<!-- | |
− | + | -->|Community=varCommunity<!-- | |
− | + | -->|Theory=varTheory<!-- | |
− | -->}}<!-- | + | -->|Disjoints={{PrintArray|printarray={{#show: varTheory|?Disjoint Classes|link=none}}|excludearray={{{term|}}}|}}|+sep=,<!-- |
+ | -->}}<!-- subobject | ||
+ | --><!-- | ||
+ | -->}}<!-- array print | ||
--><!-- | --><!-- | ||
− | -->}}<!-- | + | -->}}<!-- ifexpr |
+ | --><!-- | ||
-->}}<!-- array print | -->}}<!-- array print | ||
--><!-- | --><!-- | ||
-->}}<!-- if term | -->}}<!-- if term | ||
--></includeonly> | --></includeonly> |
Latest revision as of 21:01, 24 December 2022
This template is used to save the currently accepted existence claims of the given class.
For each community where the term is currently accepted, the template searches for existence claims, and if a theory is found, creates a subobject with the following properties:
SubObjectCategory
= "Topic Current Ontology".Community
- the community that accepts the theory.Term
- the term page. Note that this should be the definitional topic page, not its the page for the respective ontological question.Topic
- the page for the respective ontological question for ease of access.Ontological Question Type
- DisjointnessTheory
- the page for the accepted theory for ease of access.Disjoints
- a comma separated list of disjoint classes (uses|+sep=,
).
NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.
Parameters:
|term=
- the term page.