Difference between revisions of "Template:Acceptance Record"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Acceptance Record" template. This template is used from within all theory 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. At the moment it is used by theories and topics.
+
This is the "Acceptance Record" template. This template is used from within all 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:
 
It should be called in the following format:
 
<pre>
 
<pre>
 
{{Acceptance Record
 
{{Acceptance Record
 +
|Target= // the full page name of the epistemic element. If empty, the {{FULLPAGENAME}} will be used instead
 
|Community=
 
|Community=
 
|Accepted From Era=
 
|Accepted From Era=
Line 12: Line 13:
 
|Accepted From Approximate=
 
|Accepted From Approximate=
 
|Acceptance Indicators=
 
|Acceptance Indicators=
 +
|Superseded=
 
|Still Accepted=
 
|Still Accepted=
 
|Accepted Until Era=
 
|Accepted Until Era=
Line 24: Line 26:
 
The template creates a subobject with the following properties:
 
The template creates a subobject with the following properties:
 
* <code><nowiki>SubObjectCategory</nowiki></code> = "Acceptance Record".
 
* <code><nowiki>SubObjectCategory</nowiki></code> = "Acceptance Record".
* <code><nowiki>Theory</nowiki></code> - the full page name of the theory/topic.
+
* <code><nowiki>Element</nowiki></code> - the full page name of the epistemic element.
* <code><nowiki>Topic</nowiki></code> - the question the theory is trying to answer (empty for topics).
+
* <code><nowiki>Topic</nowiki></code> - the 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>Community</nowiki></code> - the community that accepted the theory/topic.
+
* <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 From</nowiki></code> - the start of the period of acceptance; if empty, the theory/topic was accepted since the inception of the community.  
+
* <code><nowiki>Community</nowiki></code> - the community that accepted the element.
* <code><nowiki>Still Accepted</nowiki></code> - if Yes, the theory/topic is still accepted and <code><nowiki>Accepted Until</nowiki></code> fields are empty
+
* <code><nowiki>Accepted From</nowiki></code> - the start of the period of acceptance; if empty, the element was accepted since the inception of the community.  
* <code><nowiki>Accepted Until</nowiki></code> - the end of the period of acceptance; if empty, the theory/topic is still accepted by 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; if empty, the element is still accepted by the community.  
  
 
'''NOTE:''' All date fields include all normal date parts (Year, Month, Day, etc.).
 
'''NOTE:''' All date fields include all normal date parts (Year, Month, Day, etc.).
Line 35: Line 39:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly><!--
 
</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
 
--><!-- store as a subobject
 
-->{{#subobject:<!--  
 
-->{{#subobject:<!--  
 
  -->|SubObjectCategory=Acceptance Record<!--  
 
  -->|SubObjectCategory=Acceptance Record<!--  
  -->|Theory={{FULLPAGENAME}}<!--  
+
  -->|Element={{#var:varElement}}<!--  
  -->|Topic={{#show: {{FULLPAGENAME}}|?Topic|link=none}}<!-- save the topic too for ease of access
+
  -->|Topic={{#arrayprint: topicsArray|,|}}|+sep=,<!-- save the topics too for ease of access separated by the separator
 +
-->|Parent Topic={{#arrayprint: parentTopicsArray|,|}}|+sep=,<!-- save the parent topics too for ease of access
 
  -->|Community={{{Community|}}}<!--  
 
  -->|Community={{{Community|}}}<!--  
 
  -->|Accepted From={{PrintDateValue|era={{{Accepted From Era|}}}|year={{{Accepted From Year|}}}|month={{{Accepted From Month|}}}|day={{{Accepted From Day|}}}|}}<!--  
 
  -->|Accepted From={{PrintDateValue|era={{{Accepted From Era|}}}|year={{{Accepted From Year|}}}|month={{{Accepted From Month|}}}|day={{{Accepted From Day|}}}|}}<!--  
Line 48: Line 72:
 
  -->|Accepted From Approximate={{#if: {{{Accepted From Year|}}}|{{{Accepted From Approximate|}}}|}}<!-- store approximate only if the year is given  
 
  -->|Accepted From Approximate={{#if: {{{Accepted From Year|}}}|{{{Accepted From Approximate|}}}|}}<!-- store approximate only if the year is given  
 
  -->|Acceptance Indicators={{{Acceptance Indicators|}}}<!--  
 
  -->|Acceptance Indicators={{{Acceptance Indicators|}}}<!--  
  -->|Still Accepted={{{Still Accepted|Yes}}}<!-- this field for the ease of querying currently accepted theories. Yes is the default.
+
  -->|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|}}}|day={{{Accepted Until Day|}}}|}}|}}<!--  
 
  -->|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 Era={{#ifeq:{{{Still Accepted|}}}|No|{{{Accepted Until Era|}}}|}}<!-- store era only if not still accepted  
Line 55: Line 79:
 
  -->|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 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  
 
  -->|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={{{Rejection Indicators|}}}<!--
+
  -->|Rejection Indicators={{#ifeq:{{{Still Accepted|}}}|No|{{{Rejection Indicators|}}}|}}<!-- store rejection indicators only if not accepted
 
-->}}<!--
 
-->}}<!--
 
--><!--  
 
--><!--  
 
--><!-- nothing to print  
 
--><!-- nothing to print  
 
--></includeonly>
 
--></includeonly>

Latest revision as of 19:59, 3 February 2023

This is the "Acceptance Record" template. This template is used from within all 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:

{{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 Year=
|Accepted From Day=
|Accepted From Month=
|Accepted From Approximate=
|Acceptance Indicators=
|Superseded=
|Still Accepted=
|Accepted Until Era=
|Accepted Until Year=
|Accepted Until Day=
|Accepted Until Month=
|Accepted Until Approximate=
|Rejection Indicators=
}}

The template creates a subobject with the following properties:

  • SubObjectCategory = "Acceptance Record".
  • Element - the full page name of the epistemic element.
  • Topic - the 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 |+sep=,
  • Parent Topic - 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 |+sep=,.
  • Community - the community that accepted the element.
  • Accepted From - the start of the period of acceptance; if empty, the element was accepted since the inception of the community.
  • Superseded - 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.
  • Still Accepted - if Yes, the element is still accepted and Accepted Until fields are empty
  • Accepted Until - the end of the period of acceptance; if empty, the 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.