Template:Interwiki2url/doc
This is a documentation subpage for Template:Interwiki2url. It contains usage information, categories, and other content that is not part of the original template page. |
Usage
editThis 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:
- The general format is
project_shortcut:language_code
. - Use the short (shortcut) form where available, not the long one, that is,
w
instead ofwikipedia
. - 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