Difference between revisions of "Template:Lyricist"

From ChoralWiki
Jump to: navigation, search
(extended template to accept up to 3 lyricists, documentation)
(extended template to accept up to 3 comments AFTER the lyricists names)
Line 1: Line 1:
 
{{switch|{{{1}}}
 
{{switch|{{{1}}}
|case: 2='''Lyricists:''' [[{{{2}}}]] and [[{{{3}}}]]{{{4|}}}<includeonly>[[Category:{{{2}}} settings| {{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} settings| {{{9|{{PAGENAME}}}}}]]</includeonly>
+
|case: 2='''Lyricists:''' [[{{{2}}}]]{{switch|{{{5|void}}}|case: void=|default={{{4|}}}}} and [[{{{3}}}]]{{{5|{{{4|}}}}}}<includeonly>[[Category:{{{2}}} settings| {{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} settings| {{{9|{{PAGENAME}}}}}]]</includeonly>
|case: 3='''Lyricists:''' [[{{{2}}}]], [[{{{3}}}]] and [[{{{4}}}]]{{{5|}}}<includeonly>[[Category:{{{2}}} settings| {{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} settings| {{{9|{{PAGENAME}}}}}]][[Category:{{{4}}} settings| {{{9|{{PAGENAME}}}}}]]</includeonly>
+
|case: 3='''Lyricists:''' [[{{{2}}}]]{{switch|{{{6|void}}}|case: void=|default={{{5|}}}}}, [[{{{3}}}]]{{{6|}}} and [[{{{4}}}]]{{{7|{{{5|}}}}}}<includeonly>[[Category:{{{2}}} settings| {{{9|{{PAGENAME}}}}}]][[Category:{{{3}}} settings| {{{9|{{PAGENAME}}}}}]][[Category:{{{4}}} settings| {{{9|{{PAGENAME}}}}}]]</includeonly>
 
|default='''Lyricist:''' [[{{{1}}}]]{{{2|}}}<includeonly>[[Category:{{{1}}} settings| {{{9|{{PAGENAME}}}}}]]</includeonly>
 
|default='''Lyricist:''' [[{{{1}}}]]{{{2|}}}<includeonly>[[Category:{{{1}}} settings| {{{9|{{PAGENAME}}}}}]]</includeonly>
 
}}<noinclude>
 
}}<noinclude>

Revision as of 14:38, 27 October 2008

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


Documentation

Accepted syntaxes for this template:

  • {{Lyricist|lyricist_name|optional_text|9=optional_sortkey}}
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|9=optional_sortkey}}
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|9=optional_sortkey}}
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