Template:Language: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (missed a few)
(add optional parameter for extra text, expand for cases None and Unknown)
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}} -->
<!-- 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:Works in {{{2}}}|{{{2}}}]]<includeonly>[[Category:Works in {{{2}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>, [[:Category:Works in {{{3}}}|{{{3}}}]]<includeonly>[[Category:Works in {{{3}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>
|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=<b>Languages:</b> [[:Category:Works in {{{2}}}|{{{2}}}]]<includeonly>[[Category:Works in {{{2}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>, [[:Category:Works in {{{3}}}|{{{3}}}]]<includeonly>[[Category:Works in {{{3}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>, [[:Category:Works in {{{4}}}|{{{4}}}]]<includeonly>[[Category:Works in {{{4}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>
|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=<b>Languages:</b> [[:Category:Works in {{{2}}}|{{{2}}}]]<includeonly>[[Category:Works in {{{2}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>, [[:Category:Works in {{{3}}}|{{{3}}}]]<includeonly>[[Category:Works in {{{3}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>, [[:Category:Works in {{{4}}}|{{{4}}}]]<includeonly>[[Category:Works in {{{4}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>, [[:Category:Works in {{{5}}}|{{{5}}}]]<includeonly>[[Category:Works in {{{5}}}|{{{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}}}]]<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}}}}}]]{{{6}}}</includeonly>
|default=<b>Language:</b> [[:Category:Works in {{{1}}}|{{{1}}}]]<includeonly>[[Category:Works in {{{1}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>
|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}}}<includeonly>[[Category:Works in unknown language|{{{9|{{PAGENAME}}}}}]]</includeonly>
|default='''Language:''' [[:Category:Works in {{{1}}}|{{{1}}}]]{{{2}}}<includeonly>[[Category:Works in {{{1}}}|{{{9|{{PAGENAME}}}}}]]</includeonly>
}}<br><noinclude>
}}<br><noinclude>
{{prot-temp}}
{{prot-temp}}
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 06:03, 17 November 2008

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