Template:LinkLang

From Open Source Ecology
Jump to: navigation, search

This template can be used to create links that automatically point to the localized version of an article, if it exists, or to the original article otherwise.

By using this template, the chance of someone forgetting to add the right language suffix (/es, /fr, etc) is probably decreased.

  • First parameter: target page (in English)
  • Second parameter (optional): Translated link text to be displayed.

Examples

  • In the Main Page, you'll find {{LinkLang|Get involved}}. When this code is copied to a new translated version of that page, (for instance, in Spanish), it automatically creates this code: [[Get involved/es]]
  • In the Norwegian version of the main page, you'll find {{LinkLang|Get involved|Involver deg}}, which creates this code: [[Get involved/no|Involver deg]]