模板:Rough translation/doc

< 模板:Rough translation
UJNWiki>Mclay12023年3月30日 (四) 19:29的版本 (rm cat (not specifically for sections))
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{Rough translation/doc}} will categorise tagged articles into Category:Wikipedia articles needing cleanup after translation.

Usage

{{Rough translation|language}}

Parameters

There are three positional (unnamed) parameters, and two named parameters:

|1= – name of language (required)
|2= – 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 dropdown menu (optional)
|3= – replaces the word "article"; e.g. use "section" for use in a section. {{Rough translation-section}} implies this. (optional)
|listed= – set to "yes" if the article has been listed at Wikipedia:Pages needing translation into English (optional)
|date= – month and year; if omitted, a bot will supply it later. (optional)

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" dropdown menu.

Otherwise, the message displayed is a generic

The original article is available in the "languages" dropdown menu.

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 dropdown menu.

This template will categorize tagged articles into Category:Wikipedia articles needing cleanup after translation. It should not be substituted.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Rough translation

<templatedata> {

   "description": "Use this template to indicate that an article or section is a rough translation from another language and may have been generated by a computer or by a translator without dual proficiency.",

"format": "inline", "params": { "1": { "label": "Language", "description": "The language the article or section is a rough translation from", "type": "line", "example": "French", "required": true }, "listed": { "label": "Listed on WP:PNT?", "description": "Enter \"y\", \"yes\", \"true\", \"on\" or \"1\" here if this article is listed on \"Wikipedia:Pages needing translation into English\" to add a link to its entry.", "type": "line", "autovalue": "y", "example": "y" }, "2": { "label": "Alternative native name of language", "description": "Custom text to replace the language's indicated native name as it appears in the \"Languages\" dropdown menu", "type": "line" }, "3": { "label": "Affected area", "description": "Text to replace the word \"article\", usually \"section\"", "type": "string", "autovalue": "section", "example": "section" }, "date": { "label": "Month and year", "description": "The month and year that the template was placed (in full). \"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}\" inserts the current month and year automatically.", "type": "line", "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "example": "January 2013", "suggested": true } }, "paramOrder": [ "1",

       "listed",

"2",

       "3",

"date" ] } </templatedata>

See also