Difference between revisions of "Template:Author"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(24 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
|DOB=
 
|DOB=
 
|DOD=
 
|DOD=
 +
|Brief=
 
|Summary=
 
|Summary=
 
|Historical Context=
 
|Historical Context=
Line 13: Line 14:
 
|Criticism=
 
|Criticism=
 
|Related Topics=
 
|Related Topics=
 +
|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:First Name={{{First Name|}}}|Last Name={{{Last Name|}}}|}}<!--
+
--><!--
 +
-->{{#set:First Name={{{First Name|}}}|Last Name={{{Last Name|}}}|Brief={{{Brief|}}}|Page Status={{{Page Status|Stub}}}|}}<!--
 
--><!--  
 
--><!--  
 
--><!-- set DOB
 
--><!-- set DOB
Line 30: Line 33:
 
-->{{#arrayprint:topicsArray||@@@@|{{#set:Has Related Topic=@@@@}}|}}<!--  
 
-->{{#arrayprint:topicsArray||@@@@|{{#set:Has Related Topic=@@@@}}|}}<!--  
 
--><!--  
 
--><!--  
 +
--><!-- Calculate completion rates for each major property
 +
--><!--
 +
-->{{#vardefine: varCRSum|{{SetTextPropertyCompletionRate|propertyname=Summary|propertyvalue={{{Summary|}}}|requiredwordcount=50|returnvalue=true}}|}}<!--
 +
-->{{#vardefine: varCRHst|{{SetTextPropertyCompletionRate|propertyname=Historical Context|propertyvalue={{{Historical Context|}}}|requiredwordcount=300|returnvalue=true}}|}}<!--
 +
-->{{#vardefine: varCRMaj|{{SetTextPropertyCompletionRate|propertyname=Major Contributions|propertyvalue={{{Major Contributions|}}}|requiredwordcount=800|returnvalue=true}}|}}<!--
 +
-->{{#vardefine: varCRCrt|{{SetTextPropertyCompletionRate|propertyname=Criticism|propertyvalue={{{Criticism|}}}|requiredwordcount=150|returnvalue=true}}|}}<!--
 +
-->{{#vardefine: varCRDob|{{SetDatePropertyCompletionRate|propertyname=DOB|propertyvalueyear={{{DOB Year|}}}|propertyvaluemonth={{{DOB Month|}}}|propertyvalueday={{{DOB Day|}}}|requireddateprecision=Day|returnvalue=true}}|}}<!--
 +
--><!--
 +
--><!-- Now calculate the overall completion rate. 5 10 15 45 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: ((5/100 * {{#var:varCRDob}}) + (10/100 * {{#var:varCRSum}}) + (15/100 * {{#var:varCRHst}}) + (45/100 * {{#var:varCRMaj}}) + (15/100 * {{#var:varCRCrt}}) ) round 0}} }}<!--
 +
  --><!--
 +
-->}}<!-- if page status
 +
--><!-- store the value
 +
-->{{#set: CR_Total={{#var:varCRtotal}} }}<!--
 +
--><!--
 +
--><!--
 
--><!--{{Infobox author
 
--><!--{{Infobox author
 
| name      = {{PAGENAME}}
 
| name      = {{PAGENAME}}
Line 36: Line 61:
 
| lastname  = {{{Last Name|}}}
 
| lastname  = {{{Last Name|}}}
 
}}--><!--
 
}}--><!--
-->{{{Summary|}}}
+
--><!--
 +
--><!-- get the name which will be used to address the author
 +
-->{{#if: {{{Last Name|}}}<!--
 +
-->|{{#vardefine: varName|{{{Last Name|}}}|}}<!-- if the last name is given, the name is last name
 +
-->|{{#vardefine: varName|{{{First Name|}}}|}}<!-- if it's not given, sort by first name
 +
-->}}<!--if
 +
--><!--
 +
-->
 +
{{PrintAuthorFirstSentence|author={{FULLPAGENAME}}|}}{{{Summary|}}}
 
{{#if: {{{Historical Context|}}}|== Historical Context ==
 
{{#if: {{{Historical Context|}}}|== Historical Context ==
 +
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Historical Context}}
 
{{{Historical Context|}}} }}
 
{{{Historical Context|}}} }}
 
{{#if: {{{Major Contributions|}}}|== Major Contributions ==
 
{{#if: {{{Major Contributions|}}}|== Major Contributions ==
 +
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Major Contributions}}
 
{{{Major Contributions|}}} }}
 
{{{Major Contributions|}}} }}
 
{{#if: {{{Criticism|}}}|== Criticism ==
 
{{#if: {{{Criticism|}}}|== Criticism ==
{{{Criticism|}}} }}
+
{{PrintSectionVideos|page={{FULLPAGENAME}}|section=Criticism}}
{{PrintAuthorModifications
+
{{{Criticism|}}} }}<!--
 +
-->{{PrintAuthorModifications
 
|author={{FULLPAGENAME}}
 
|author={{FULLPAGENAME}}
|intro===Suggested Modifications==
+
|intro=<nowiki/>
Here are all the modifications suggested by {{{Last Name|}}}:  
+
==Suggested Modifications==
}}
+
Here are all the modifications suggested by {{#var:varName}}:  
{{PrintAuthorTheories
+
}}{{PrintAuthorTheories
 
  |author={{FULLPAGENAME}}  
 
  |author={{FULLPAGENAME}}  
  |intro===Theories==
+
  |intro=<nowiki/>
The following table contains all the theories formulated by {{{Last Name|}}}:
+
==Theories==
 +
The following table contains all the theories formulated by {{#var:varName}}:
 
  |link=all
 
  |link=all
}}
+
}}{{PrintAuthorQuestions
{{PrintAuthorQuestions
 
 
  |author={{FULLPAGENAME}}  
 
  |author={{FULLPAGENAME}}  
  |intro===Questions==
+
  |intro=<nowiki/>
Here are all the questions formulated by {{{Last Name|}}}:
+
==Questions==
 +
Here are all the questions formulated by {{#var:varName}}:
 
  |link=all
 
  |link=all
 
}}
 
}}
 +
==Publications==
 
{{PrintAuthorBibliographyList
 
{{PrintAuthorBibliographyList
|author={{FULLPAGENAME}}
+
|author={{FULLPAGENAME}}
|intro===Publications==
+
|intro=Here are the works of {{#var:varName}} included in the [[Bibliography|bibliographic records]] of this encyclopedia:
Here are the works of {{{Last Name|}}} included in the [[Bibliography|bibliographic records]] of this encyclopedia:
+
|default=There are no bibliographic records for this author.
 
}}
 
}}
{{PrintRelatedTopics
+
<div class="mw-collapsible mw-collapsed" data-expandtext="Add" data-collapsetext="Cancel">
 +
To add a bibliographic record by this author, enter the citation key below:
 +
 
 +
{{#forminput:form=Bibliographic Record|default value={{#var:varName}} (YEAR)|autocomplete on category=Bibliographic Record|returnto={{FULLPAGENAME}}|query string=Bibliographic_Record[Author]={{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. Aristotle (1984), 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><!--
 +
-->{{PrintRelatedTopics
 
  |object={{FULLPAGENAME}}  
 
  |object={{FULLPAGENAME}}  
  |intro===Related Topics==
+
  |intro=<nowiki/>
 +
==Related Topics==
 
<nowiki> </nowiki>
 
<nowiki> </nowiki>
 
  |link=all
 
  |link=all
 
}}
 
}}
 
+
<!--add categories -->
{{DEFAULTSORT: {{{Last Name|}}}, {{{First Name|}}} }}
+
{{#switch: {{{Page Status|Stub}}}
 +
|Editor Approved=[[Category:Editor Approved Author Pages]]
 +
|Needs Editing=[[Category:Need Editing Author Pages]]
 +
|Stub=[[Category:Stub Author Pages]]
 +
}}
 +
{{#if: {{{Last Name|}}}<!--
 +
-->|{{DEFAULTSORT: {{{Last Name|}}}, {{{First Name|}}} }}<!-- if the last name is given, sort by last name
 +
-->|{{DEFAULTSORT: {{{First Name|}}} }}<!-- if it's not given, sort by first name
 +
-->}}<!--if
 +
-->
 
[[Category:Author]]
 
[[Category:Author]]
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
__NOCACHE__
 
__NOCACHE__
 
</includeonly>
 
</includeonly>

Revision as of 02:02, 15 March 2018

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

{{Author
|First Name=
|Last Name=
|DOB=
|DOD=
|Brief=
|Summary=
|Historical Context=
|Major Contributions=
|Criticism=
|Related Topics=
|Page Status=
}}

Edit the page to see the template text.