Difference between revisions of "Template:Acceptance Record"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(21 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.
+
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
|Accepted by Community=
+
|Target= // the full page name of the epistemic element. If empty, the {{FULLPAGENAME}} will be used instead
 +
|Community=
 
|Accepted From Era=
 
|Accepted From Era=
 
|Accepted From Year=
 
|Accepted From Year=
Line 11: Line 12:
 
|Accepted From Month=
 
|Accepted From Month=
 
|Accepted From Approximate=
 
|Accepted From Approximate=
 +
|Acceptance Indicators=
 +
|Superseded=
 +
|Still Accepted=
 
|Accepted Until Era=
 
|Accepted Until Era=
 
|Accepted Until Year=
 
|Accepted Until Year=
Line 16: Line 20:
 
|Accepted Until Month=
 
|Accepted Until Month=
 
|Accepted Until Approximate=
 
|Accepted Until Approximate=
 +
|Rejection Indicators=
 
}}
 
}}
 
</pre>
 
</pre>
Line 21: 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 theory.
+
* <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.
+
* <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>Accepted by Community</nowiki></code> - the community that accepted the theory.
+
* <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 was accepted since the inception of the community.  
+
* <code><nowiki>Community</nowiki></code> - the community that accepted the element.
* <code><nowiki>Accepted Until</nowiki></code> - the end of the period of acceptance; if empty, the theory is still accepted by the community.  
+
* <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>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.  
  
All date fields include all normal date parts (Year, Month, etc.).
+
'''NOTE:''' All date fields include all normal date parts (Year, Month, Day, etc.).
  
 
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
  -->|Accepted by Community={{{Accepted by Community|}}}<!--  
+
-->|Parent Topic={{#arrayprint: parentTopicsArray|,|}}|+sep=,<!-- save the parent 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={{PrintDateValue|era={{{Accepted From Era|}}}|year={{{Accepted From 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 Era={{#if: {{{Accepted From Year|}}}|{{{Accepted From Era|}}}|}}<!-- store era only if the year is given  
Line 43: Line 71:
 
  -->|Accepted From Day={{#if: {{{Accepted From Year|}}}|{{#if: {{{Accepted From Month|}}}|{{{Accepted From Day|}}}|}}|}}<!-- store the day only if the year and month are given
 
  -->|Accepted From Day={{#if: {{{Accepted From Year|}}}|{{#if: {{{Accepted From Month|}}}|{{{Accepted From Day|}}}|}}|}}<!-- store the day only if the year and month are given
 
  -->|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  
  -->|Accepted Until={{PrintDateValue|era={{{Accepted Until Era|}}}|year={{{Accepted Until Year|}}}|month={{{Accepted Until Month|}}}|day={{{Accepted Until Day|}}}|}}<!--  
+
-->|Acceptance Indicators={{{Acceptance Indicators|}}}<!--
  -->|Accepted Until Era={{#if: {{{Accepted Until Year|}}}|{{{Accepted Until Era|}}}|}}<!-- store era only if the year is given
+
-->|Still Accepted={{{Still Accepted|Yes}}}<!-- this field for the ease of querying currently accepted elements. Yes is the default.
  -->|Accepted Until Year={{{Accepted Until Year|}}}<!--  
+
  -->|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 Month={{#if: {{{Accepted Until Year|}}}|{{{Accepted Until Month|}}}|}}<!-- store the month only if the year is given
+
  -->|Accepted Until Era={{#ifeq:{{{Still Accepted|}}}|No|{{{Accepted Until Era|}}}|}}<!-- store era only if not still accepted
  -->|Accepted Until Day={{#if: {{{Accepted Until Year|}}}|{{#if: {{{Accepted Until Month|}}}|{{{Accepted Until Day|}}}|}}|}}<!-- store the day only if the year and month are given
+
  -->|Accepted Until Year={{#ifeq:{{{Still Accepted|}}}|No|{{{Accepted Until Year|}}}|}}<!-- store year only if not still accepted
  -->|Accepted Until Approximate={{#if: {{{Accepted Until Year|}}}|{{{Accepted Until Approximate|}}}|}}<!-- store approximate only if the year is given  
+
  -->|Accepted Until Month={{#ifeq:{{{Still Accepted|}}}|No|{{#if: {{{Accepted Until Year|}}}|{{{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<!--
+
--><!-- 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.