Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
BRUS Wikipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:InterwikiTable/doc
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{module rating|beta}} This is a table of sites containing data about the interwiki prefixes of various Wikimedia sites. == Usage == The module cannot be accessed directly from #invoke. It should be loaded from another Lua module using <code>mw.loadData</code>, like this: <syntaxhighlight lang="lua"> local interwiki_table = mw.loadData('Module:InterwikiTable') </syntaxhighlight> == Table fields == The table is made up of subtables for each interwiki destination. For example, <code>interwiki_table.wikipedia</code> points to the entry for Wikipedia. Entries usually correspond to a Wikimedia site, but not always. For example, both the "rev" and "mediawiki" subtables point to mediawiki.org. Each subtable has five fields: * <code>domain</code> - The base domain name of the website, without any language codes. * <code>domain_primary</code> - Whether this is the primary entry for the domain. * <code>iw_prefix</code> - A table of valid interwiki prefixes for the site. See [[Help:Interwiki linking]]. * <code>title_prefix</code> - The text between the domain name and the project's article titles. * <code>takes_lang_prefix</code> - Whether the project has separate subdomains for different languages, e.g. es.wikipedia.org. == Examples == * <code>interwiki_table.wikipedia.domain</code> → "wikipedia.org" * <code>interwiki_table.wikiversity.domain_primary</code> → true * <code>interwiki_table.mediawiki.iw_prefix[1]</code> → "mw" * <code>interwiki_table.wikibooks.title_prefix</code> → "/wiki/" * <code>interwiki_table.meta.takes_lang_prefix</code> → false == See also == *[[Special:SiteMatrix]] *[[mw:Extension:SiteMatrix]] <includeonly>{{sandbox other|| [[Category:Lua metamodules]] }}</includeonly><noinclude> [[Category:Module documentation pages]] </noinclude>
Summary:
Please note that all contributions to BRUS Wikipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BRUS Wikipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Template used on this page:
Template:Module rating
(
edit
)