Difference between revisions of "Template:PrintTheoryTitleAuthorYearResource"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 8: Line 8:
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 
+
--><!-- get the title of this theory
 
 
<!-- get the title of this theory
 
 
-->{{#vardefine: varTitle| {{#show: {{{theory|}}}|?Title}} |}}<!--
 
-->{{#vardefine: varTitle| {{#show: {{{theory|}}}|?Title}} |}}<!--
-->{{#var:varTitle}}<!--
 
 
--><!-- find if there are any other theories with this exact title
 
--><!-- find if there are any other theories with this exact title
 
-->{{#vardefine: varCount|{{#expr: {{#ask: [[Category:Descriptive Theory]] [[Title::{{#var:varTitle}}]]||format=count}} + {{#ask: [[Category:Normative Theory]] [[Title::{{#var:varTitle}}]]||format=count}} }}<!--
 
-->{{#vardefine: varCount|{{#expr: {{#ask: [[Category:Descriptive Theory]] [[Title::{{#var:varTitle}}]]||format=count}} + {{#ask: [[Category:Normative Theory]] [[Title::{{#var:varTitle}}]]||format=count}} }}<!--

Revision as of 19:46, 17 August 2016

This template is used to format the sentence that this formulation was suggested by such-and-such author in year such-and-such. It also adds 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.