Template:Language: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(using {{cat}})
m (Reverted edits by CHGiffen (talk) to last revision by Carlos)
Tag: Rollback
 
(3 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|{{ucfirst:{{{1}}}}}
<includeonly>{{#switch:{{{1}}}
|case: 2='''Languages:''' {{cat|Works in {{{2}}}|{{{2}}}}}, <!--
|2='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->{{cat|Works in {{{3}}}|{{{3}}}}}{{{4|}}}
                -->{{lcat|{{{3}}}}}{{{4|}}}
|case: 3='''Languages:''' {{cat|Works in {{{2}}}|{{{2}}}}}, <!--
|3='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->{{cat|Works in {{{3}}}|{{{3}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                      -->{{cat|Works in {{{4}}}|{{{4}}}}}{{{5|}}}
                -->{{lcat|{{{4}}}}}{{{5|}}}
|case: 4='''Languages:''' {{cat|Works in {{{2}}}|{{{2}}}}}, <!--
|4='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->{{cat|Works in {{{3}}}|{{{3}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                      -->{{cat|Works in {{{4}}}|{{{4}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                      -->{{cat|Works in {{{5}}}|{{{5}}}}}{{{6|}}}
                -->{{lcat|{{{5}}}}}{{{6|}}}
|case: 5='''Languages:''' {{cat|Works in {{{2}}}|{{{2}}}}}, <!--
|5='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->{{cat|Works in {{{3}}}|{{{3}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                      -->{{cat|Works in {{{4}}}|{{{4}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                      -->{{cat|Works in {{{5}}}|{{{5}}}}}, <!--
                -->{{lcat|{{{5}}}}}, <!--
                      -->{{cat|Works in {{{6}}}|{{{6}}}}}{{{7|}}}
                -->{{lcat|{{{6}}}}}{{{7|}}}
|case: 6='''Languages:''' {{cat|Works in {{{2}}}|{{{2}}}}}, <!--
|6='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->{{cat|Works in {{{3}}}|{{{3}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                      -->{{cat|Works in {{{4}}}|{{{4}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                      -->{{cat|Works in {{{5}}}|{{{5}}}}}, <!--
                -->{{lcat|{{{5}}}}}, <!--
                      -->{{cat|Works in {{{6}}}|{{{6}}}}}, <!--
                -->{{lcat|{{{6}}}}}, <!--
                      -->{{cat|Works in {{{7}}}|{{{7}}}}}{{{8|}}}
                -->{{lcat|{{{7}}}}}{{{8|}}}
|case: 7='''Languages:''' {{cat|Works in {{{2}}}|{{{2}}}}}, <!--
|7='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->{{cat|Works in {{{3}}}|{{{3}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                      -->{{cat|Works in {{{4}}}|{{{4}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                      -->{{cat|Works in {{{5}}}|{{{5}}}}}, <!--
                -->{{lcat|{{{5}}}}}, <!--
                      -->{{cat|Works in {{{6}}}|{{{6}}}}}, <!--
                -->{{lcat|{{{6}}}}}, <!--
                      -->{{cat|Works in {{{7}}}|{{{7}}}}}, <!--
                -->{{lcat|{{{7}}}}}, <!--
                      -->{{cat|Works in {{{8}}}|{{{8}}}}}{{{9|}}}
                -->{{lcat|{{{8}}}}}{{{9|}}}
|case: 8='''Languages:''' {{cat|Works in {{{2}}}|{{{2}}}}}, <!--
|8='''Languages:''' {{lcat|{{{2}}}}}, <!--
                      -->{{cat|Works in {{{3}}}|{{{3}}}}}, <!--
                -->{{lcat|{{{3}}}}}, <!--
                      -->{{cat|Works in {{{4}}}|{{{4}}}}}, <!--
                -->{{lcat|{{{4}}}}}, <!--
                      -->{{cat|Works in {{{5}}}|{{{5}}}}}, <!--
                -->{{lcat|{{{5}}}}}, <!--
                      -->{{cat|Works in {{{6}}}|{{{6}}}}}, <!--
                -->{{lcat|{{{6}}}}}, <!--
                      -->{{cat|Works in {{{7}}}|{{{7}}}}}, <!--
                -->{{lcat|{{{7}}}}}, <!--
                      -->{{cat|Works in {{{8}}}|{{{8}}}}}, <!--
                -->{{lcat|{{{8}}}}}, <!--
                      -->{{cat|Works in {{{9}}}|{{{9}}}}}{{{10|}}}
                -->{{lcat|{{{9}}}}}{{{10|}}}
|case: None     ='''Language:''' {{cat|Wordless works|None}}{{{2|}}}
|None|none ='''Language:''' {{cat|Wordless works|None}}{{{2|}}}
|case: Invented ='''Language:''' {{cat|Works in invented language|Invented}}{{{2|}}}
|#default ='''Language:''' {{lcat|{{{1}}}}}{{{2|}}}
|case: Unknown ='''Language:''' {{cat|Works in unknown language|Unknown}}{{{2|}}}
|default        ='''Language:''' {{cat|Works in {{{1}}}|{{{1}}}}}{{{2|}}}
}}<br></includeonly><noinclude>
}}<br></includeonly><noinclude>
{{DisplayBox|title=Documentation|text=
{{DisplayBox|title=Documentation|text=
Line 46: Line 44:


If a work has only one language, use:
If a work has only one language, use:
*<tt><nowiki>{{Language|Latin}}</nowiki></tt>
*{{tl|Language|Latin}}
If a work contains macaronic text, or has text underlay in more than one language, use:
If a work contains macaronic text, or has text underlay in more than one language, use:
*<tt><nowiki>{{Language|2|French|Italian}}</nowiki></tt>
*{{tl|Language|2|French|Italian}}
For each language used, the work will be categorized in the proper language category.
For each language used, the work will be categorized in the proper language category.


Line 54: Line 52:
;Special cases
;Special cases
For works that are sung only with ''Ah''´s, ''Oh''´s or ''bocca chiusa'', use:
For works that are sung only with ''Ah''´s, ''Oh''´s or ''bocca chiusa'', use:
*<tt><nowiki>{{Language|None}}</nowiki></tt>
*{{tl|Language|None}}
For works that are sung with an onomatopoeic or made-up language, use:
For works that are sung with an onomatopoeic or made-up language, use:
*<tt><nowiki>{{Language|Invented}}</nowiki></tt>
*{{tl|Language|Invented}}
For works whose language couldn't be identified properly, use:
For works whose language couldn't be identified properly, use:
*<tt><nowiki>{{Language|Unknown}}</nowiki></tt>
*{{tl|Language|Unknown}}
The work will be categorized respectively in one of these categories: {{CiteCat|Wordless works}}, {{CiteCat|Works in invented language}} or {{CiteCat|Works in unknown language}}.
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>
}}<br><br>
{{prot-temp}}
{{prot-temp}}
[[Category:Templates]]</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.