Template:Lyricist: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(protected)
(extended template to accept up to 3 lyricists, documentation)
Line 1: Line 1:
<noinclude>{{prot-temp}}
{{switch|{{{1}}}
[[Category:Templates|{{PAGENAME}}]]</noinclude>'''Lyricist:''' [[{{{1}}}]]{{{2|}}}<includeonly>[[Category:{{{1}}} settings| {{{9|{{PAGENAME}}}}}]]</includeonly>
|case: 2='''Lyricists:''' [[{{{2}}}]] and [[{{{3}}}]]{{{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>
|default='''Lyricist:''' [[{{{1}}}]]{{{2|}}}<includeonly>[[Category:{{{1}}} settings| {{{9|{{PAGENAME}}}}}]]</includeonly>
}}<noinclude>
{{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">
<center><big>'''Documentation'''</big></center>
 
'''Accepted syntaxes for this template:'''
 
*<tt><nowiki>{{Lyricist|</nowiki>''lyricist_name''|''optional_text''|''9=optional_sortkey''}}</tt>
:which produces the text
::'''Lyricist:''' [[lyricist_name]] optional_text
:and inserts the page in [[:Category:lyricist_name settings]]
 
*<tt><nowiki>{{Lyricist|</nowiki>''2''|''lyricist1_name''|''lyricist2_name''|''optional_text''|''9=optional_sortkey''}}</tt>
: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]] 
 
*<tt><nowiki>{{Lyricist|</nowiki>''3''|''lyricist1_name''|''lyricist2_name''|''lyricist3_name''|''optional_text''|''9=optional_sortkey''}}</tt>
: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]]
 
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 21:38, 12 September 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