Difference between revisions of "Template:Lyricist"

From ChoralWiki
Jump to: navigation, search
m
(if Lyricist = Composer, don't categorize in Lyricist_settings)
Line 1: Line 1:
{{#switch:{{{1}}}
+
<includeonly>{{#switch:{{{1}}}
|2 ='''Lyricists:''' [[{{{2}}}]]{{#if:{{{5|}}}|{{{4|}}}}} and [[{{{3}}}]]{{{5|{{{4|}}}}}}<includeonly>[[Category:{{{2}}} settings]][[Category:{{{3}}} settings]]</includeonly>
+
|2 ='''Lyricists:''' [[{{{2}}}]]{{#if:{{{5|}}}|{{{4|}}}}} and [[{{{3}}}]]{{{5|{{{4|}}}}}} {{#ifexist: Category:{{{2}}} compositions||[[Category:{{{2}}} settings]]}} {{#ifexist: Category:{{{3}}} compositions||[[Category:{{{3}}} settings]]}}
|3 ='''Lyricists:''' [[{{{2}}}]]{{#if:{{{6|}}}|{{{5|}}}}}, [[{{{3}}}]]{{{6|}}} and [[{{{4}}}]]{{{7|{{#if:{{{6|}}}||{{{5|}}}}}}}}<includeonly>[[Category:{{{2}}} settings]][[Category:{{{3}}} settings]][[Category:{{{4}}} settings]]</includeonly>
+
|3 ='''Lyricists:''' [[{{{2}}}]]{{#if:{{{6|}}}|{{{5|}}}}}, [[{{{3}}}]]{{{6|}}} and [[{{{4}}}]]{{{7|{{#if:{{{6|}}}||{{{5|}}}}}}}} {{#ifexist: Category:{{{2}}} compositions||[[Category:{{{2}}} settings]]}} {{#ifexist: Category:{{{3}}} compositions||[[Category:{{{3}}} settings]]}} {{#ifexist: Category:{{{4}}} compositions||[[Category:{{{4}}} settings]]}}
 
|Anonymous
 
|Anonymous
 
|Traditional
 
|Traditional
|Unknown ='''Lyricist:''' [[Anonymous lyricist|{{{1}}}]]{{{2|}}}<includeonly>[[Category:Anonymous lyricist settings]]</includeonly>
+
|Unknown ='''Lyricist:''' [[Anonymous lyricist|{{{1}}}]]{{{2|}}} [[Category:Anonymous lyricist settings]]
|'''Lyricist:''' [[{{{1}}}]]{{{2|}}}<includeonly>[[Category:{{{1}}} settings]]</includeonly>
+
|'''Lyricist:''' [[{{{1}}}]]{{{2|}}} {{#ifexist: Category:{{{1}}} compositions||[[Category:{{{1}}} settings]]}}
}}<noinclude>
+
}}</includeonly><noinclude>
 
{{prot-temp}}<br>
 
{{prot-temp}}<br>
 
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
 
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">

Revision as of 09:02, 11 May 2009


Documentation
Usage
  • {{Lyricist|lyricist_name|optional_text}}
which produces the text
Lyricist: lyricist_name optional_text
and inserts the page in [[Category:lyricist_name settings]]
  • {{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:lyricist1_name settings]] and [[Category:lyricist2_name settings]]
  • {{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:lyricist1_name settings]], [[Category:lyricist2_name settings]] and [[Category:lyricist3_name settings]]