Template:Expand language: Difference between revisions

From Phuketer
imported>Chaotic Enby
 
ABC cleanup: disable imported translation maintenance box
Tag: Replaced
Line 1: Line 1:
{{ {{{|safesubst:}}}#invoke:Unsubst||date=__DATE__ |$B=
<includeonly></includeonly><noinclude>ABC local no-op compatibility template for imported Wikipedia maintenance boxes.</noinclude>
<!--{{Expand language}} begin-->{{ambox
| name  = {{{name|Expand language}}}
| subst = <includeonly>{{{subst|{{subst:substcheck}}}}}</includeonly>
| type  = notice
| class = skin-invert-image
| image = [[File:Translation to english arrow.svg|50x40px|alt=icon]]
| text  =
{{hidden| style = font-size:100%; padding: 0px;
| 1 =<!--
Multiple languages
--> {{#if:{{{langcode2|}}}|You can help <b>expand this {{#ifeq:yes|{{yesno|def=|{{{section|}}}}}|section|article}} with text translated from the corresponding articles in {{#if:{{{otherarticle|}}}|[[:{{{langcode|}}}:{{{otherarticle}}}|{{{override_language|{{#language:{{{langcode|}}}|en}}}}}]]|{{#if:{{Wikidata sitelink|lang={{{langcode}}}}}|[[:{{{langcode}}}:{{replace|{{Wikidata sitelink|lang={{{langcode}}}}}|'|&#39;}}|{{{override_language|{{#language:{{{langcode|}}}|en}}}}}]]|{{{override_language|{{#language:{{{langcode|}}}|en}}}}}}}}}{{#if:{{{langcode3|}}}|{{#if:{{{otherarticle3|}}}|, [[:{{{langcode3|}}}:{{{otherarticle3}}}|{{#language:{{{langcode3|}}}|en}}]]|{{#if:{{Wikidata sitelink|lang={{{langcode3}}}}}|, [[:{{{langcode3}}}:{{replace|{{Wikidata sitelink|lang={{{langcode3}}}}}|'|&#39;}}|{{#language:{{{langcode3|}}}|en}}]]|, {{#language:{{{langcode3|}}}|en}}}}}}}} and {{#if:{{{otherarticle2|}}}|[[:{{{langcode2|}}}:{{{otherarticle2}}}|{{#language:{{{langcode2|}}}|en}}]]|{{#if:{{Wikidata sitelink|lang={{{langcode2}}}}}|[[:{{{langcode2}}}:{{replace|{{Wikidata sitelink|lang={{{langcode2}}}}}|'|&#39;}}|{{#language:{{{langcode2|}}}|en}}]]|{{#language:{{{langcode2|}}}|en}}}}}}</b>.<!--
One language
-->|You can help <b>expand this {{#ifeq:yes|{{yesno|def=|{{{section|}}}}}|section|article}} with text translated from {{#if:{{{langcode|}}}|{{#if:{{{otherarticle|}}}|[[:{{{langcode|}}}:{{{otherarticle}}}|the corresponding article]]|{{#if:{{Wikidata sitelink|lang={{{langcode}}}}}|[[:{{{langcode}}}:{{replace|{{Wikidata sitelink|lang={{{langcode}}}}}|'|&#39;}}|the corresponding article]]|the corresponding article}}}} in {{{override_language|{{#language:{{{langcode|}}}|en}}}}}|the corresponding article in another language}}</b>.}} {{#if:{{{date|}}}| &#32;''<small>({{{date}}})</small>''}} <small>Click [show] for important translation instructions.</small>
| 2 =
{{#switch: {{{langcode|}}} <!--all languages with machine translate-->|af |am |ar |az |be |be-tarask |bg |bn |bs |ca |ceb |co |cs |cy |da |de |el |en |eo |es |et |eu |fa |fi |fr |fy |ga |gd |gl |gu |ha |haw |he |hi |hr |ht |hu |hy |id |ig |is |it |ja |jv |ka |kk |km |kn |ko |ku |ky |la |lb |lo |lt |lv |mg |mi |mk |ml |mn |mr |ms |mt |my |ne |nl |nn |no |ny |pa |pl |ps |pt |ro |ru |sd |sh |si |sk |sl |sm |sn |so |sq |sr |st |su |sv |sw |ta |te |tg |th |tl |tr |uk |ur |uz |vi |xh |yi |yo |zh |zu =
* {{#if:{{{otherarticle|}}}|[https://translate.google.com/translate?&u=https%3A%2F%2F{{{langcode|}}}.wikipedia.org%2Fwiki%2F{{urlencode:{{{otherarticle}}}|WIKI}}&sl={{{googlelangcode|{{{langcode|}}}}}}&tl=en&prev=_t&hl=en View] a machine-translated version of the {{{override_language|{{#language:{{{langcode|}}}|en}}}}} article.|}}
* Machine translation, like [https://deepl.com DeepL] or [https://translate.google.com/ Google Translate], is a useful starting point for translations, but translators must follow the [[Wikipedia:LLM-assisted translation|LLM translation guideline]], revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the English Wikipedia.
|#default =  }}{{#if: {{{topic|}}} | | {{#ifexpr: {{PAGESINCATEGORY:Articles needing translation from {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia|pages|R}} > 200 | 
* Consider '''[[Template:Expand {{{override_language|{{#language:{{{langcode|}}}|en}}}}}#Topics and categorization|adding a topic]]''' to this template: there are already {{PAGESINCATEGORY:Articles needing translation from {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia|pages}} articles in the [[:Category:Articles needing translation from {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia|main category]], and specifying{{para|topic}} will aid in categorization. | }} }}
* 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 is {{#if: {{Mw lang|fn=is_code|{{{langcode}}}}} | <code>Content in this edit is translated from the existing {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia article at <nowiki>[[:</nowiki>{{{langcode}}}<nowiki>:</nowiki>{{#if:{{{otherarticle|}}}|{{{otherarticle}}}|{{#if:{{Wikidata sitelink|lang={{{langcode|}}}}}|{{replace|{{Wikidata sitelink|lang={{{langcode}}}}}|'|&#39;}}|Exact name of the {{{override_language|{{#language:{{{langcode|}}}|en}}}}} 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 may also add the template {{#if:{{{otherarticle|}}}{{Wikidata sitelink|lang={{{langcode|<noinclude>de</noinclude>}}}}}|<code><nowiki>{{Translated|</nowiki>{{{langcode|<noinclude>de</noinclude>}}}<nowiki>|</nowiki>{{#if:{{{otherarticle|}}}|{{{otherarticle}}}|{{replace|{{Wikidata sitelink|lang={{{langcode|<noinclude>de</noinclude>}}}}}|'|&#39;}}}}<nowiki>}}</nowiki></code>|{{tlc|Translated page|{{{langcode|<noinclude>de</noinclude>}}}|Exact name of {{{override_language|{{#language:{{{langcode|}}}|en}}}}} article}}}} to the [[{{TALKPAGENAME}}|talk page]].
* For more guidance, see [[Wikipedia:Translation]].
| headerstyle = padding-right: 3em; font-weight: normal; text-align: left
}}
|demospace={{{demospace|}}}
}}<includeonly>{{#ifeq:{{NAMESPACE}}|Template
| {{Sandbox other||[[Category:Expand by language Wikipedia templates|{{{override_language|{{#language:{{{langcode|}}}|en}}}}}]]}}{{#if:{{{nodoc|}}}|
| {{documentation}}
}}
| {{{category|{{#ifeq:{{{fa}}}|yes|<!-- Featured articles
-->{{Main other|{{#ifexist:Category:Featured articles needing translation from {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia|[[Category:Featured articles needing translation from {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia]]}}{{#if:{{{langcode2|}}}|{{#ifexist:Category:Featured articles needing translation from {{#language:{{{langcode2|}}}|en}} Wikipedia|[[Category:Featured articles needing translation from {{#language:{{{langcode2|}}}|en}} Wikipedia]]}}}}{{#if:{{{langcode3|}}}|{{#ifexist:Category:Featured articles needing translation from {{#language:{{{langcode3|}}}|en}} Wikipedia |[[Category:Featured articles needing translation from {{#language:{{{langcode3|}}}|en}} Wikipedia]]}}}} }} }}<!--Topic
-->{{#if:{{{topic|}}}|{{Main other|{{#ifexist:Category:{{{topic|}}} articles needing translation from {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia|[[Category:{{{topic|}}} articles needing translation from {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia]]}}{{#if:{{{langcode2|}}}|{{#ifexist:Category:{{{topic|}}} articles needing translation from {{#language:{{{langcode2|}}}|en}} Wikipedia|[[Category:{{{topic|}}} articles needing translation from {{#language:{{{langcode2|}}}|en}} Wikipedia]]}}}}{{#if:{{{langcode3|}}}|{{#ifexist:Category:{{{topic|}}} articles needing translation from {{#language:{{{langcode3|}}}|en}} Wikipedia|[[Category:{{{topic|}}} articles needing translation from {{#language:{{{langcode3|}}}|en}} Wikipedia]]}}}}}}|<!--No topic
-->{{Main other|{{#ifexist:Category:Articles needing translation from {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia|[[Category:Articles needing translation from {{{override_language|{{#language:{{{langcode|}}}|en}}}}} Wikipedia]]|[[Category:Articles needing translation from foreign-language Wikipedias]]}}}}{{#if:{{{langcode2|}}}|{{#ifexist:Category:Articles needing translation from {{#language:{{{langcode2|}}}|en}} Wikipedia|[[Category:Articles needing translation from {{#language:{{{langcode2|}}}|en}} Wikipedia]]|[[Category:Articles needing translation from foreign-language Wikipedias]]}} }}{{#if:{{{langcode3|}}}|{{#ifexist:Category:Articles needing translation from {{#language:{{{langcode3|}}}|en}} Wikipedia|[[Category:Articles needing translation from {{#language:{{{langcode3|}}}|en}} Wikipedia]]|[[Category:Articles needing translation from foreign-language Wikipedias]]}} }} }}
}}}
}}{{Main other|{{#if:{{{otherarticle|}}}|<!-- a target article has been set we need do nothing -->|{{#if:{{Wikidata sitelink|lang={{{langcode}}}}}||{{#ifeq:{{{no interwiki}}}|yes|[[Category:pages with no translate target and no interwiki]]|[[Category:pages with no translate target]]}}}}}}}}</includeonly><!--{{Expand language}} end-->
}}<noinclude>
{{Documentation}}
</noinclude>

Revision as of 22:48, 16 June 2026

ABC local no-op compatibility template for imported Wikipedia maintenance boxes.