Difference between revisions of "Template:Lyricist"

From ChoralWiki
Jump to: navigation, search
(simplified logic a bit)
(people are using various synonyms for "Anonymous lyricist", better go with them and add Anonymous/Traditional/Unknown)
Line 1: Line 1:
{{switch|{{{1}}}
+
{{#switch:{{{1}}}
|case: 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|}}}}}}<includeonly>[[Category:{{{2}}} settings]][[Category:{{{3}}} settings]]</includeonly>
|case: 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|}}}}}}}}<includeonly>[[Category:{{{2}}} settings]][[Category:{{{3}}} settings]][[Category:{{{4}}} settings]]</includeonly>
|default='''Lyricist:''' [[{{{1}}}]]{{{2|}}}<includeonly>[[Category:{{{1}}} settings]]</includeonly>
+
|Anonymous
 +
|Traditional
 +
|Unknown ='''Lyricist:''' [[Anonymous lyricist|Anonymous]]{{{2|}}}<includeonly>[[Category:Anonymous lyricist settings]]</includeonly>
 +
|'''Lyricist:''' [[{{{1}}}]]{{{2|}}}<includeonly>[[Category:{{{1}}} settings]]</includeonly>
 
}}<noinclude>
 
}}<noinclude>
 
{{prot-temp}}<br>
 
{{prot-temp}}<br>

Revision as of 08:01, 1 May 2009

Lyricist: [[{{{1}}}]]


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]]