Difference between revisions of "Template:Bibliographic Record"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 10: Line 10:
 
|Publisher=
 
|Publisher=
 
|Abstract=
 
|Abstract=
 +
|Historical Context=
 +
|Synopsis=
 +
|Criticism=
 
|ISBN=
 
|ISBN=
 
|URL=
 
|URL=
Line 18: Line 21:
 
|Number=
 
|Number=
 
|Pages=
 
|Pages=
 +
|Page Status=
 
}}
 
}}
 
</pre>
 
</pre>
Line 49: Line 53:
 
  |headers=hide
 
  |headers=hide
 
}}<!--
 
}}<!--
 +
--><!--
 +
--><!-- Calculate completion rates for each major property
 +
--><!--
 +
-->{{#vardefine: varCRAbs|{{SetTextPropertyCompletionRate|propertyname=Abstract|propertyvalue={{{Abstract|}}}|requiredwordcount=50|returnvalue=true}}|}}<!--
 +
-->{{#vardefine: varCRHst|{{SetTextPropertyCompletionRate|propertyname=Historical Context|propertyvalue={{{Historical Context|}}}|requiredwordcount=300|returnvalue=true}}|}}<!--
 +
-->{{#vardefine: varCRSyn|{{SetTextPropertyCompletionRate|propertyname=Synopsis|propertyvalue={{{Synopsis|}}}|requiredwordcount=800|returnvalue=true}}|}}<!--
 +
-->{{#vardefine: varCRCrt|{{SetTextPropertyCompletionRate|propertyname=Criticism|propertyvalue={{{Criticism|}}}|requiredwordcount=150|returnvalue=true}}|}}<!--
 +
--><!--
 +
--><!-- Now calculate the overall completion rate. 20 15 40 15
 +
--><!--
 +
-->{{#ifeq: {{{Page Status|}}}|Editor Approved<!--
 +
-->|<!-- editor approved: completion rate is always 100%
 +
  -->{{#vardefine: varCRtotal|100}}<!--
 +
  --><!--
 +
-->|<!-- not approved: calculate completion rate (90% max)
 +
  -->{{#vardefine: varCRtotal| {{#expr: ((20/100 * {{#var:varCRAbs}}) + (15/100 * {{#var:varCRHst}}) + (40/100 * {{#var:varCRSyn}}) + (15/100 * {{#var:varCRCrt}}) ) round 0}} }}<!--
 +
  --><!--
 +
-->}}<!-- if page status
 +
--><!-- store the value
 +
-->{{#set: CR_Total={{#var:varCRtotal}} }}<!--
 
--><!--
 
--><!--
 
-->
 
-->
 +
{{{Abstract|}}}
 
{| class="wikitable"
 
{| class="wikitable"
 
  |-
 
  |-
Line 101: Line 126:
 
}}
 
}}
 
|}
 
|}
{{#if: {{{Abstract|}}}|<!--
+
{{#if: {{{Historical Context|}}}|== Historical Context ==
-->{{#switch: {{{Resource Type|}}}<!--
+
{{{Historical Context|}}} }}
  -->|book<!--
+
{{#if: {{{Synopsis|}}}|== Synopsis ==
  -->|collection=<!--
+
{{{Synopsis|}}} }}
    -->==Synopsis==<!--
+
{{#if: {{{Criticism|}}}|== Criticism ==
  -->|collection article<!--
+
{{{Criticism|}}} }}<!--
  -->|journal article=<!--
+
-->{{PrintResourceTheories
    -->==Abstract==<!--
 
-->}}
 
{{{Abstract|}}}
 
|}}
 
{{PrintResourceTheories
 
 
|resource={{FULLPAGENAME}}
 
|resource={{FULLPAGENAME}}
 
|intro===Theories==
 
|intro===Theories==

Revision as of 16:33, 15 June 2017

This is the "Bibliographic Record" template. It should be called in the following format:

{{Bibliographic Record
|Title=
|Resource Type=
|Author=
|Year=
|Publisher=
|Abstract=
|Historical Context=
|Synopsis=
|Criticism=
|ISBN=
|URL=
|DOI=
|Collection=
|Journal=
|Volume=
|Number=
|Pages=
|Page Status=
}}

Edit the page to see the template text.