Template:Author: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:


<u>Parameters</u>
<u>Parameters</u>
# Author's name, exactly as it appears on the Author-Lyricist page.
# Author's name, exactly as it appears on the Author (Lyricist) page.
# First line of text, not necessarily the page title. This text will appear on the Author-Lyricist's page under <big>Texts by (Author)</big>.
# First line of <u>text</u>, same as a text page title (without the author's name) but not necessarily the work page title. This text will appear on the Author-Lyricist's page under <big>Texts by (Author)</big>.
* <tt>yr=</tt> – Year the text was published.
* <tt>yr=</tt> – Year the text was published.
* <tt>page=</tt> – One of two words: (a) <tt>text</tt> if the template is on a text page, ''or'' (b) <tt>work</tt> if the template is on a work page. Defaults to <tt>text</tt>
* <tt>page=</tt> – One of three words: (a) <tt>text</tt> for use as a separate line on a text page, ''or'' (b) <tt>work</tt> for use following text on a work page, ''or'' (c) <tt>line</tt> for use within a text line on a work page or text page. Defaults to <tt>text</tt>
* <tt>an2=</tt> – (Optional) second author.
* <tt>an2=</tt> – (Optional) second author.
* <tt>an3=</tt> – (Optional) third author.
* <tt>an3=</tt> – (Optional) third author.
Line 17: Line 17:


<u>Appearance of template</u>
<u>Appearance of template</u>
*On a TEXT page, near the top (page=text or unspecified) – '''Author:''' <font color=blue>Paul Gerhardt</font>, 1664 in <font color=blue>''Praxis pietatis melica (Johann Crüger)''</font>.
{{{!}}class="wikitable" align=center
*On a WORK page, below the text (page=work) – (<font color=blue>Paul Gerhardt</font>, 1664)  
!color=#ddffdd{{!}}Command
!color=#ddffdd{{!}}page=
!color=#ddffdd{{!}}Appearance
!color=#ddffdd{{!}}Use on pagetype:
{{!}}-
{{!}}rowspan=4{{!}}<nowiki>{{Author|Paul Gerhardt|Befiehl du deine Wege|yr=1653|page=…}}</nowiki>{{!}}{{!}}text{{!}}{{!}}'''Author:''' <font color=blue>Paul Gerhardt</font>, 1664{{!}}{{!}}Text page
{{!}}-
{{!}}work{{!}}{{!}}(<font color=blue>Paul Gerhardt</font>, 1664){{!}}{{!}}Work page, below text
{{!}}-
{{!}}line{{!}}{{!}}……<font color=blue>Paul Gerhardt</font> (1664)……{{!}}{{!}}Either Work or Text page
{{!}}-
{{!}}}


;Categorization
;Categorization
Line 28: Line 39:
*Template {{tl|LyricistSettingsList}}
*Template {{tl|LyricistSettingsList}}


}}
Version 3 – 2020-11-19}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 03:22, 22 February 2021

Documentation

This template is designed for a text page, so that the a link to the text can appear on the author's "Lyricist" page, using template {{AuthorTextsList}}. Template Author may also be used on a work page, below the text.

Syntax

{{Author|<Author>|<First text line>|yr=<year>|page=<text or work>|an2=<aname2>|an3=<aname3>|pub=<pubname>}}

Parameters

  1. Author's name, exactly as it appears on the Author (Lyricist) page.
  2. First line of text, same as a text page title (without the author's name) but not necessarily the work page title. This text will appear on the Author-Lyricist's page under Texts by (Author).
  • yr= – Year the text was published.
  • page= – One of three words: (a) text for use as a separate line on a text page, or (b) work for use following text on a work page, or (c) line for use within a text line on a work page or text page. Defaults to text
  • an2= – (Optional) second author.
  • an3= – (Optional) third author.
  • pub= – (Optional) title of publication where text first appeared. If you want a link to appear, you must supply square brackets; please do not use either template {{NoCo}} or {{NoComp}} – the curly brackets will mess up the program.

Appearance of template

Command page= Appearance Use on pagetype:
{{Author|Paul Gerhardt|Befiehl du deine Wege|yr=1653|page=…}} text Author: Paul Gerhardt, 1664 Text page
work (Paul Gerhardt, 1664) Work page, below text
line ……Paul Gerhardt (1664)…… Either Work or Text page
Categorization

Whenever this template is used, the page is included in category Texts by known authors

Also see

Version 3 – 2020-11-19