Difference between revisions of "Template:PrintTheoryTitleAuthorYearResource"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template is used to format the sentence that this formulation was suggested by such-and-such author in year such-and-such. It includes:
+
This template is used to format the sentence that this formulation/definition was suggested by such-and-such author in year such-and-such. It includes:
 
* the title of the theory;
 
* the title of the theory;
 
* the names of the authors;
 
* the names of the authors;
Line 24: Line 24:
 
   -->}}<!-- if
 
   -->}}<!-- if
 
   --><!--
 
   --><!--
   --><!-- find if there are any other theories with this exact title
+
   -->{{#ifeq: {{#show: {{{theory|}}}|?Theory Type}}|Definition<!--
  -->{{#vardefine: varCount|{{#ask: [[Category:Theory]] [[Title::{{#var:varTitle}}]]|format=count}} |}}<!-- vardefine Count
+
  -->|<!-- definition
  --><!--
+
    -->This definition of ''{{#var: varTitle}}'' was formulated by&#32;<!--
  -->{{#switch: {{#var: varCount}}<!--
+
  -->|<!-- nondefinition
  -->|0|1=''{{#var: varTitle}}'' was formulated by&#32;<!--
+
    --><!-- find if there are any other theories with this exact title
  -->|This version of ''{{#var: varTitle}}'' was formulated by&#32;<!--
+
    -->{{#vardefine: varCount|{{#ask: [[Category:Theory]] [[Title::{{#var:varTitle}}]]|format=count}} |}}<!-- vardefine Count
  -->}}<!-- switch varCount
+
    --><!--
 +
    -->{{#switch: {{#var: varCount}}<!--
 +
    -->|0|1=''{{#var: varTitle}}'' was formulated by&#32;<!--
 +
    -->|This version of ''{{#var: varTitle}}'' was formulated by&#32;<!--
 +
    -->}}<!-- switch varCount
 +
  -->}}<!-- ifeq
 
   --><!--
 
   --><!--
 
   -->{{PrintTheoryAuthors|theory={{{theory|}}}|link=all|pretty=yes}}<!--
 
   -->{{PrintTheoryAuthors|theory={{{theory|}}}|link=all|pretty=yes}}<!--

Revision as of 03:25, 5 September 2016

This template is used to format the sentence that this formulation/definition was suggested by such-and-such author in year such-and-such. It includes:

  • the title of the theory;
  • the names of the authors;
  • the formulation hear;
  • a link to the bibliographic resource, if any.

It also checks to see if there are any other theories with the same title; if there are several theories with the same title, the text will say "This version of the theory was formulated by...".

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.

Parameters:

  • |theory= - the fullpagename of the theory.