Template:Interwiki2url

Template documentation

Usage

edit

This simple template takes a project shortcut from WP:INTERWIKI as its sole parameter and converts it to schemaless URL much like the local magic {{SERVER}}, in accordance with the following rules:

  1. The general format is project_shortcut:language_code.
  2. Use the short (shortcut) form where available, not the long one, that is, w instead of wikipedia.
  3. For projects that have no different language versions (Wikidata, Commons, Species, Simple English, etc.) omit the :language_code part.

Examples

edit

{{iw2url|w:en}} => //en.wikipedia.org

{{iw2url|c}} => //commons.wikimedia.org