Modèle:Rough translation : Différence entre versions

De Wikisisar
Aller à : navigation, rechercher
(Undid revision 757852611 by KATMAKROFAN (talk) A picture of a fish is not clearer than the icon that's been here.)
 
m (1 révision importée)
 
(Aucune différence)

Version actuelle datée du 21 octobre 2017 à 20:53

{{#ifeq:Modèle|Modèle||}}{{#ifeq:{{{small}}}|left|}
Template documentation[view] [edit] [history] [purge]

{{#ifeq:rough translation |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:Modèle:Rough translation
                  | [[Category:{{#switch:Modèle |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}
{{#if:||{{#ifeq:Rough translation|Rough translation|}}}}
Shortcut:

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

Usage

{{{{#if:Rough translation|Rough translation| tlc|...}}{{#ifeq:language|language| |language | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}

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

{{{{#if:Rough translation|Rough translation| tlc|...}}{{#ifeq:German|German| |German | }}{{#ifeq:Deutsch|Deutsch| |Deutsch | }}{{#ifeq:section|section| |section | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}

Alternative version of this

{{{{#if:Rough translation|Rough translation| tlc|...}}{{#ifeq:1=German|1=German| |1=German | }}{{#ifeq:2=Deutsch|2=Deutsch| |2=Deutsch | }}{{#ifeq:3=section|3=section| |3=section | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}

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