Open main menu

Difference between revisions of "Template:Citation Style documentation/language"

< Template:Citation Style documentation
(It isn't always (or even usually) a violation of WP:CITEVAR.)
 
m (1 revision imported)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
* <b id="csdoc_language">language</b>: The language in which the source is written. Displays in parentheses with "in" before the language name or names. Use the full language name or the proper language code ([[Template:Citation Style documentation/language/doc|list of supported codes / names]]). When the source uses more than one language, list them individually, separated by commas, e.g. {{para|language|French, German}} or {{para|language|fr, de}}. When two or more languages are listed, do not include "and" before the last language ("and" is inserted automatically by the template). The use of language names or language codes recognized by Wikimedia adds the page to the appropriate subcategory of {{cl|CS1 foreign language sources}}. Do not use templates or wikilinks. When the language is "English" (or "en"), no language is displayed in the citation. Adding this parameter for English-language sources is neither encouraged nor discouraged. However, if someone has already added it, then removing it is discouraged as a [[Wikipedia:Cosmetic edit|cosmetic edit]]. Aliases: '''lang'''
+
* {{#invoke:cs1 documentation support|canonical_name_get|Language|id=csdoc_language}}: The language (or a comma-separated list of the languages) in which the source is written, as either the [[ISO 639]] language code (preferred) or the full language name. Examples: {{para|language|ru}};, {{para|lang|fr, pt-br}}; {{Para|lang|Russian}}; {{para|language|French, Portuguese}}. [[Template:Citation Style documentation/language/doc|See the list of supported codes and names]]. Do not use templates or wikilinks. Displays in parentheses with "in" before the language name or names. When the only source language is English, no language is displayed in the citation. The use of languages recognized by the citation module adds the page to the appropriate subcategory of {{cl|CS1 foreign language sources}}. Because cs1|2 templates are often copied from en.wiki to other wikis, use of language codes is preferred so that language names render in the correct language and form: {{#language:es|fr}} at a French-language wiki instead of the English word "Spanish". Aliases: {{#invoke:cs1 documentation support|alias_names_get|Language}}

Latest revision as of 05:11, 17 December 2020

  • language: The language (or a comma-separated list of the languages) in which the source is written, as either the ISO 639 language code (preferred) or the full language name. Examples: |language=ru;, |lang=fr, pt-br; |lang=Russian; |language=French, Portuguese. See the list of supported codes and names. Do not use templates or wikilinks. Displays in parentheses with "in" before the language name or names. When the only source language is English, no language is displayed in the citation. The use of languages recognized by the citation module adds the page to the appropriate subcategory of Category:CS1 foreign language sources. Because cs1|2 templates are often copied from en.wiki to other wikis, use of language codes is preferred so that language names render in the correct language and form: español at a French-language wiki instead of the English word "Spanish". Aliases: lang