Template:Needs translation: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(→‎Info: The template's name is unnecessarily long; we should change it.)
Tag: Mobile edit
(added support for multiple languages so categories are added properly)
Line 1: Line 1:
{{box|''The following article or section needs help from someone who can '''translate''' {{{1|Japanese}}} text.''{{#if:{{{2|}}}|<br>''Some notes:'' {{{2}}}}}|||text-align: center;}}<includeonly>{{#if:{{{nocat|}}}||[[Category:Articles in need of {{{1|Japanese}}} translations]]}}</includeonly><noinclude>
{{box|''The following article or section needs help from someone who can '''translate''' {{#if:{{{1|}}}|{{#replace:{{#fornumargs:number|value|{{#var:value}}/}}$|/$}}|Japanese}} text.''{{#if:{{{notes|}}}|<br>''Some notes:'' {{{notes}}}}}|||text-align: center;}}<includeonly>{{#if:{{{nocat|}}}||{{#if:{{{1|}}}|{{#fornumargs:number|value|[[Category:Articles in need of {{#var:value}} translations]]}}|[[Category:Articles in need of Japanese translations]]}}}}</includeonly><noinclude>


==Info==
==Info==
Line 11: Line 11:
! Parameter || Mandatory || Default || Purpose || Detailed description
! Parameter || Mandatory || Default || Purpose || Detailed description
|-
|-
! 1
! 1, 2, 3...
| No || Japanese || Language || The language the text is in.
| No || Japanese || Language || The language(s) the text is in. One language per numbered parameter.
|-
|-
! 2
! notes
| No ||  || Notes || Helpful notes that you wish to leave to the translator.
| No ||  || Notes || Helpful notes that you wish to leave to the translator.
|-
|-
Line 33: Line 33:
| {{needs translation|nocat=y}}
| {{needs translation|nocat=y}}
|-
|-
| <pre>{{needs translation|Italian|Delfino means Dolphin.}}</pre>
| <pre>{{needs translation|Italian|notes=Delfino means Dolphin.}}</pre>
| {{needs translation|Italian|Delfino means Dolphin.|nocat=y}}
| {{needs translation|Italian|notes=Delfino means Dolphin.|nocat=y}}
|}
|}



Revision as of 12:28, February 10, 2021

The following article or section needs help from someone who can translate Japanese text.

Info

It has been suggested that this page should be moved to Template:Translate. Reason:
Simpler, fits with Template:Delete.
Discuss your opinion on the talk page.

This template is to be used whenever an article or section has text in a language other than English, and the editor who added the text cannot translate it into English. This template will create a box warning that the text needs to be translated, and will also categorize it accordingly. By default, it is assumed that the needed translation is Japanese.

Pages with this also get categorized on the corresponding category.

Parameters

Parameter Mandatory Default Purpose Detailed description
1, 2, 3... No Japanese Language The language(s) the text is in. One language per numbered parameter.
notes No Notes Helpful notes that you wish to leave to the translator.
nocat No No categorization Give this a value like "y" to stop the template from categorizing the page it's in.

Skeleton

{{needs translation|<language>}}

Examples

Code Result
{{needs translation}}

The following article or section needs help from someone who can translate Japanese text.

{{needs translation|Italian|notes=Delfino means Dolphin.}}

The following article or section needs help from someone who can translate Italian text.
Some notes: Delfino means Dolphin.