From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]


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.


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

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