Difference between revisions of "Template:Inheritance Theory"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Inheritance Theory" template. This template is to be used for ontological claims about the subtypes and supertypes. It is currently used by [[Form:Inheritance Theory]].
+
This is the "Inheritance Theory" template. This template is to be used for ontological claims about the subtypes and supertypes. It is currently used by [[Form:Inheritance Theory]].
 +
 
 +
Among other values, the template also stores a property <code><nowiki>Disjoint Group Order</nowiki></code> for the ease of sorting. It can have one of three possible values, depending on the value of <code><nowiki>Disjoint Group</nowiki></code>:
 +
* <code><nowiki>1</nowiki></code> - if <code><nowiki>Disjoint Group=Main</nowiki> to ensure that the disjoints in the main category are shown first.
 +
* <code><nowiki>2</nowiki></code> - if <code><nowiki>Disjoint Group</nowiki> anything but "Main" or empty, to ensure that these disjoints are presented after the main category.
 +
* <code><nowiki>3</nowiki></code> - if <code><nowiki>Disjoint Group</nowiki> is empty, in which case a property <code><nowiki>Disjoint Group=None</nowiki> is stored. The subtypes with <code><nowiki>Disjoint Group=None</nowiki> will be printed at the end - each subtype separately (one at a time) without being grouped.
  
 
It should be called in the following format:
 
It should be called in the following format:
Line 34: Line 39:
 
-->{{#set:Description First Paragraph={{PrintFirstParagraph|vartext={{{Description|}}}|}}|}}<!--
 
-->{{#set:Description First Paragraph={{PrintFirstParagraph|vartext={{{Description|}}}|}}|}}<!--
 
--><!--
 
--><!--
--><!-- set the disjoint group. If empty, set "None" for ease of use
+
--><!-- set the disjoint group and group order for the ease of sorting.
-->{{#set: Disjoint Group={{#if: {{{Disjoint Group|}}}|{{{Disjoint Group|}}}|None}}|}}<!--
+
-->{{#if: {{{Disjoint Group|}}}<!--
 +
-->|<!--
 +
  -->{{#ifeq: {{{Disjoint Group|}}}|Main<!--
 +
  -->|<!--
 +
    -->{#vardefine: varDisjointGroup|Main|}}|<!--
 +
    -->{#vardefine: varDisjointGroupOrder|1|}}|<!--
 +
  -->|<!--
 +
    -->{#vardefine: varDisjointGroup|{{{Disjoint Group|}}}|}}|<!--
 +
    -->{#vardefine: varDisjointGroupOrder|2|}}|<!--
 +
  -->}}<!-- if
 +
-->|<!-- empty: set disjoint group to None and order to 3.
 +
  -->{#vardefine: varDisjointGroup|None}}|<!--
 +
  -->{#vardefine: varDisjointGroupOrder|3|}}|<!--
 +
-->}}<!-- if
 +
-->{<!--
 +
--><!--
 +
-->{{#set: Disjoint Group={{#var: varDisjointGroup}}|Disjoint Group Order={{#var: varDisjointGroupOrder}}|}}<!--
 
--><!--
 
--><!--
 
--><!-- set the authors
 
--><!-- set the authors

Revision as of 16:38, 25 December 2022

This is the "Inheritance Theory" template. This template is to be used for ontological claims about the subtypes and supertypes. It is currently used by Form:Inheritance Theory.

Among other values, the template also stores a property Disjoint Group Order for the ease of sorting. It can have one of three possible values, depending on the value of Disjoint Group:

  • 1 - if Disjoint Group=Main to ensure that the disjoints in the main category are shown first.
  • 2 - if Disjoint Group anything but "Main" or empty, to ensure that these disjoints are presented after the main category.
  • 3 - if Disjoint Group is empty, in which case a property Disjoint Group=None is stored. The subtypes with Disjoint Group=None will be printed at the end - each subtype separately (one at a time) without being grouped.

It should be called in the following format:

{{Inheritance Theory
|Parent= 
|Child=
|Disjoint Group= // if empty, "None" will be saved for ease of processing
|Description=
|Formulated Year=
|Authors List=
|Resource=
|Formulation File=
|Prehistory=
|History=
|Page Status=
|Editor Notes=
}}

Edit the page to see the template text.