Template:Language: Difference between revisions
(simpler code with {{lcat}} - expanded doc to include the new enhancements) |
No edit summary |
||
Line 36: | Line 36: | ||
-->{{lcat|{{{8}}}}}, <!-- | -->{{lcat|{{{8}}}}}, <!-- | ||
-->{{lcat|{{{9}}}}}{{{10|}}} | -->{{lcat|{{{9}}}}}{{{10|}}} | ||
|9='''Languages:''' {{lcat|{{{2}}}}}, <!-- | |||
-->{{lcat|{{{3}}}}}, <!-- | |||
-->{{lcat|{{{4}}}}}, <!-- | |||
-->{{lcat|{{{5}}}}}, <!-- | |||
-->{{lcat|{{{6}}}}}, <!-- | |||
-->{{lcat|{{{7}}}}}, <!-- | |||
-->{{lcat|{{{8}}}}}, <!-- | |||
-->{{lcat|{{{9}}}}}, <!-- | |||
-->{{lcat|{{{10}}}}}{{{11|}}} | |||
|8='''Languages:''' {{lcat|{{{2}}}}}, <!-- | |||
-->{{lcat|{{{3}}}}}, <!-- | |||
-->{{lcat|{{{4}}}}}, <!-- | |||
-->{{lcat|{{{5}}}}}, <!-- | |||
-->{{lcat|{{{6}}}}}, <!-- | |||
-->{{lcat|{{{7}}}}}, <!-- | |||
-->{{lcat|{{{8}}}}}, <!-- | |||
-->{{lcat|{{{9}}}}}, <!-- | |||
-->{{lcat|{{{10}}}}}, <!-- | |||
-->{{lcat|{{{11}}}}}{{{12|}}} | |||
|None|none ='''Language:''' {{cat|Wordless works|None}}{{{2|}}} | |None|none ='''Language:''' {{cat|Wordless works|None}}{{{2|}}} | ||
|#default ='''Language:''' {{lcat|{{{1}}}}}{{{2|}}} | |#default ='''Language:''' {{lcat|{{{1}}}}}{{{2|}}} | ||
Line 41: | Line 60: | ||
{{DisplayBox|title=Documentation|text= | {{DisplayBox|title=Documentation|text= | ||
This template is meant to format the entry for a single or multiple languages (up to | This template is meant to format the entry for a single or multiple languages (up to 10). | ||
If a work has only one language, use: | If a work has only one language, use: |
Revision as of 17:34, 19 January 2020
This template is meant to format the entry for a single or multiple languages (up to 10).
If a work has only one language, use:
- {{Language|Latin}}
If a work contains macaronic text, or has text underlay in more than one language, use:
- {{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:
- {{Language|None}}
For works that are sung with an onomatopoeic or made-up language, use:
- {{Language|Invented}}
For works whose language couldn't be identified properly, use:
- {{Language|Unknown}}
For works that are not supposed to have an underlay text (like Hymn tunes or Anglican chants), use:
- {{Language|Unspecified}}
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:
- {{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:
- {{Language|2|english|invented}}
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.
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |