Template:Language: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<!-- 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}} -->
<includeonly>{{switch|{{{1}}}
{{switch|{{{1}}}
|case: 2='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], [[:Category:Works in {{{3}}}|{{{3}}}]]{{{4|}}}[[Category:Works in {{{2}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{3}}}|{{{9|{{PAGENAME}}}}}]]
|case: 2='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], [[:Category:Works in {{{3}}}|{{{3}}}]]{{{4|}}}<includeonly>[[Category:Works in {{{2}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{3}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>
|case: 3='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], [[:Category:Works in {{{3}}}|{{{3}}}]], [[:Category:Works in {{{4}}}|{{{4}}}]]{{{5|}}}[[Category:Works in {{{2}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{3}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{4}}}|{{{9|{{PAGENAME}}}}}]]
|case: 3='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], [[:Category:Works in {{{3}}}|{{{3}}}]], [[:Category:Works in {{{4}}}|{{{4}}}]]{{{5|}}}<includeonly>[[Category:Works in {{{2}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{3}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{4}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>
|case: 4='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], [[:Category:Works in {{{3}}}|{{{3}}}]], [[:Category:Works in {{{4}}}|{{{4}}}]], [[:Category:Works in {{{5}}}|{{{5}}}]]{{{6|}}}[[Category:Works in {{{2}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{3}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{4}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{5}}}|{{{9|{{PAGENAME}}}}}]]
|case: 4='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], [[:Category:Works in {{{3}}}|{{{3}}}]], [[:Category:Works in {{{4}}}|{{{4}}}]], [[:Category:Works in {{{5}}}|{{{5}}}]]{{{6|}}}<includeonly>[[Category:Works in {{{2}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{3}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{4}}}|{{{9|{{PAGENAME}}}}}]][[Category:Works in {{{5}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>
|case: None='''Language:''' [[:Category:Wordless works|None]]{{{2|}}}[[Category:Wordless works|{{{9|{{PAGENAME}}}}}]]
|case: None='''Language:''' [[:Category:Wordless works|None]]{{{2|}}}<includeonly>[[Category:Wordless works|{{{9|{{PAGENAME}}}}}]]</includeonly>
|case: Unknown='''Language:''' [[:Category:Works in unknown language|Unknown]]{{{2|}}}[[Category:Works in unknown language|{{{9|{{PAGENAME}}}}}]]
|case: Unknown='''Language:''' [[:Category:Works in unknown language|Unknown]]{{{2|}}}<includeonly>[[Category:Works in unknown language|{{{9|{{PAGENAME}}}}}]]</includeonly>
|default='''Language:''' [[:Category:Works in {{{1}}}|{{{1}}}]]{{{2|}}}[[Category:Works in {{{1}}}|{{{9|{{PAGENAME}}}}}]]
|default='''Language:''' [[:Category:Works in {{{1}}}|{{{1}}}]]{{{2|}}}<includeonly>[[Category:Works in {{{1}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>
}}<br></includeonly><noinclude>
}}<br><noinclude>
This template is meant to format the entry for a single or multiple languages. If a work has multiple languages (up to 4), do not specify
*<tt><nowiki>{{Language|French, Italian}}</nowiki></tt>
but make the first variable equal to the required number, e.g.
*<tt><nowiki>{{Language|2|French|Italian}}</nowiki></tt><br><br>
{{prot-temp}}
{{prot-temp}}
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 03:52, 15 December 2008

This template is meant to format the entry for a single or multiple languages. 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}}