Template:Language: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(changed <lang>_language_works to: Works_in_<lang> (less unwieldy, less wordy))
(extend template to handle up to 4 languages)
Line 1: Line 1:
<!-- This template is only meant to format the entry for a single language. If a work has multiple languages, do not specify {{Language|French, Italian}}, but make the first variable equal to the required number, e.g. {{Language|2|French|Italian}} -->
<!-- This template is only meant to format the entry for a single language. If a work has multiple languages (up to 4), do not specify {{Language|French, Italian}}, but make the first variable equal to the required number, e.g. {{Language|2|French|Italian}} -->
{{switch|{{{1}}}
{{switch|{{{1}}}
|case: 2=<b>Languages:</b> [[:Category:{{{2}}} texts|{{{2}}}]][[Category:Works in {{{2}}}]], [[:Category:{{{3}}} texts|{{{3}}}]][[Category:Works in {{{3}}}]]
|case: 2=<b>Languages:</b> [[:Category:{{{2}}} texts|{{{2}}}]][[Category:Works in {{{2}}}]], [[:Category:{{{3}}} texts|{{{3}}}]][[Category:Works in {{{3}}}]]
|case: 3=<b>Languages:</b> [[:Category:{{{2}}} texts|{{{2}}}]][[Category:Works in {{{2}}}]], [[:Category:{{{3}}} texts|{{{3}}}]][[Category:Works in {{{3}}}]], [[:Category:{{{4}}} texts|{{{4}}}]][[Category:Works in {{{4}}}]]
|case: 3=<b>Languages:</b> [[:Category:{{{2}}} texts|{{{2}}}]][[Category:Works in {{{2}}}]], [[:Category:{{{3}}} texts|{{{3}}}]][[Category:Works in {{{3}}}]], [[:Category:{{{4}}} texts|{{{4}}}]][[Category:Works in {{{4}}}]]
|case: 4='''Languages:''' [[:Category:{{{2}}} texts|{{{2}}}]][[Category:Works in {{{2}}}]], [[:Category:{{{3}}} texts|{{{3}}}]][[Category:Works in {{{3}}}]], [[:Category:{{{4}}} texts|{{{4}}}]][[Category:Works in {{{4}}}]], [[:Category:{{{5}}} texts|{{{5}}}]][[Category:Works in {{{5}}}]]
|default=<b>Language:</b> [[:Category:{{{1}}} texts|{{{1}}}]][[Category:Works in {{{1}}}]]
|default=<b>Language:</b> [[:Category:{{{1}}} texts|{{{1}}}]][[Category:Works in {{{1}}}]]
}}<br><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
}}<br><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 14:04, 31 January 2008

Language: [[:Category:{{{1}}} texts|{{{1}}}]][[Category:Works in {{{1}}}]]