Template:Lyricist: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(removed sortkey)
No edit summary
(37 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{switch|{{{1}}}
<includeonly>{{#switch:{{ucfirst: {{{1|Error}}} }}
|case: 2='''Lyricists:''' [[{{{2}}}]]{{switch|{{{5|void}}}|case: void=|default={{{4|}}}}} and [[{{{3}}}]]{{{5|{{{4|}}}}}}<includeonly>[[Category:{{{2}}} settings]][[Category:{{{3}}} settings]]</includeonly>
|Error ='''Error:''' <font color="red">''Please use the syntax'' {{tl|Lyricist|''lyricist name''}}</font>
|case: 3='''Lyricists:''' [[{{{2}}}]]{{switch|{{{6|void}}}|case: void=|default={{{5|}}}}}, [[{{{3}}}]]{{{6|}}} and [[{{{4}}}]]{{{7|{{{5|}}}}}}<includeonly>[[Category:{{{2}}} settings]][[Category:{{{3}}} settings]][[Category:{{{4}}} settings]]</includeonly>
| ='''Lyricist:'''
|default='''Lyricist:''' [[{{{1}}}]]{{{2|}}}<includeonly>[[Category:{{{1}}} settings]]</includeonly>
|2 ='''Lyricists:''' {{#ifexist:{{alias|{{{2}}}}}|[[{{alias|{{{2}}}}}|{{{2}}}]]|{{{2}}}<small><sup>[{{fullurl:{{alias|{{{2}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup></small>[[Category:Works with nonexistent lyricist page]]}}{{#if:{{{5|}}}|{{{4|}}}}}{{{connective|&nbsp;and}}} {{#ifexist:{{alias|{{{3}}}}}|[[{{alias|{{{3}}}}}|{{{3}}}]]|{{{3}}}<small><sup>[{{fullurl:{{alias|{{{3}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup></small>[[Category:Works with nonexistent lyricist page]]}}{{{5|{{{4|}}}}}} <span style="display:none">[[{{alias|{{{2}}}}} settings| ]][[{{alias|{{{3}}}}} settings| ]]{{#dplvar:set|lyn1|{{{2|}}}}}{{#dplvar:set|lyn2|{{{3|}}}}}</span>{{IfMain|[[Category:Works with texts by known authors]]}}
}}<noinclude>
|3 ='''Lyricists:''' [[{{alias|{{{2}}}}}|{{{2}}}]]{{#if:{{{6|}}}|{{{5|}}}}}, [[{{alias|{{{3}}}}}|{{{3}}}]]{{{6|}}} and [[{{alias|{{{4}}}}}|{{{4}}}]]{{{7|{{#if:{{{6|}}}||{{{5|}}}}}}}} <span style="display:none">[[{{alias|{{{2}}}}} settings| ]][[{{alias|{{{3}}}}} settings| ]][[{{alias|{{{4}}}}} settings| ]]{{#dplvar:set|lyn1|{{{2|}}}}}{{#dplvar:set|lyn2|{{{3|}}}}}{{#dplvar:set|lyn3|{{{4|}}}}}</span>{{IfMain|[[Category:Works with texts by known authors]]}}
{{prot-temp}}<br>
|Anonymous
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
|Anonymous lyricist
<center><big>'''Documentation'''</big></center>
|Traditional
|Unknown ='''Lyricist:''' [[Anonymous lyricist|{{ucfirst: {{{1}}} }}]]{{{2|}}} <span style="display:none">[[Anonymous lyricist settings| ]]{{#dplvar:set|lyn1|Anonymous}}</span>{{IfMain|[[Category:Works with texts by unknown authors]]}}
|Composer(?)
|Composer?
|Probably the composer ='''Lyricist:''' [[Composer(?) lyricist|Probably the composer]]{{{2|}}} [[Category:Composer(?) lyricist settings|{{{sort|{{{9|?}}}}}}]]
|#default='''Lyricist:''' {{#ifexist:{{alias|{{{1}}}}}|[[{{alias|{{{1}}}}}|{{{1}}}]]|{{{1}}}<small><sup>[{{fullurl:{{alias|{{{1}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup></small>[[Category:Works with nonexistent lyricist page]]}}{{{2|}}} <span style="display:none">[[{{alias|{{{1}}}}} settings| ]]{{#dplvar:set|lyn1|{{{1|}}}}}</span>{{IfMain|[[Category:Works with texts by known authors]]}}
}}</includeonly><noinclude>
{{prot-temp}}
{{Doc|1=
=== Usage ===
;Syntax for one lyricist
*{{tl|Lyricist|''lyricist_name''|''optional_text''}}
:which produces the text
::'''Lyricist:''' <font color=blue>Lyricist_name</font> optional_text


;Usage:
;Syntax for two lyricists
*{{tl|Lyricist|2|''lyricist1_name''|''lyricist2_name''|''optional_text''}}
:which produces the text
::'''Lyricists:''' <font color=blue>Lyricist1_name</font> and <font color=blue>Lyricist2_name</font> optional_text


*<tt><nowiki>{{Lyricist|</nowiki>''lyricist_name''|''optional_text''}}</tt>
The conjunction "and" may be replaced by inserting another parameter:
*{{tl|Lyricist|2|''Johann Gottfried Herder''|connective{{=}}'', after''|''Ossian''}}
:produces the text
::'''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''}}
:which produces the text
:which produces the text
::'''Lyricist:''' <font color=blue><nowiki>lyricist_name</nowiki></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 <nowiki>[[Category:lyricist_name settings]]</nowiki>


*<tt><nowiki>{{Lyricist|</nowiki>''2''|''lyricist1_name''|''lyricist2_name''|''optional_text''}}</tt>
;Categorization
:which produces the text
Whenever this template is used, the page is included in category {{CiteCat|Works with texts by known authors}}
::'''Lyricists:''' <font color=blue><nowiki>lyricist1_name</nowiki></font> and <font color=blue><nowiki>lyricist2_name</nowiki></font> optional_text
:and inserts the page in <nowiki>[[Category:lyricist1_name settings]] and [[Category:lyricist2_name settings]]</nowiki>


*<tt><nowiki>{{Lyricist|</nowiki>''3''|''lyricist1_name''|''lyricist2_name''|''lyricist3_name''|''optional_text''}}</tt>
;See also
:which produces the text
*{{tl|LyricistSettingsList}}
::'''Lyricists:''' <font color=blue><nowiki>lyricist1_name</nowiki></font>, <font color=blue><nowiki>lyricist2_name</nowiki></font> and <font color=blue><nowiki>lyricist3_name</nowiki></font> optional_text
}}
:and inserts the page in <nowiki>[[Category:lyricist1_name settings]], [[Category:lyricist2_name settings]] and [[Category:lyricist3_name settings]]</nowiki>


</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 03:38, 18 March 2020

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