Difference between revisions of "Template:SetDisciplineCoreQuestions"
Jump to navigation
Jump to search
Line 32: | Line 32: | ||
-->|Discipline={{{discipline|}}}<!-- | -->|Discipline={{{discipline|}}}<!-- | ||
-->|Community=varCommunity<!-- | -->|Community=varCommunity<!-- | ||
− | |||
-->|Theory=<!-- | -->|Theory=<!-- | ||
-->|Question=<!-- | -->|Question=<!-- | ||
+ | -->|Sorting Order=<!-- | ||
+ | -->|Completeness=None<!-- | ||
-->}}<!-- subobject | -->}}<!-- subobject | ||
--><!-- | --><!-- | ||
-->|<!-- | -->|<!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
--><!-- | --><!-- | ||
+ | --><!-- claims are found: store subobjects for each theory | ||
+ | -->{{#arrayprint: varTheories||varTheory<!-- | ||
+ | -->|<!-- | ||
+ | |||
+ | --><!-- get the question and the sorting order | ||
+ | |||
+ | -->{{#vardefine: varQuestion|{{#show: varTheory|?Question|link=none}}}}<!-- | ||
+ | -->{{#vardefine: varSortingOrder|{{#show: {{#var:varQuestion}}|?Sorting Order|link=none}}}}<!-- | ||
+ | |||
+ | --><!-- store the subobject | ||
+ | |||
+ | -->{{#subobject:<!-- | ||
+ | -->|SubObjectCategory=Discipline Core Questions<!-- | ||
+ | -->|Discipline={{{discipline|}}}<!-- | ||
+ | -->|Community=varCommunity<!-- | ||
+ | -->|Theory=varTheory<!-- | ||
+ | -->|Question={{#var: varQuestion}}<!-- | ||
+ | -->|Sorting Order={{#var: varSortingOrder}}<!-- | ||
+ | -->|Completeness=Complete<!-- | ||
+ | -->}}<!-- subobject | ||
+ | |||
+ | -->}}<!-- arrayprint varTheories | ||
+ | |||
-->}}<!-- ifexpr | -->}}<!-- ifexpr | ||
− | + | ||
-->}}<!-- arrayprint varCommunities | -->}}<!-- arrayprint varCommunities | ||
− | + | ||
-->}}<!-- if term | -->}}<!-- if term | ||
--></includeonly> | --></includeonly> |
Revision as of 10:49, 29 June 2024
This template is used to save the currently accepted core question claims of the given discipline.
For each community where the discipline has core questions, the template searches for core question claims and, if found, creates subobjects (one for each association claim) with the following properties:
SubObjectCategory
= "Discipline Core Questions".Community
- the community.Discipline
- the discipline.Question
- the core questions of the discipline (uses|+sep=,
).Theory
- the pages for the accepted core question claims for ease of access (uses|+sep=,
).
NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.
Parameters:
|discipline=
- the discipline page.