Difference between revisions of "Template:Bibliographic Record"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(31 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
|Year=
 
|Year=
 
|Publisher=
 
|Publisher=
 +
|Cover Image=
 
|Abstract=
 
|Abstract=
 +
|Historical Context=
 +
|Synopsis=
 +
|Criticism=
 
|ISBN=
 
|ISBN=
 
|URL=
 
|URL=
Line 18: Line 22:
 
|Number=
 
|Number=
 
|Pages=
 
|Pages=
 +
|Page Status=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
--><!-- set the properties
+
--><!-- set page status
--><!--{{#set:Title={{{Title|}}}|Resource Type={{{Resource Type|}}}|Year={{{Year|}}}|Publisher={{{Publisher|}}}|ISBN={{{ISBN|}}}|DOI={{{DOI|}}}|URL={{{URL|}}}|Collection={{{Collection|}}}|Journal={{{Journal|}}}|Volume={{{Volume|}}}|Number={{{Number|}}}|Pages={{{Pages|}}}|}}
+
-->{{#set:Page Status={{{Page Status|Stub}}}|}}<!--
 
--><!--
 
--><!--
--><!-- create the #scite entry
+
--><!-- create the #scite entry: this template will also store all other properties
 
-->{{SetBibliographyItem<!--
 
-->{{SetBibliographyItem<!--
 
  -->|citation key={{FULLPAGENAME}}<!--
 
  -->|citation key={{FULLPAGENAME}}<!--
Line 33: Line 38:
 
  -->|year={{{Year|}}}<!--
 
  -->|year={{{Year|}}}<!--
 
  -->|publisher={{{Publisher|}}}<!--
 
  -->|publisher={{{Publisher|}}}<!--
 +
-->|cover={{{Cover Image|}}}<!--
 
  -->|abstract={{{Abstract|}}}<!--
 
  -->|abstract={{{Abstract|}}}<!--
 
  -->|hyperlinkurl={{{URL|}}}<!--
 
  -->|hyperlinkurl={{{URL|}}}<!--
Line 43: Line 49:
 
  -->|pages={{{Pages|}}}<!--
 
  -->|pages={{{Pages|}}}<!--
 
-->}}<!--
 
-->}}<!--
 +
--><!--
 +
--><!-- 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}} }}<!--
 +
--><!--
 
-->{{#ask:
 
-->{{#ask:
 
  [[Citation key::{{FULLPAGENAME}}]]
 
  [[Citation key::{{FULLPAGENAME}}]]
Line 48: Line 75:
 
  |mainlabel=-  
 
  |mainlabel=-  
 
  |headers=hide
 
  |headers=hide
}}<!--
+
}}
--><!--
 
-->
 
 
{| class="wikitable"
 
{| class="wikitable"
 
  |-
 
  |-
 
  ! Title  
 
  ! Title  
  | {{{Title|}}}
+
  | {{{Title|}}}{{#if: {{{Cover Image|}}}|<nowiki/>
 +
{{!}}-
 +
! Cover
 +
{{!}} [[File:{{{Cover Image}}}|300px]]
 +
}}
 
  |-
 
  |-
 
  ! Resource Type  
 
  ! Resource Type  
Line 100: Line 129:
 
  {{!}} {{{Pages|}}}  
 
  {{!}} {{{Pages|}}}  
 
}}
 
}}
|}
+
|}<!--
{{#if: {{{Abstract|}}}|<!--
+
-->{{#if: {{{Abstract|}}}|<nowiki/>
-->{{#switch: {{{Resource Type|}}}<!--
+
==Abstract==
  -->|book<!--
+
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Abstract}}
  -->|collection=<!--
+
{{{Abstract|}}}|}}
    -->==Synopsis==<!--
+
{{#if: {{{Historical Context|}}}|== Historical Context ==
  -->|==Abstract==<!--
+
{{{Historical Context|}}}
-->}}
+
}}<!--
{{{Abstract|}}}
+
-->{{#if: {{{Synopsis|}}}|== Synopsis ==
|}}
+
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Synopsis}}
{{PrintResourceTheories
+
{{{Synopsis|}}}
 +
}}<!--
 +
-->{{#if: {{{Criticism|}}}|== Criticism ==
 +
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Criticism}}
 +
{{{Criticism|}}}  
 +
}}<!--
 +
-->{{PrintResourceTheories
 
|resource={{FULLPAGENAME}}
 
|resource={{FULLPAGENAME}}
|intro===Theories==
+
|intro=<nowiki/>
 +
==Theories==
 
Here are all the theories formulated in {{FULLPAGENAME}}:  
 
Here are all the theories formulated in {{FULLPAGENAME}}:  
}}
+
}}<!--
{{PrintResourceModifications
+
-->{{PrintResourceModifications
 
|resource={{FULLPAGENAME}}
 
|resource={{FULLPAGENAME}}
|intro===Suggested Modifications==
+
|intro=<nowiki/>
 +
==Suggested Modifications==
 
Here are all the modifications suggested in {{FULLPAGENAME}}:  
 
Here are all the modifications suggested in {{FULLPAGENAME}}:  
}}
+
}}<!--
 +
-->{{#ifeq:  {{{Resource Type|}}}|collection|==Articles in This Collection==
 +
{{PrintCollectionArticles|collection={{FULLPAGENAME}}|intro=Here are the articles from this collection listed in the bibliographic records:|default=No article is listed as part of this collection.}}
 +
<div class="mw-collapsible mw-collapsed" data-expandtext="Add" data-collapsetext="Cancel">
 +
To add an article in this collection, enter the citation key below:
 +
 
 +
{{#forminput:form=Bibliographic Record|autocomplete on category=Bibliographic Record|returnto={{FULLPAGENAME}}|query string=Bibliographic_Record[Collection]={{FULLPAGENAME}}|}}
 +
<p class="sfFieldDescription" style="font-size:0.8em; color:gray;">Citation keys normally include author names followed by the publication year in brackets. E.g. Lakatos (1970), Einstein, Podolsky, Rosen (1935), Musgrave and Pigden (2016), Kuhn (1970a), Lakatos and Musgrave (Eds.) (1970). If a record with that citation key already exists, you will be sent to a form to edit that page.</p>
 +
</div>}}<!--
 +
-->{{#ifeq:  {{{Resource Type|}}}|book|<!--
 +
-->{{PrintCollectionArticles|collection={{FULLPAGENAME}}|intro=<nowiki/>
 +
==Articles in This Book==
 +
Here are the articles included in this book:|outro=<nowiki/>
 +
<div class="mw-collapsible mw-collapsed" data-expandtext="Add" data-collapsetext="Cancel">
 +
To add an article in this book, enter the citation key below:
 +
 
 +
{{#forminput:form=Bibliographic Record|autocomplete on category=Bibliographic Record|returnto={{FULLPAGENAME}}|query string=Bibliographic_Record[Collection]={{FULLPAGENAME}}|}}
 +
<p class="sfFieldDescription" style="font-size:0.8em; color:gray;">Citation keys normally include author names followed by the publication year in brackets. E.g. Lakatos (1970), Einstein, Podolsky, Rosen (1935), Musgrave and Pigden (2016), Kuhn (1970a), Lakatos and Musgrave (Eds.) (1970). If a record with that citation key already exists, you will be sent to a form to edit that page.</p>
 +
</div>}}<!--
 +
-->}}<!--
 +
--><!--add categories -->
 
[[Category:Bibliographic Record]]
 
[[Category:Bibliographic Record]]
 
{{#switch:  {{{Resource Type|}}}
 
{{#switch:  {{{Resource Type|}}}
Line 126: Line 183:
 
  |collection=[[Category:Collection]]
 
  |collection=[[Category:Collection]]
 
  |collection article=[[Category:Collection Article]]
 
  |collection article=[[Category:Collection Article]]
 +
}}
 +
{{#switch: {{{Page Status|Stub}}}
 +
|Editor Approved=[[Category:Editor Approved Bibliographic Records]]
 +
|Needs Editing=[[Category:Need Editing Bibliographic Records]]
 +
|Stub=[[Category:Stub Bibliographic Records]]
 
}}
 
}}
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
__NOCACHE__
 
__NOCACHE__
 
</includeonly>
 
</includeonly>

Latest revision as of 00:38, 3 June 2020

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

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

Edit the page to see the template text.