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 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 by CommunityFrom Era=|Accepted From Year=|Accepted From Day=|Accepted FromMonth=|Accepted From Approximate=|Acceptance Indicators=|Superseded=|Still Accepted=|Accepted Until Era=|Accepted Until Year=|Accepted Until Day=|Accepted Until Month=|Accepted UntilApproximate=|Rejection Indicators=
}}
</pre>
The template creates a subobject with the following properties:
* <code><nowiki>SubObjectCategory</nowiki></code> = "Acceptance Record".
* <code><nowiki>TheoryElement</nowiki></code> - the theoryfull page name of the epistemic element.* <code><nowiki>Topic</nowiki></code> - the question questions the theory is trying to answer(used only for theories). 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 parent topics of the topics for ease of access (used only for theories). 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>Accepted by Community</nowiki></code> - the community that accepted the theoryelement.* <code><nowiki>Accepted From</nowiki></code> - the start of the period of acceptance; a special value "beginning" indicates that if empty, the theory 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 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; a special value "present" indicates that if empty, the theory 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
-->{{#subobject:<!--
-->|SubObjectCategory=Acceptance Record<!--
-->|TheoryElement={{FULLPAGENAME#var:varElement}}<!-- -->|Topic={{#showarrayprint: {{FULLPAGENAMEtopicsArray|,|}}|?+sep=,<!-- save the topics too for ease of access separated by the separator -->|Parent Topic={{#arrayprint: parentTopicsArray|,|link=none}}|+sep=,<!-- save the topic parent topics too for ease of access -->|Community={{{Community|}}}<!-- -->|Accepted From={{PrintDateValue|era={{{Accepted From Era|}}}|year={{{Accepted by CommunityFrom Year|}}}|month={{{Accepted From Month|}}}|day={{{Accepted From Day|}}}|}}<!-- -->|Accepted From Era={{#if: {{{Accepted From Year|}}}|{{{Accepted From Era|}}}|}}<!-- store era only if the year is given -->|Accepted From Year={{{Accepted From Year|}}}<!-- -->|Accepted From Month={{#if: {{{Accepted From Year|}}}|{{{Accepted From Month|}}}|}}<!-- store the month only if the year is given -->|Accepted From Day={{#if: {{{Accepted From Year|}}}|{{#if: {{{Accepted From Month|}}}|{{{Accepted by CommunityFrom Day|}}}|}}|}}<!-- store the day only if the year and month are given -->|Accepted FromApproximate={{#if: {{{Accepted FromYear|}}}|{{{Accepted FromApproximate|}}}|}}<!-- 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 elements. Yes is the default. -->|Accepted Until={{#ifeq:{{{Still Accepted|}}}|No|{{PrintDateValue|era={{{Accepted Until Era|}}}|year={{{Accepted Until Year|}}}|month={{{Accepted Until Month|}}}|beginningday={{{Accepted Until Day|}}}|}}|}}<!-- -->|Accepted UntilEra={{#ifeq:{{{Still Accepted|}}}|No|{{{Accepted Until Era|}}}|}}<!-- store era only ifnot still accepted -->|Accepted Until Year={{#ifeq: {{{Still Accepted|}}}|No|{{{Accepted UntilYear|}}}|}}<!-- store year only if not still accepted -->|Accepted Until Month={{#ifeq:{{{Still Accepted|}}}|No|{{#if: {{{Accepted UntilYear|}}}|present{{{Accepted Until Month|}}}|}}|}}<!-- store the month only if not still accepted and the year is given -->|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