Template:Welcome-foreign/doc

From WikiProjectMed
Jump to navigation Jump to search

This welcome template may be used to welcome a user whose edits appear to show poor command of English (or whose edits are not in English at all) and who appear to be fluent in another language. It presents a brief welcome message in English, followed by an equivalent one in the other language, if a translation is available.

Usage

{{subst:Welcome-foreign|lang=xx}} # where 'xx' is a language code
{{subst:Welcome-foreign|xx}} # same as above

Parameters

There is one required parameter, the named param |lang= (alias: positional |1=):

  • |lang= – a language code; e.g., 'fr' for French, or 'es' for Spanish (see language code table)
  • |1= – same as above

Example

{{subst:Welcome-foreign|es}} gives:

Welcome!

Hello, Welcome-foreign, and welcome to Wikipedia! While efforts to improve Wikipedia are always welcome, unfortunately your contributions are not written in an English that is good enough to be useful. You appear to be more familiar with Spanish; did you know there is a Wikipedia in Spanish? You may prefer to contribute there instead. In any case, welcome to the project, and thank you for your efforts! If you need help, please feel free to notify me on my talk page. ~~~~


¡Bienvenido!

¡Hola Welcome-foreign, bienvenido a Wikipedia! Si bien todos los esfuerzos para mejorar la Wikipedia son bien recibidos, desdichadamente su nivel de inglés no parece idóneo para hacer contribuciones de utilidad, o las contribuciones no estan escritas en inglés. ¿Sabía que existe una Wikipedia en español? Quizás prefiera contribuir ahí. De cualquiera forma, reciba la más cordial bienvenida a Wikipedia y nuestro agradecimiento por esforzarse. Si necesita ayuda, puede notificármelo en mi página de discusión. ~~~~

Adding a new language

This template will work for any language listed in the language code table. The welcome will be issued in two languages: English, and the user's language, if the lang code corresponds to a language for which a language subpage exists. So, Albanian, Chinese, Dutch, and so on, because the subpages Albanian, Chinese, and Dutch exist. For valid lang codes corresponding to a language that doesn't have a subpage, the welcome is issued in English only.

To update the list, simply add a new subpage with the language name from the table. In particular, the language name should correspond to the value of {{#language:xx|en}} where 'xx' is the language code (so, chr → 'Cherokee', fa → 'Persian', and so on). Translate the content of Template:Welcome-foreign/English into the new language, and save it as Template:Welcome-foreign/NewLanguage. The template code does not need to be changed, and will pick it up automatically.

Suggestion: save early versions of your translation as Template:Welcome-foreign/NewLanguage (draft) until you're certain it's correct. As soon as the file exists under the correct name, it is seen by the template and goes live.

See also

For welcoming foreign-language users, wrapper templates exist for: