Template:Language: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(fix error)
m (Reverted edits by CHGiffen (talk) to last revision by Carlos)
Tag: Rollback
 
(22 intermediate revisions by 2 users not shown)
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}} -->
<!-- don't delete this comment, it's necessary as a line break -->
{{switch|{{{1}}}
<includeonly>{{#switch:{{{1}}}
|case: 2=<b>Languages:</b> [[:Category:{{{2}}} texts|{{{2}}}]][[Category:{{{2}}} language works]], [[:Category:{{{3}}} texts|{{{3}}}]][[Category:{{{3}}} language works]]
|2='''Languages:''' {{lcat|{{{2}}}}}, <!--
|case: 3=<b>Languages:</b> [[:Category:{{{2}}} texts|{{{2}}}]][[Category:{{{2}}} language works]], [[:Category:{{{3}}} texts|{{{3}}}]][[Category:{{{3}}} language works]], [[:Category:{{{4}}} texts|{{{4}}}]][[Category:{{{4}}} works]]
                -->{{lcat|{{{3}}}}}{{{4|}}}
|default=<b>Language:</b> [[:Category:{{{1}}} texts|{{{1}}}]][[Category:{{{1}}} language works]]
|3='''Languages:''' {{lcat|{{{2}}}}}, <!--
}}<br><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
                -->{{lcat|{{{3}}}}}, <!--
                -->{{lcat|{{{4}}}}}{{{5|}}}
|4='''Languages:''' {{lcat|{{{2}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                -->{{lcat|{{{5}}}}}{{{6|}}}
|5='''Languages:''' {{lcat|{{{2}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                -->{{lcat|{{{5}}}}}, <!--
                -->{{lcat|{{{6}}}}}{{{7|}}}
|6='''Languages:''' {{lcat|{{{2}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                -->{{lcat|{{{5}}}}}, <!--
                -->{{lcat|{{{6}}}}}, <!--
                -->{{lcat|{{{7}}}}}{{{8|}}}
|7='''Languages:''' {{lcat|{{{2}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                -->{{lcat|{{{5}}}}}, <!--
                -->{{lcat|{{{6}}}}}, <!--
                -->{{lcat|{{{7}}}}}, <!--
                -->{{lcat|{{{8}}}}}{{{9|}}}
|8='''Languages:''' {{lcat|{{{2}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                -->{{lcat|{{{5}}}}}, <!--
                -->{{lcat|{{{6}}}}}, <!--
                -->{{lcat|{{{7}}}}}, <!--
                -->{{lcat|{{{8}}}}}, <!--
                -->{{lcat|{{{9}}}}}{{{10|}}}
|None|none ='''Language:''' {{cat|Wordless works|None}}{{{2|}}}
|#default ='''Language:''' {{lcat|{{{1}}}}}{{{2|}}}
}}<br></includeonly><noinclude>
{{DisplayBox|title=Documentation|text=
 
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:
*{{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}}
[[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.