Difference between revisions of "Template:Inheritance Theory"
Jump to navigation
Jump to search
Line 35: | Line 35: | ||
--><!-- set the combined formulation | --><!-- set the combined formulation | ||
-->{{#set:Formulation Text=[[{{{Child|}}}]] is a subtype of [[{{{Parent|}}}]], i.e. {{lc:{{{Parent|}}}|}} is a supertype of {{lc:{{{Child|}}}|}}.}}<!-- | -->{{#set:Formulation Text=[[{{{Child|}}}]] is a subtype of [[{{{Parent|}}}]], i.e. {{lc:{{{Parent|}}}|}} is a supertype of {{lc:{{{Child|}}}|}}.}}<!-- | ||
− | |||
− | |||
− | |||
--><!-- | --><!-- | ||
--><!-- set the disjoint group and group order for the ease of sorting. | --><!-- set the disjoint group and group order for the ease of sorting. | ||
-->{{#if: {{{Disjoint Group|}}}<!-- | -->{{#if: {{{Disjoint Group|}}}<!-- | ||
− | -->|<!-- | + | -->|<!-- group is given |
-->{{#ifeq: {{{Disjoint Group|}}}|Main<!-- | -->{{#ifeq: {{{Disjoint Group|}}}|Main<!-- | ||
-->|<!-- | -->|<!-- | ||
− | -->{{#vardefine: varDisjointGroup|Main|}} | + | -->{{#vardefine: varDisjointGroup|Main|}}<!-- |
− | -->{{#vardefine: varDisjointGroupOrder|1}} | + | -->{{#vardefine: varDisjointGroupOrder|1}}<!-- |
-->|<!-- | -->|<!-- | ||
− | -->{{#vardefine: varDisjointGroup|{{{Disjoint Group|}}}|}} | + | -->{{#vardefine: varDisjointGroup|{{{Disjoint Group|}}}|}}<!-- |
− | -->{{#vardefine: varDisjointGroupOrder|2}} | + | -->{{#vardefine: varDisjointGroupOrder|2}}<!-- |
-->}}<!-- if | -->}}<!-- if | ||
-->|<!-- empty: set disjoint group to None and order to 3. | -->|<!-- empty: set disjoint group to None and order to 3. | ||
− | -->{{#vardefine: varDisjointGroup|None}} | + | -->{{#vardefine: varDisjointGroup|None}}<!-- |
− | -->{{#vardefine: varDisjointGroupOrder|3}} | + | -->{{#vardefine: varDisjointGroupOrder|3}}<!-- |
-->}}<!-- if | -->}}<!-- if | ||
+ | --><!-- | ||
+ | --><!-- set the first paragraph of the description so that it can be used on the topic page | ||
+ | -->{{#set:Description First Paragraph={{PrintFirstParagraph|vartext={{{Description|}}}|}}|}}<!-- | ||
--><!-- | --><!-- | ||
--><!-- | --><!-- |
Revision as of 16:50, 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
- ifDisjoint Group=Main
to ensure that the disjoints in the main category are shown first.2
- ifDisjoint Group
is anything but "Main" or empty, to ensure that these disjoints are presented after the main category.3
- ifDisjoint Group
is empty, in which case a propertyDisjoint Group=None
is stored. The subtypes withDisjoint 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.