Open main menu

Changes

no edit summary
<noinclude>
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 also adds 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.
</noinclude><includeonly><!--
-->{{#if: {{{theory|}}}<!-- --><!-- --><!-- get the title of this theory -->|{{#vardefine: varTitle| {{#show: {{{theory|}}}|?Title}} |}}<!-- --><!-- find -->{{#if there are any other theories with this exact title: {{#var: varTitle}}<!-- -->|<!-- -->|{{#vardefine: varCountvarTitle|{{{theory|}}}|}}<!-- the title is not found - use the theory name instead -->}}<!-- if --><!-- -->{{#exprifeq: {{#askshow: [[Category:Descriptive {{{theory|}}}|?Theory]] [[Title::Type}}|Definition<!-- -->|<!-- definition -->This definition of ''{{#var:varTitle}}]]'' was formulated by&#32;<!-- -->|<!-- nondefinition --><!-- find if there are any other theories with this exact title -->{{#vardefine: varCount|format=count}} + {{#ask: [[Category:Normative Theory]] [[Title::{{#var:varTitle}}]]||format=count}} }}<!---->|}}<!-- vardefine Count --><!-- -->{{#switch: {{#var: varCount}}<!-- -->|0|1='''{{#var: varTitle}}''' was formulated by&#32;<!-- -->|This version of '''{{#var: varTitle}}''' was formulated by&#32;<!-- -->}}<!-- switch varCount -->}}<!--ifeq --><!-- -->{{PrintTheoryAuthorsPrintElementAuthors|theoryelement={{{theory|}}}|linkslink=yesall|pretty=yes}}<!-- --> in {{#show: {{{theory|}}}|?Formulated Year Formulated|link=none}}.{{#if: {{#show: {{{theory|}}}|?Resource|link=none}}|[[CiteRef::{{#show: {{{theory|}}}|?Resource|link=none}}]]|}}<!-- --><!---->}}<!-- if theory--></includeonly>