Difference between revisions of "Template:PrintAuthorLastNameCommaFirstName"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 
-->{{#if: {{{author|}}}|<!--
 
-->{{#if: {{{author|}}}|<!--
  -->{{#show: {{{author|}}}| ?Last Name}}, {{#show: {{{author|}}}| ?First Name}}<!--
+
  --><!--
 +
--><!-- 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>
 
--></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.