Template:Lyricist: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(See also)
(corrected so that parameters written in all lower case will be treated properly)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|error}}}
<includeonly>{{#switch:{{ucfirst: {{{1|Error}}} }}
|error ='''Error:''' <font color="red">''Please use the syntax'' {{tl|Lyricist|''lyricist name''}}</font>
|Error ='''Error:''' <font color="red">''Please use the syntax'' {{tl|Lyricist|''lyricist name''}}</font>
| ='''Lyricist:'''
| ='''Lyricist:'''
|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| ]]</span>[[Category:Works with texts by known authors]]
|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| ]]</span>[[Category:Works with texts by known authors]]
Line 6: Line 6:
|Anonymous
|Anonymous
|Traditional
|Traditional
|Unknown ='''Lyricist:''' [[Anonymous lyricist|{{{1}}}]]{{{2|}}} [[Category:Anonymous lyricist settings]]
|Unknown ='''Lyricist:''' [[Anonymous lyricist|{{ucfirst: {{{1}}} }}]]{{{2|}}} [[Category:Anonymous lyricist settings]]
|Composer(?)
|Composer(?)
|Composer?
|Composer?

Revision as of 06:07, 20 March 2017

Documentation
Usage
  • {{Lyricist|lyricist_name|optional_text}}
which produces the text
Lyricist: Lyricist_name optional_text
and inserts the page in category Works with texts by known authors
  • {{Lyricist|2|lyricist1_name|lyricist2_name|optional_text}}
which produces the text
Lyricists: Lyricist1_name and Lyricist2_name optional_text
and inserts the page in category Works with texts by known authors
  • {{Lyricist|3|lyricist1_name|lyricist2_name|lyricist3_name|optional_text}}
which produces the text
Lyricists: Lyricist1_name, Lyricist2_name and Lyricist3_name optional_text
and inserts the page in category Works with texts by known authors
See also