Difference between revisions of "Template:PrintAuthorLastNameCommaFirstName"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> Use this template to format the name of the author as "Last Name, First Name", i.e. to turn, for instance "Imre Lakatos" to "Lakatos, Imre". This is useful when fo...")
 
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Use this template to format the name of the author as "Last Name, First Name", i.e. to turn, for instance "Imre Lakatos" to "Lakatos, Imre". This is useful when formatting bibliographic records.
 
Use this template to format the name of the author as "Last Name, First Name", i.e. to turn, for instance "Imre Lakatos" to "Lakatos, Imre". This is useful when formatting bibliographic records.
  
Parameters:
+
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
 +
 
 +
'''Parameters:'''
 
* <code><nowiki>|author=</nowiki></code> - the author's full name as stated on the author's page title.
 
* <code><nowiki>|author=</nowiki></code> - the author's full name as stated on the author's page title.
 
   
 
   
</noinclude><includeonly>{{#if: {{{author|}}}|{{#show: {{{author|}}}| ?Last Name}}, {{#show: {{{author|}}}| ?First Name}}|}}</includeonly>
+
</noinclude><includeonly><!--
 +
-->{{#if: {{{author|}}}|<!--
 +
--><!--
 +
--><!-- check if the author has a last name
 +
-->{{#vardefine: varLastName|{{#show: {{{author|}}}| ?Last Name}}|}}<!--
 +
--><!--
 +
-->{{#if: {{#var: varLastName}}<!--
 +
  -->|{{#var: varLastName}}, {{#show: {{{author|}}}| ?First Name}}<!--
 +
  -->|{{#show: {{{author|}}}| ?First Name}}<!--
 +
-->}}<!-- if
 +
-->}}<!--
 +
--></includeonly>

Latest revision as of 15:09, 6 July 2017

Use this template to format the name of the author as "Last Name, First Name", i.e. to turn, for instance "Imre Lakatos" to "Lakatos, Imre". This is useful when formatting bibliographic records.

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.

Parameters:

  • |author= - the author's full name as stated on the author's page title.