Iki kaca dhokumèntasiné Modhul:InterwikiTable

Iki minangka dhaptar situs sing ngemot data babagan prefiks interwiki saka macem-macem situs Wikimedia.

Panganggone

besut

Modul ora bisa diakses langsung saka #invoke. Sampeyan kudu dimuat saka modul Lua liyane nggunakake mw.loadData, kaya ngene iki:

local interwiki_table = mw.loadData('Module:InterwikiTable')

Tabel

besut

Tabel kasebut digawe saka subtabel kanggo saben tujuan interwiki. Contone, interwiki_table.wikipedia nuduhake entri kanggo Wikipedia. Entri biasane cocog karo situs Wikimedia, nanging ora mesthi. Contone, subtabel "rev" lan "mediawiki" tumuju mediawiki.org.

Saben tabel duwe limang bab:

  • domain - The base domain name of the website, without any language codes.
  • domain_primary - Whether this is the primary entry for the domain.
  • iw_prefix - A table of valid interwiki prefixes for the site. See Help:Interwiki linking.
  • title_prefix - The text between the domain name and the project's article titles.
  • takes_lang_prefix - Whether the project has separate subdomains for different languages, e.g. es.wikipedia.org.

Conto

besut
  • interwiki_table.wikipedia.domain → "wikipedia.org"
  • interwiki_table.wikiversity.domain_primary → true
  • interwiki_table.mediawiki.iw_prefix[1] → "mw"
  • interwiki_table.wikibooks.title_prefix → "/wiki/"
  • interwiki_table.meta.takes_lang_prefix → false