Difference between revisions of "Template:SetDisciplineCoreQuestions"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
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: | 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: | ||
− | * <code><nowiki>SubObjectCategory</nowiki></code> = "Discipline Core | + | * <code><nowiki>SubObjectCategory</nowiki></code> = "Discipline Core Question". |
* <code><nowiki>Community</nowiki></code> - the community. | * <code><nowiki>Community</nowiki></code> - the community. | ||
* <code><nowiki>Discipline</nowiki></code> - the discipline. | * <code><nowiki>Discipline</nowiki></code> - the discipline. | ||
− | * <code><nowiki> | + | * <code><nowiki>Theory</nowiki></code> - the page for the accepted core question claim. |
− | * <code><nowiki> | + | * <code><nowiki>Question</nowiki></code> - the core questions (topic page) for ease of access. |
+ | * <code><nowiki>Sorting Order</nowiki></code> - the sorting order of the question. | ||
+ | * <code><nowiki>Completeness</nowiki></code> - {None, Complete, Partial}. | ||
'''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 31: | ||
--><!-- no claims found: store an empty subobject | --><!-- no claims found: store an empty subobject | ||
-->{{#subobject:<!-- | -->{{#subobject:<!-- | ||
− | -->|SubObjectCategory=Discipline Core | + | -->|SubObjectCategory=Discipline Core Question<!-- |
-->|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 Question<!-- | ||
+ | -->|Discipline={{{discipline|}}}<!-- | ||
+ | -->|Community=varCommunity<!-- | ||
+ | -->|Theory=varTheory<!-- | ||
+ | -->|Question={{#var: varQuestion}}<!-- | ||
+ | -->|Sorting Order={{#var: varSortingOrder}}<!-- | ||
+ | -->|Completeness=Partial<!-- | ||
+ | -->}}<!-- subobject | ||
+ | |||
+ | -->}}<!-- arrayprint varTheories | ||
+ | |||
-->}}<!-- ifexpr | -->}}<!-- ifexpr | ||
− | + | ||
-->}}<!-- arrayprint varCommunities | -->}}<!-- arrayprint varCommunities | ||
− | + | ||
-->}}<!-- if term | -->}}<!-- if term | ||
--></includeonly> | --></includeonly> |
Revision as of 10:59, 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 Question".Community
- the community.Discipline
- the discipline.Theory
- the page for the accepted core question claim.Question
- the core questions (topic page) for ease of access.Sorting Order
- the sorting order of the question.Completeness
- {None, Complete, Partial}.
NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.
Parameters:
|discipline=
- the discipline page.