Changes

Jump to navigation Jump to search
no edit summary
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 QuestionsQuestion".
* <code><nowiki>Community</nowiki></code> - the community.
* <code><nowiki>Discipline</nowiki></code> - the discipline.
* <code><nowiki>QuestionTheory</nowiki></code> - the page for the accepted core questions of the discipline (uses question claim.* <code><nowiki>|+sep=,Question</nowiki></code>- the core questions (topic page)for ease of access.* <code><nowiki>TheorySorting Order</nowiki></code> - the pages for sorting order of the accepted core question claims for ease of access (uses .* <code><nowiki>|+sep=,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.
--><!-- no claims found: store an empty subobject
-->{{#subobject:<!--
-->|SubObjectCategory=Discipline Core QuestionsQuestion<!--
-->|Discipline={{{discipline|}}}<!--
-->|Community=varCommunity<!--
-->|Completeness=None<!--
-->|Theory=<!--
-->|Question=<!--
-->|Sorting Order=<!--
-->|Completeness=None<!--
-->}}<!-- subobject
--><!--
-->|<!--
--><!-- claims are found
--><!--
--><!-- get the question pages to store for the ease of access
-->{{#arraydefine: varQuestions<!--
-->|{{#ask:<!--
-->[[SubObjectCategory::Acceptance Record]]<!--
-->[[Topic::{{{discipline|}}}]]<!--
-->[[Community::varCommunity]]<!--
-->[[Still Accepted::true]]<!--
-->|?Element.Question<!--
-->|headers=hide<!--
-->|mainlabel=-<!--
-->|link={{{link|}}}<!--
-->|limit=10000<!--
-->}}<!--
-->| , |unique<!--
-->}}<!-- array define
-->{{#arrayunique: varQuestions}}<!-- remove duplicates
--><!--
--><!-- store the subobject
-->{{#subobject:<!--
-->|SubObjectCategory=Discipline Core Questions<!--
-->|Discipline={{{discipline|}}}<!--
-->|Community=varCommunity<!--
-->|Theory={{#arrayprint: varTheories|,|@@@@|@@@@}}|+sep=,<!--
-->|Question={{#arrayprint: varQuestions|,|@@@@|@@@@}}|+sep=,<!--
-->|Completeness=Complete<!--
-->}}<!-- 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
--><!--
-->}}<!-- arrayprint varCommunities
--><!--
-->}}<!-- if term
--></includeonly>

Navigation menu