Difference between revisions of "Template:Inheritance Theory"
Jump to navigation
Jump to search
(18 intermediate revisions by the same user not shown) | |||
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></code> to ensure that the disjoints in the main category are shown first. | ||
+ | * <code><nowiki>2</nowiki></code> - if <code><nowiki>Disjoint Group</nowiki></code> is 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></code> is empty, in which case a property <code><nowiki>Disjoint Group=None</nowiki></code> is stored. The subtypes with <code><nowiki>Disjoint Group=None</nowiki></code> 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 7: | Line 12: | ||
|Parent= | |Parent= | ||
|Child= | |Child= | ||
+ | |Disjoint Group= // if empty, "None" will be saved for ease of processing | ||
|Description= | |Description= | ||
|Formulated Year= | |Formulated Year= | ||
Line 19: | Line 25: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
− | </noinclude><includeonly>{{#set:Parent={{{Parent|}}}|Child={{{Child|}}}|Formulated Year={{{Formulated Year|}}}|Description={{{Description|}}}|Resource={{{Resource|}}}|Formulation File={{{Formulation File|}}}|Theory Type=Descriptive|Order=1|Page Status={{{Page Status|Stub}}}|Editor Notes={{{Editor Notes|}}}|}}<!-- | + | </noinclude><includeonly><!-- |
+ | -->{{#set:<!-- | ||
+ | -->Parent={{{Parent|}}}|<!-- | ||
+ | -->Child={{{Child|}}}|<!-- | ||
+ | -->Subject={{{Parent|}}}|<!-- | ||
+ | -->Object={{{Child|}}}|<!-- | ||
+ | -->Formulated Year={{{Formulated Year|}}}|<!-- | ||
+ | -->Description={{#replace:{{{Description|}}}|CiteRef::|CITE_}}|<!-- replace CiteRef's when storing the value to make sure that the references are shown properly | ||
+ | -->Resource={{{Resource|}}}|<!-- | ||
+ | -->Formulation File={{{Formulation File|}}}|<!-- | ||
+ | -->Authors List={{{Authors List|}}}|<!-- | ||
+ | -->Theory Type=Descriptive|<!-- | ||
+ | -->Order=1|<!-- | ||
+ | -->Page Status={{{Page Status|Stub}}}|<!-- | ||
+ | -->Editor Notes={{{Editor Notes|}}}|<!-- | ||
+ | -->}}<!-- | ||
--><!-- | --><!-- | ||
--><!-- set the two topics | --><!-- set the two topics | ||
Line 28: | Line 49: | ||
--><!-- | --><!-- | ||
--><!-- set the combined formulation | --><!-- set the combined formulation | ||
− | -->{{#set:Formulation Text={{{Parent|}}} is a supertype of {{{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. | ||
+ | -->{{#if: {{{Disjoint Group|}}}<!-- | ||
+ | -->|<!-- group is given | ||
+ | -->{{#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 the first paragraph of the description so that it can be used on the topic page | --><!-- set the first paragraph of the description so that it can be used on the topic page | ||
-->{{#set:Description First Paragraph={{PrintFirstParagraph|vartext={{{Description|}}}|}}|}}<!-- | -->{{#set:Description First Paragraph={{PrintFirstParagraph|vartext={{{Description|}}}|}}|}}<!-- | ||
+ | --><!-- | ||
+ | --><!-- | ||
+ | -->{{#set: Disjoint Group={{#var: varDisjointGroup}}|Disjoint Group Order={{#var: varDisjointGroupOrder}}|}}<!-- | ||
--><!-- | --><!-- | ||
--><!-- set the authors | --><!-- set the authors | ||
Line 59: | Line 99: | ||
--><!-- | --><!-- | ||
--> | --> | ||
− | {{PrintTheoryFormulation|theory={{FULLPAGENAME}}|}}<!-- | + | {{PrintTheoryFormulation|theory={{FULLPAGENAME}}|skipquestions=yes}}<!-- |
-->{{#if: {{{Formulation File|}}}|<nowiki/> | -->{{#if: {{{Formulation File|}}}|<nowiki/> | ||
Line 67: | Line 107: | ||
{{PrintTheoryTitleAuthorYearResource|theory={{FULLPAGENAME}}|}} {{#if: {{{Alternate Titles|}}}|It is also known as '''{{{Alternate Titles|}}}'''. }}<!-- | {{PrintTheoryTitleAuthorYearResource|theory={{FULLPAGENAME}}|}} {{#if: {{{Alternate Titles|}}}|It is also known as '''{{{Alternate Titles|}}}'''. }}<!-- | ||
− | -->{{PrintTheoryCurrentlyAcceptedInCommunities|theory={{FULLPAGENAME}}|skiptheorytitle=yes|link= | + | -->{{PrintTheoryCurrentlyAcceptedInCommunities|theory={{FULLPAGENAME}}|skiptheorytitle=yes|link=yes|communitiesfirst=no}}<!-- |
--><!-- print prehistory (collapsed) if any | --><!-- print prehistory (collapsed) if any | ||
--> | --> | ||
Line 117: | Line 157: | ||
--> | --> | ||
==Questions Answered== | ==Questions Answered== | ||
− | {{FULLPAGENAME}} is an attempt to answer the following questions: {{ | + | {{FULLPAGENAME}} is an attempt to answer the following questions: {{PrintOntologicalTheoryTopicQuestions|theory={{FULLPAGENAME}}|link=all|pretty=true}}. |
<!-- | <!-- | ||
--><!-- | --><!-- | ||
Line 131: | Line 171: | ||
{{PrintTheoryReasons|theory={{FULLPAGENAME}}|default=No reasons are indicated for this theory.|showedit=yes}} | {{PrintTheoryReasons|theory={{FULLPAGENAME}}|default=No reasons are indicated for this theory.|showedit=yes}} | ||
− | {{#formlink:form=Reason|link text= | + | If a reason supporting this theory is missing, please {{#formlink:form=Reason|link text=add it here|popup|reload|query string=Reason[Conclusion]={{FULLPAGENAME}}|}}.<!-- |
--><!-- | --><!-- | ||
− | --><!-- add | + | --><!-- add categories |
--><!-- | --><!-- | ||
-->[[Category:Epistemic Element]]<!-- | -->[[Category:Epistemic Element]]<!-- |
Latest revision as of 21:18, 27 February 2023
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.