Template:Language: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(extended to up to 8 languages)
m (Reverted edits by CHGiffen (talk) to last revision by Carlos)
Tag: Rollback
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- don't delete this comment, it's necessary as a line break -->
<!-- don't delete this comment, it's necessary as a line break -->
<includeonly>{{switch|{{{1}}}
<includeonly>{{#switch:{{{1}}}
|case: 2='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], <!--
|2='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->[[:Category:Works in {{{3}}}|{{{3}}}]]{{{4|}}}<!--
                -->{{lcat|{{{3}}}}}{{{4|}}}
  -->[[Category:Works in {{{2}}}]][[Category:Works in {{{3}}}]]
|3='''Languages:''' {{lcat|{{{2}}}}}, <!--
|case: 3='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], <!--
                -->{{lcat|{{{3}}}}}, <!--
                      -->[[:Category:Works in {{{3}}}|{{{3}}}]], <!--
                -->{{lcat|{{{4}}}}}{{{5|}}}
                      -->[[:Category:Works in {{{4}}}|{{{4}}}]]{{{5|}}}<!--
|4='''Languages:''' {{lcat|{{{2}}}}}, <!--
  -->[[Category:Works in {{{2}}}]][[Category:Works in {{{3}}}]]<!--
                -->{{lcat|{{{3}}}}}, <!--
  -->[[Category:Works in {{{4}}}]]
                -->{{lcat|{{{4}}}}}, <!--
|case: 4='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], <!--
                -->{{lcat|{{{5}}}}}{{{6|}}}
                      -->[[:Category:Works in {{{3}}}|{{{3}}}]], <!--
|5='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->[[:Category:Works in {{{4}}}|{{{4}}}]], <!--
                -->{{lcat|{{{3}}}}}, <!--
                      -->[[:Category:Works in {{{5}}}|{{{5}}}]]{{{6|}}}<!--
                -->{{lcat|{{{4}}}}}, <!--
  -->[[Category:Works in {{{2}}}]][[Category:Works in {{{3}}}]]<!--
                -->{{lcat|{{{5}}}}}, <!--
  -->[[Category:Works in {{{4}}}]][[Category:Works in {{{5}}}]]
                -->{{lcat|{{{6}}}}}{{{7|}}}
|case: 5='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], <!--
|6='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->[[:Category:Works in {{{3}}}|{{{3}}}]], <!--
                -->{{lcat|{{{3}}}}}, <!--
                      -->[[:Category:Works in {{{4}}}|{{{4}}}]], <!--
                -->{{lcat|{{{4}}}}}, <!--
                      -->[[:Category:Works in {{{5}}}|{{{5}}}]], <!--
                -->{{lcat|{{{5}}}}}, <!--
                      -->[[:Category:Works in {{{6}}}|{{{6}}}]]{{{7|}}}<!--
                -->{{lcat|{{{6}}}}}, <!--
  -->[[Category:Works in {{{2}}}]][[Category:Works in {{{3}}}]]<!--
                -->{{lcat|{{{7}}}}}{{{8|}}}
  -->[[Category:Works in {{{4}}}]][[Category:Works in {{{5}}}]]<!--
|7='''Languages:''' {{lcat|{{{2}}}}}, <!--
  -->[[Category:Works in {{{6}}}]]
                -->{{lcat|{{{3}}}}}, <!--
|case: 6='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], <!--
                -->{{lcat|{{{4}}}}}, <!--
                      -->[[:Category:Works in {{{3}}}|{{{3}}}]], <!--
                -->{{lcat|{{{5}}}}}, <!--
                      -->[[:Category:Works in {{{4}}}|{{{4}}}]], <!--
                -->{{lcat|{{{6}}}}}, <!--
                      -->[[:Category:Works in {{{5}}}|{{{5}}}]], <!--
                -->{{lcat|{{{7}}}}}, <!--
                      -->[[:Category:Works in {{{6}}}|{{{6}}}]], <!--
                -->{{lcat|{{{8}}}}}{{{9|}}}
                      -->[[:Category:Works in {{{7}}}|{{{7}}}]]{{{8|}}}<!--
|8='''Languages:''' {{lcat|{{{2}}}}}, <!--
  -->[[Category:Works in {{{2}}}]][[Category:Works in {{{3}}}]]<!--
                -->{{lcat|{{{3}}}}}, <!--
  -->[[Category:Works in {{{4}}}]][[Category:Works in {{{5}}}]]<!--
                -->{{lcat|{{{4}}}}}, <!--
  -->[[Category:Works in {{{6}}}]][[Category:Works in {{{7}}}]]
                -->{{lcat|{{{5}}}}}, <!--
|case: 7='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], <!--
                -->{{lcat|{{{6}}}}}, <!--
                      -->[[:Category:Works in {{{3}}}|{{{3}}}]], <!--
                -->{{lcat|{{{7}}}}}, <!--
                      -->[[:Category:Works in {{{4}}}|{{{4}}}]], <!--
                -->{{lcat|{{{8}}}}}, <!--
                      -->[[:Category:Works in {{{5}}}|{{{5}}}]], <!--
                -->{{lcat|{{{9}}}}}{{{10|}}}
                      -->[[:Category:Works in {{{6}}}|{{{6}}}]], <!--
|None|none ='''Language:''' {{cat|Wordless works|None}}{{{2|}}}
                      -->[[:Category:Works in {{{7}}}|{{{7}}}]], <!--
|#default ='''Language:''' {{lcat|{{{1}}}}}{{{2|}}}
                      -->[[:Category:Works in {{{8}}}|{{{8}}}]]{{{9|}}}<!--
  -->[[Category:Works in {{{2}}}]][[Category:Works in {{{3}}}]]<!--
  -->[[Category:Works in {{{4}}}]][[Category:Works in {{{5}}}]]<!--
  -->[[Category:Works in {{{6}}}]][[Category:Works in {{{7}}}]]<!--
  -->[[Category:Works in {{{8}}}]]
|case: 8='''Languages:''' [[:Category:Works in {{{2}}}|{{{2}}}]], <!--
                      -->[[:Category:Works in {{{3}}}|{{{3}}}]], <!--
                      -->[[:Category:Works in {{{4}}}|{{{4}}}]], <!--
                      -->[[:Category:Works in {{{5}}}|{{{5}}}]], <!--
                      -->[[:Category:Works in {{{6}}}|{{{6}}}]], <!--
                      -->[[:Category:Works in {{{7}}}|{{{7}}}]], <!--
                      -->[[:Category:Works in {{{8}}}|{{{8}}}]], <!--
                      -->[[:Category:Works in {{{9}}}|{{{9}}}]]{{{10|}}}<!--
  -->[[Category:Works in {{{2}}}]][[Category:Works in {{{3}}}]]<!--
  -->[[Category:Works in {{{4}}}]][[Category:Works in {{{5}}}]]<!--
  -->[[Category:Works in {{{6}}}]][[Category:Works in {{{7}}}]]<!--
  -->[[Category:Works in {{{8}}}]][[Category:Works in {{{9}}}]]
|case: None='''Language:''' [[:Category:Wordless works|None]]{{{2|}}}<!--
  -->[[Category:Wordless works]]
|case: Unknown='''Language:''' [[:Category:Works in unknown language|Unknown]]{{{2|}}}<!--
  -->[[Category:Works in unknown language]]
|default='''Language:''' [[:Category:Works in {{{1}}}|{{{1}}}]]{{{2|}}}<!--
  -->[[Category:Works in {{{1}}}]]
}}<br></includeonly><noinclude>
}}<br></includeonly><noinclude>
This template is meant to format the entry for a single or multiple languages. If a work has multiple languages (up to 8), do not specify
{{DisplayBox|title=Documentation|text=
*<tt><nowiki>{{Language|French, Italian}}</nowiki></tt>
 
but make the first variable equal to the required number, e.g.  
This template is meant to format the entry for a single or multiple languages (up to 8).
*<tt><nowiki>{{Language|2|French|Italian}}</nowiki></tt><br><br>
 
If a work has only one language, use:
*{{tl|Language|Latin}}
If a work contains macaronic text, or has text underlay in more than one language, use:
*{{tl|Language|2|French|Italian}}
For each language used, the work will be categorized in the proper language category.
 
 
;Special cases
For works that are sung only with ''Ah''´s, ''Oh''´s or ''bocca chiusa'', use:
*{{tl|Language|None}}
For works that are sung with an onomatopoeic or made-up language, use:
*{{tl|Language|Invented}}
For works whose language couldn't be identified properly, use:
*{{tl|Language|Unknown}}
For works that are not supposed to have an underlay text (like Hymn tunes or Anglican chants), use:
*{{tl|Language|Unspecified}}
The work will be categorized respectively in one of these categories: {{CiteCat|Wordless works}}, {{CiteCat|Works in invented language}}, {{CiteCat|Works in unknown language}} or {{CiteCat|Works in unspecified language}}.
 
With the exception of "None", all other special cases can be mixed with a regular language:
*{{tl|Language|2|English|Invented}}
 
 
;Other features
The template now accepts language names mistakenly typed with lowercase initial. The same applies for the special cases cited above:
*{{tl|Language|2|english|invented}}
The links will be displayed normally with uppercase initial and the work will be correctly categorized in {{CiteCat|Works in English}}, {{CiteCat|Works in invented language}}.
 
A text can be added after the language or list of languages when necessary:
*{{tl|Language|English|«text»}}
*{{tl|Language|2|Latin|English|«text»}}
The «text» will be displayed on the same line.
}}<br><br>
{{prot-temp}}
{{prot-temp}}
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 17:41, 19 January 2020


Documentation

This template is meant to format the entry for a single or multiple languages (up to 8).

If a work has only one language, use:

If a work contains macaronic text, or has text underlay in more than one language, use:

For each language used, the work will be categorized in the proper language category.


Special cases

For works that are sung only with Ah´s, Oh´s or bocca chiusa, use:

For works that are sung with an onomatopoeic or made-up language, use:

For works whose language couldn't be identified properly, use:

For works that are not supposed to have an underlay text (like Hymn tunes or Anglican chants), use:

The work will be categorized respectively in one of these categories: Wordless works, Works in invented language, Works in unknown language or Works in unspecified language.

With the exception of "None", all other special cases can be mixed with a regular language:


Other features

The template now accepts language names mistakenly typed with lowercase initial. The same applies for the special cases cited above:

The links will be displayed normally with uppercase initial and the work will be correctly categorized in Works in English, Works in invented language.

A text can be added after the language or list of languages when necessary:

The «text» will be displayed on the same line.