Difference between revisions of "Template:Expand language"
imported>Pppery (No cats on sandboxes per edit request) |
imported>Gonnym (replacing Language/name with {{Mw lang}}) |
||
| Line 18: | Line 18: | ||
|#default = }} | |#default = }} | ||
* Do not translate text that appears unreliable or low-quality. If possible, verify the text with references provided in the foreign-language article. | * Do not translate text that appears unreliable or low-quality. If possible, verify the text with references provided in the foreign-language article. | ||
| − | * You '''must''' provide [[Wikipedia:Copying within Wikipedia|copyright attribution]] in the [[Help:Edit summary|edit summary]] accompanying your translation by providing an [[Help:Interlanguage links|interlanguage link]] to the source of your translation. A model attribution edit summary {{#if:{{ | + | * You '''must''' provide [[Wikipedia:Copying within Wikipedia|copyright attribution]] in the [[Help:Edit summary|edit summary]] accompanying your translation by providing an [[Help:Interlanguage links|interlanguage link]] to the source of your translation. A model attribution edit summary {{#if: {{Mw lang|fn=is_code|{{{langcode}}}}} | <code>Content in this edit is translated from the existing {{#language:{{{langcode|}}}|en}} Wikipedia article at <nowiki>[[:</nowiki>{{{langcode}}}<nowiki>:</nowiki>{{{otherarticle|Exact name of German article}}}<nowiki>]]</nowiki>; see its history for attribution.</code> | (using German): <code>Content in this edit is translated from the existing German Wikipedia article at <nowiki>[[:de:Exact name of German article]]</nowiki>; see its history for attribution.</code> }} |
* You should also add the template {{#if:{{{otherarticle|}}}|<code><nowiki>{{Translated|</nowiki>{{{langcode|}}}<nowiki>|</nowiki>{{{otherarticle}}}<nowiki>}}</nowiki></code>|{{tl|Translated page}}}} to the [[{{TALKPAGENAME}}|talk page]]. | * You should also add the template {{#if:{{{otherarticle|}}}|<code><nowiki>{{Translated|</nowiki>{{{langcode|}}}<nowiki>|</nowiki>{{{otherarticle}}}<nowiki>}}</nowiki></code>|{{tl|Translated page}}}} to the [[{{TALKPAGENAME}}|talk page]]. | ||
* For more guidance, see [[Wikipedia:Translation]]. | * For more guidance, see [[Wikipedia:Translation]]. | ||
Revision as of 10:14, 30 August 2020
This article may be expanded with text translated from a corresponding article in another language. Click [show] for important translation instructions.
|
| If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as this template is used in the standard installation of Twinkle. Thank you! |
| This template should usually not be placed on article pages directly. Instead, choose a language-specific template from Category:Expand by language Wikipedia templates. |
Contents
Typical usage
If you find an article in the English Wikipedia is much less complete than the corresponding article in another language, there are a series of templates you can use to announce this on the page. Do not use this template, but instead, please use the appropriate template in Category:Expand by language Wikipedia templates. If the language you are looking for doesn't already have a template, see below for instructions on how to make one.
How to create a new daughter template using this template
{{Expand language
|langcode=
|otherarticle={{{1|}}}
|section={{{section|}}}
|date={{{date|}}}
|fa={{{fa|}}}
|topic=
|nodoc={{{nodoc|}}}
|no interwiki={{{no interwiki|}}}
}}
Example for Spanish (see {{Expand Spanish}}):
{{Expand language
|langcode=es
|otherarticle={{{1|}}}
|section={{{section|}}}
|date={{{date|}}}
|fa={{{fa|}}}
|topic={{{topic|}}}
}}
Uncommon override parameters:
|googlelangcode= <!-- for where Google's language translation code is not the same as the Wikipedia language translation code -->
(Currently only used in Template:Expand Norwegian (Nynorsk).)
For a list of all daughter templates, see Category:Expand by language Wikipedia templates.
What else needs to be done after you set up the template
For all of these steps, replace XXXX with the name of the language you just created. Template:What
- 1. Create a template documentation page.
This is easy. Just go to Template:Expand XXXX/doc. There, you should paste {{Expand language/howto|XXXX}}.
- 2. Set up the category where articles to be translated will go.
Go to Category:Articles needing translation from XXXX Wikipedia. There, paste the following:
{{Transcat
|language=XXXX
|empty=y
}}
You can also add categories there for Wikiprojects that may be interested.
Multiple languages
Multiple languages can be specified in the same template using |langcode2=, |otherarticle2=, |langcode3= and |otherarticle3=. This functionality is not accessible in wrapper templates.
| The above documentation is transcluded from Template:Expand language/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |