Template:Lyricist: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(don't understand {{tl yet, but this seems to work)
(Minor changes to documentation - Thanks, Richard!)
Line 15: Line 15:
{{prot-temp}}
{{prot-temp}}
{{Doc|1=
{{Doc|1=
;Usage:
=== Usage ===
 
;Syntax for one lyricist
*{{tl|Lyricist|''lyricist_name''|''optional_text''}}
*{{tl|Lyricist|''lyricist_name''|''optional_text''}}
:which produces the text
:which produces the text
::'''Lyricist:''' <font color=blue>Lyricist_name</font> optional_text
::'''Lyricist:''' <font color=blue>Lyricist_name</font> optional_text
:and inserts the page in category {{CiteCat|Works with texts by known authors}}


;Syntax for two lyricists
*{{tl|Lyricist|2|''lyricist1_name''|''lyricist2_name''|''optional_text''}}
*{{tl|Lyricist|2|''lyricist1_name''|''lyricist2_name''|''optional_text''}}
:which produces the text
:which produces the text
::'''Lyricists:''' <font color=blue>Lyricist1_name</font> and <font color=blue>Lyricist2_name</font> optional_text
::'''Lyricists:''' <font color=blue>Lyricist1_name</font> and <font color=blue>Lyricist2_name</font> optional_text
:and inserts the page in category {{CiteCat|Works with texts by known authors}}
 
The conjunction "and" may be replaced by inserting another parameter:  
The conjunction "and" may be replaced by inserting another parameter:
<nowiki>{{Lyricist|2|Johann Gottfried Herder|connective=, after|Ossian}} </nowiki>
*{{tl|Lyricist|2|''Johann Gottfried Herder''|connective{{=}}'', after''|''Ossian''}}
:produces the text
:produces the text
::'''Lyricists:''' <font color=blue>Johann Gottfried Herder</font>, after <font color=blue>Ossian</font>
::'''Lyricists:''' <font color=blue>Johann Gottfried Herder</font>, after <font color=blue>Ossian</font>


;Syntax for three lyricists
*{{tl|Lyricist|3|''lyricist1_name''|''lyricist2_name''|''lyricist3_name''|''optional_text''}}
*{{tl|Lyricist|3|''lyricist1_name''|''lyricist2_name''|''lyricist3_name''|''optional_text''}}
:which produces the text
:which produces the text
::'''Lyricists:''' <font color=blue>Lyricist1_name</font>, <font color=blue>Lyricist2_name</font> and <font color=blue>Lyricist3_name</font> optional_text
::'''Lyricists:''' <font color=blue>Lyricist1_name</font>, <font color=blue>Lyricist2_name</font> and <font color=blue>Lyricist3_name</font> optional_text
:and inserts the page in category {{CiteCat|Works with texts by known authors}}
 
;Categorization
Whenever this template is used, the page is included in category {{CiteCat|Works with texts by known authors}}


;See also
;See also

Revision as of 17:56, 29 October 2018

Documentation

Usage

Syntax for one lyricist
  • {{Lyricist|lyricist_name|optional_text}}
which produces the text
Lyricist: Lyricist_name optional_text
Syntax for two lyricists
  • {{Lyricist|2|lyricist1_name|lyricist2_name|optional_text}}
which produces the text
Lyricists: Lyricist1_name and Lyricist2_name optional_text

The conjunction "and" may be replaced by inserting another parameter:

  • {{Lyricist|2|Johann Gottfried Herder|connective=, after|Ossian}}
produces the text
Lyricists: Johann Gottfried Herder, after Ossian
Syntax for three lyricists
  • {{Lyricist|3|lyricist1_name|lyricist2_name|lyricist3_name|optional_text}}
which produces the text
Lyricists: Lyricist1_name, Lyricist2_name and Lyricist3_name optional_text
Categorization

Whenever this template is used, the page is included in category Works with texts by known authors

See also