wikilife>Gonnym (since the template isn't clear about what is a "language" and some are using a language name and some an ISO code, this code should support both) |
小 (导入1个版本) |
(没有差异)
|
2020年12月27日 (日) 14:51的最新版本
{{#ifeq:模板|模板||}}
This article is a rough translation from {{#if:|模板:ISO 639 name|another language}}. It may have been generated by a computer or by a translator without dual proficiency. |
{{#ifeq:{{{small}}}|left|}}
{{#ifeq:rough translation |doc
|
{{#ifeq:show |show
|40px | This is a documentation subpage for 模板:Rough translation. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:模板 |用户 |模板 template page |{{#if:模板 |模板 page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:模板:Rough translation | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
30px | This template uses Lua: |
50x40px | 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! {{#if:| {{{1}}}}} |
{{Rough translation}} will categorise tagged articles into Category:Wikipedia articles needing cleanup after translation.
Usage编辑
{{Rough translation|language}}
Parameters编辑
- 1 name of language
- 2 (optional) name of language in "languages" list, if different (see example below); explicitly set to an empty value (
|2=|
) if the original is not an article on another language's Wikipedia, or it isn't listed in the languages sidebar - 3 (optional) replaces the word "article"; e.g. use "section" for use in a section. {{Rough translation-section}} implies this.
- listed (optional) = "yes" if the article has been listed at Wikipedia:Pages needing translation into English
Example编辑
{{Rough translation|German|Deutsch|section}}
Alternative version of this
{{Rough translation|1=German|2=Deutsch|3=section}}
If the second parameter is filled in as in the example above, the template will display
The original article is under "Deutsch" in the "languages" sidebar.
Otherwise, the message displayed is a generic
The original article is available in the "languages" sidebar.
However, if argument 2 is explicitly set to empty (|2=|
), then neither message appears. This is the format to use when the original is not an article on another language's Wikipedia, or it isn't listed in the languages sidebar.
This template will categorize tagged articles into Category:Wikipedia articles needing cleanup after translation. It should not be substituted.
See also编辑
- Wikipedia:Template messages/Translation
- {{Translated page}} – for use on Talk page
- {{Google translation}}
- {{Machinetranslate}}
- {{Expand language}}
{{#if:{{#ifeq:Rough t|sandbox|1}}{{#ifeq:Rough translation|doc|1}}||
}}