Changes

Jump to navigation Jump to search
no edit summary
<noinclude>
This is the "Acceptance Record" template. This template is used from within all theory epistemic element templates to create subobjects for all individual acceptances/rejections. The template can be in principle used by any type of entity that can be accepted. Normally, the template is called from the same page for which the record should be created. If it should be called from another page, the Target parameter should indicate the page for which an acceptance record is to be created. At the moment it the template is used by theories and topics.
It should be called in the following format:
<pre>
{{Acceptance Record
|Target= // the full page name of the epistemic element. If empty, the {{FULLPAGENAME}} will be used instead
|Community=
|Accepted From Era=
|Accepted From Approximate=
|Acceptance Indicators=
|Superseded=
|Still Accepted=
|Accepted Until Era=
The template creates a subobject with the following properties:
* <code><nowiki>SubObjectCategory</nowiki></code> = "Acceptance Record".
* <code><nowiki>TheoryElement</nowiki></code> - the full page name of the theory/topicepistemic element.* <code><nowiki>Topic</nowiki></code> - the question questions the theory is trying to answer (empty used only for topicstheories).If a theory answers more than one question, the values are stored in a comma separated fashion, i.e. with <code><nowiki>|+sep=,</nowiki></code> * <code><nowiki>Parent Topic</nowiki></code> - the topic's parent topic topics of the topics for ease of access (empty used only for topicstheories). If there are more than one parent topic, the values are stored in a comma separated fashion, i.e. with <code><nowiki>|+sep=,</nowiki></code>.* <code><nowiki>Community</nowiki></code> - the community that accepted the theory/topicelement.* <code><nowiki>Accepted From</nowiki></code> - the start of the period of acceptance; if empty, the theory/topic element was accepted since the inception of the community. * <code><nowiki>Superseded</nowiki></code> - The list of elements superseded by the target. If not empty, the acceptance records of the superseded elements will be adjusted such that their rejection date matches the acceptance date of this element. '''This is a work in progress.'''* <code><nowiki>Still Accepted</nowiki></code> - if Yes, the theory/topic element is still accepted and <code><nowiki>Accepted Until</nowiki></code> fields are empty* <code><nowiki>Accepted Until</nowiki></code> - the end of the period of acceptance; if empty, the theory/topic element is still accepted by the community.
'''NOTE:''' All date fields include all normal date parts (Year, Month, Day, etc.).
Edit the page to see the template text.
</noinclude><includeonly><!--
--><!--
--><!-- get the element from the target. If not given, load from the full page name
-->{{#if: {{{Target|}}}<!--
-->|{{#vardefine: varElement|{{{Target|}}}|}}<!--
-->|{{#vardefine: varElement|{{FULLPAGENAME}}|}}<!--
-->}}<!-- if
--><!--
-->{{#arraydefine: topicsArray|{{GetPropertyValues|object={{#var:varElement}}|property=Topic|link=none}} }}<!--
-->{{#arraydefine: parentTopicsArray|<!--
--><!--
-->{{#arrayprint:topicsArray||varTopic|<!--
--><!--
-->{{GetPropertyValues|object=varTopic|property=Parent Topic|link=none}},<!--
--><!--
-->}}<!-- arrayprint
-->|,|}}<!-- arraydefine
-->{{#arrayunique: parentTopicsArray}}<!--
--><!--
--><!--
--><!-- store as a subobject
-->{{#vardefine: varTopic|{{#show: {{FULLPAGENAME}}|?Topic|link=none}}|}}<!--
-->{{#if: {{#var:varTopic}}|{{#vardefine: varParentTopic|{{#show: {{#var:varTopic}}|?Parent Topic|link=none}}|}}|}}<!--
-->{{#subobject:<!--
-->|SubObjectCategory=Acceptance Record<!--
-->|TheoryElement={{FULLPAGENAME#var:varElement}}<!-- -->|Topic={{#vararrayprint:varTopictopicsArray|,|}}|+sep=,<!-- save the topic topics too for ease of accessseparated by the separator -->|Parent Topic={{#vararrayprint:varParentTopicparentTopicsArray|,|}}|+sep=,<!-- save the parent topic topics too for ease of access
-->|Community={{{Community|}}}<!--
-->|Accepted From={{PrintDateValue|era={{{Accepted From Era|}}}|year={{{Accepted From Year|}}}|month={{{Accepted From Month|}}}|day={{{Accepted From Day|}}}|}}<!--
-->|Accepted From Approximate={{#if: {{{Accepted From Year|}}}|{{{Accepted From Approximate|}}}|}}<!-- store approximate only if the year is given
-->|Acceptance Indicators={{{Acceptance Indicators|}}}<!--
-->|Still Accepted={{{Still Accepted|Yes}}}<!-- this field for the ease of querying currently accepted theorieselements. Yes is the default.
-->|Accepted Until={{#ifeq:{{{Still Accepted|}}}|No|{{PrintDateValue|era={{{Accepted Until Era|}}}|year={{{Accepted Until Year|}}}|month={{{Accepted Until Month|}}}|day={{{Accepted Until Day|}}}|}}|}}<!--
-->|Accepted Until Era={{#ifeq:{{{Still Accepted|}}}|No|{{{Accepted Until Era|}}}|}}<!-- store era only if not still accepted
-->|Accepted Until Day={{#ifeq:{{{Still Accepted|}}}|No|{{#if: {{{Accepted Until Year|}}}|{{#if: {{{Accepted Until Month|}}}|{{{Accepted Until Day|}}}|}}|}}|}}<!-- store the day only if not still accepted and the year and month are given
-->|Accepted Until Approximate={{#ifeq:{{{Still Accepted|}}}|No|{{#if: {{{Accepted Until Year|}}}|{{{Accepted Until Approximate|}}}|}}|}}<!-- store approximate only if not still accepted and the year is given
-->|Rejection Indicators={{#ifeq:{{{Still Accepted|}}}|No|{{{Rejection Indicators|}}}|}}<!-- store rejection indicators only if not accepted
-->}}<!--
--><!--
--><!-- nothing to print
--></includeonly>

Navigation menu