Difference between revisions of "Template:Author"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(42 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
|First Name=
 
|First Name=
 
|Last Name=
 
|Last Name=
 +
|DOB=
 +
|DOD=
 +
|Brief=
 
|Summary=
 
|Summary=
 
|Historical Context=
 
|Historical Context=
Line 11: 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>{{#set:First Name={{{First Name|}}}|Last Name={{{Last Name|}}}|}}
+
</noinclude><includeonly><!--
{{{Summary|}}}
+
--><!--
 
+
-->{{#set:First Name={{{First Name|}}}|Last Name={{{Last Name|}}}|Brief={{{Brief|}}}|Page Status={{{Page Status|Stub}}}|}}<!--
{{#if: {{{Historical Context|}}}| == Historical Context ==
+
--><!--
 +
--><!-- set DOB
 +
-->{{SetDatePropertyValue|property=DOB|year={{{DOB Year|}}}|month={{{DOB Month|}}}|day={{{DOB Day|}}}|era={{{DOB Era|}}}|approximate={{{DOB Approximate|}}}|}}<!--
 +
--><!--
 +
--><!-- set DOD
 +
-->{{SetDatePropertyValue|property=DOD|year={{{DOD Year|}}}|month={{{DOD Month|}}}|day={{{DOD Day|}}}|era={{{DOD Era|}}}|approximate={{{DOD Approximate|}}}|}}<!--
 +
--><!--
 +
--><!-- set related topics
 +
-->{{#arraydefine:topicsArray|{{{Related Topics|}}} }}<!--
 +
-->{{#arrayunique:topicsArray}}<!--
 +
-->{{#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
 +
| name      = {{PAGENAME}}
 +
| caption  = Author
 +
| firstname = {{{First Name|}}}
 +
| lastname  = {{{Last Name|}}}
 +
}}--><!--
 +
--><!--
 +
--><!-- 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 ==
 +
{{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}}
{{AuthorModifications
+
{{{Criticism|}}} }}<!--
|author={{{First Name|}}} {{{Last Name|}}}
+
-->{{PrintAuthorModifications
|intro=== Suggested Modifications ==
+
|author={{FULLPAGENAME}}
Here are all the modifications suggested by {{{Last Name|}}}:  
+
|intro=<nowiki/>
 +
==Suggested Modifications==
 +
Here are all the modifications suggested by {{#var:varName}}:
 +
}}{{PrintAuthorTheories
 +
|author={{FULLPAGENAME}}
 +
|intro=<nowiki/>
 +
==Theories==
 +
The following table contains all the theories formulated by {{#var:varName}}:
 +
|link=all
 +
}}{{PrintAuthorQuestions
 +
|author={{FULLPAGENAME}}  
 +
|intro=<nowiki/>
 +
==Questions==
 +
Here are all the questions formulated by {{#var:varName}}:
 +
|link=all
 
}}
 
}}
{{AuthorBibliography
+
==Publications==
|author={{{First Name|}}} {{{Last Name|}}}
+
{{PrintAuthorBibliographyList
|intro=== Publications ==
+
|author={{FULLPAGENAME}}
Here are the works of {{{Last Name|}}} included in the [[Bibliography|bibliographic records]] of this encyclopedia:
+
|intro=Here are the works of {{#var:varName}} included in the [[Bibliography|bibliographic records]] of this encyclopedia:
 +
|default=There are no bibliographic records for this author.
 
}}
 
}}
{{RelatedTopics
+
<div class="mw-collapsible mw-collapsed" data-expandtext="Add" data-collapsetext="Cancel">
|topics={{{Related Topics|}}}
+
To add a bibliographic record by this author, enter the citation key below:
|intro=== Related Topics ==
 
  
 +
{{#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}}
 +
|intro=<nowiki/>
 +
==Related Topics==
 +
<nowiki> </nowiki>
 +
|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__
 +
__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.