Interwiki links

Last updated
Screenshot showing interwiki link removal Screenshot showing interwikilink removal.JPG
Screenshot showing interwiki link removal

Interwiki linking (W-link) is a facility for creating links to the many wikis on the World Wide Web. Users avoid pasting in entire URLs (as they would for regular web pages) and instead use a shorthand similar to links within the same wiki (intrawiki links).

Contents

Unlike domain names on the Internet, there is no globally defined list of interwiki prefixes, so owners of a wiki must define an interwiki map (InterMap) appropriate to their needs. Users generally have to create separate accounts for each wiki they intend to use (unless they intend to edit anonymously). Variations in text formatting and layout can also hinder a seamless transition from one wiki to the next.

By making wiki links simpler to type for the members of a particular community, these features help bring the different wikis closer together. Furthering that goal, interwiki "bus tours" (similar to webrings) have been created to explain the purposes and highlights of different wikis. Such examples on Wikipedia include Wikipedia:TourBusStop and Wikipedia:WikiNode.

Syntax

Interwiki link notation varies, depending largely on the syntax a wiki uses for markup. The two most common link patterns in wikis are CamelCase and free links (arbitrary phrases surrounded by some set delimiter, such as [[double square brackets]]). CURIE syntax—an emerging W3C standard—uses a single set of square brackets.

Interwiki links on a CamelCase-based wiki frequently take the form of "Code:PageName", where Code is the defined InterMap prefix for another wiki. Thus, a link "WikiPedia:InterWiki" could be rendered in HTML as a link to an article on Wikipedia: for example, Wikipedia:Interlanguage links. Linking from a CamelCase-wiki to a page that contains spaces in its title typically requires replacing the spaces with underscores (e.g. WikiPedia:Main_Page).

Interwiki links on wikis based on free links, such as Wikipedia, typically follow the same principle, but using the delimiters that would be used for internal links. These links can then be parsed and escaped as they would be if they were internal, allowing easier typing of spaces but potentially causing problems with other special characters. For example, on Wikipedia, [[MeatBall:AssumeGoodFaith]] appears as MeatBall:AssumeGoodFaith, and [[:de:InterWiki]] (former syntax: [[DeWikipedia:InterWiki]]) appears as de:InterWiki.

Writing [[Hanning Schröder]] ([[:de:Hanning Schröder|de]]) will give both a redlinked English link and a German blue link: "Hanning Schröder (de)" as explained on Help:Interlanguage links.

The MediaWiki software has an additional feature which uses similar notation to create automatic interlanguage links—for instance, the link [[de:InterWiki]] (with no leading colon) automatically creates a reference labeled "Other languages: Deutsch | ..." at the top and bottom of, or in a sidebar next to, the article display. Various other wiki software systems have features for "semi-internal" links of this kind, such as support for namespaces or multiple sub-communities.

Most InterMap implementations simply replace the interwiki prefix with a full URL prefix, so many non-wiki websites can also be referred to using the system. A reference to a definition on the Free On-line Dictionary of Computing, for instance, could take the form [[Foldoc:foo]] which would tell the system to append and display the link as Foldoc:foo. This makes it very easy to link to commonly referenced resources from within a wiki page, without the need to even know the form of the URL in question.

The interwiki concept can equally be applied to links from non-wiki websites. Advogato, for instance, offers a syntax for creating shorthand links based on a MeatBall-derived InterMap.

WordPress offers a similar "shortcode" shorthand notation for embedding images, videos, LaTeX formulas and equations, maps, etc. hosted on other websites. [1]

Implementation

Internally, a wiki that uses interwiki links needs to have a mapping from wiki-code links to full URLs. For example, [[MeatBall:InterWiki]] might appear as MeatBall:InterWiki, but link to http://usemod.com/cgi-bin/mb.pl?InterWiki .

Since most wiki systems use URLs for individual pages where the page's title appears at the end of an otherwise unchanging address, the simplest way of defining such mappings is by substituting the interwiki prefix for the unchanging part of the URL. So in the example above, the MeatBall: has simply been replaced by http://usemod.com/cgi-bin/mb.pl? in creating the target of the HTML rendered link.

Rather than creating a new list from scratch for every wiki, it is often useful to obtain a copy of that from another site. Sites such as MeatballWiki and the UseModWiki site contain comprehensive lists which are often used for this purpose - the former being publicly editable in the same way as any other wiki page, and the latter being verified as usable but potentially out of date. MediaWiki's default list of interwiki links is derived from an old version of MeatballWiki's list. [2] [3]

See also

Related Research Articles

MeatballWiki Wiki dedicated to online communities

MeatballWiki was a wiki dedicated to online communities, network culture, and hypermedia. According to founder Sunir Shah, it ran on "a hacked-up version of UseModWiki". In April 2013, after several spam attacks and a period of downtime, the site was made read-only.

UseModWiki Wiki software

UseModWiki is a wiki engine written in the Perl programming language. It is licensed under the GNU General Public License. Pages in UseModWiki are stored in ordinary files, not in a relational database.

Wiki Type of website that visitors can edit

A wiki is a hypertext publication collaboratively edited and managed by its own audience directly using a web browser. A typical wiki contains multiple pages for the subjects or scope of the project and could be either open to the public or limited to use within an organization for maintaining its internal knowledge base.

Hyperlink Computing term; reference to data that the reader can directly follow either by clicking, tapping, or hovering

In computing, a hyperlink, or simply a link, is a reference to data that the user can follow by clicking or tapping. A hyperlink points to a whole document or to a specific element within a document. Hypertext is text with hyperlinks. The text that is linked from is called anchor text. A software system that is used for viewing and creating hypertext is a hypertext system, and to create a hyperlink is to hyperlink. A user following hyperlinks is said to navigate or browse the hypertext.

MediaWiki Wiki software

MediaWiki is a free and open-source wiki engine. It was developed for use on Wikipedia in 2002, and given the name "MediaWiki" in 2003. It remains in use on Wikipedia and almost all other Wikimedia websites, including Wiktionary, Wikimedia Commons and Wikidata; these sites continue to define a large part of the requirement set for MediaWiki. MediaWiki was originally developed by Magnus Manske and improved by Lee Daniel Crocker. Its development has since then been coordinated by the Wikimedia Foundation.

Thai Wikipedia

The Thai Wikipedia is the Thai language edition of Wikipedia. It was started on 25 December 2003. As of December 2019, it has more than 134,000 content pages and 371,363 registered users. As of December 2017, Wikipedia was ranked 13th in Alexa's Top Sites Thailand.

Notation3, or N3 as it is more commonly known, is a shorthand non-XML serialization of Resource Description Framework models, designed with human-readability in mind: N3 is much more compact and readable than XML RDF notation. The format is being developed by Tim Berners-Lee and others from the Semantic Web community. A formalization of the logic underlying N3 was published by Berners-Lee and others in 2008.

A semantic wiki is a wiki that has an underlying model of the knowledge described in its pages. Regular, or syntactic, wikis have structured text and untyped hyperlinks. Semantic wikis, on the other hand, provide the ability to capture or identify information about the data within pages, and the relationships between pages, in ways that can be queried or exported like a database through semantic queries.

nofollow is a setting on a web page hyperlink that directs search engines not to use the link for page ranking calculations. It is specified in the page as a type of link relation; that is: <a rel="nofollow" ...>. Because search engines often calculate a site's importance according to the number of hyperlinks from other sites, the nofollow setting allows web site authors to indicate that the presence of a link is not an endorsement of the target site's importance.

URL shortening is a technique on the World Wide Web in which a Uniform Resource Locator (URL) may be made substantially shorter and still direct to the required page. This is achieved by using a redirect which links to the web page that has a long URL. For example, the URL "https://example.com/assets/category_B/subcategory_C/Foo/" can be shortened to "https://example.com/Foo", and the URL "https://en.wikipedia.org/wiki/URL_shortening" can be shortened to "https://w.wiki/U". Often the redirect domain name is shorter than the original one. A friendly URL may be desired for messaging technologies that limit the number of characters in a message, for reducing the amount of typing required if the reader is copying a URL from a print source, for making it easier for a person to remember, or for the intention of a permalink. In November 2009, the shortened links of the URL shortening service Bitly were accessed 2.1 billion times.

Semantic MediaWiki

Semantic MediaWiki (SMW) is an extension to MediaWiki that allows for annotating semantic data within wiki pages, thus turning a wiki that incorporates the extension into a semantic wiki. Data that has been encoded can be used in semantic searches, used for aggregation of pages, displayed in formats like maps, calendars and graphs, and exported to the outside world via formats like RDF and CSV.

A meatball is a meat-based food preparation.

History of wikis History of wiki collaborative platforms

The history of wikis begins in 1994, when Ward Cunningham gave the name "WikiWikiWeb" to the knowledge base, which ran on his company's website at c2.com, and the wiki software that powered it. The "wiki went public" in March 1995—the date used in anniversary celebrations of the wiki's origins. c2.com is thus the first true wiki, or a website with pages and links that can be easily edited via the browser, with a reliable version history for each page. He chose "WikiWikiWeb" as the name based on his memories of the "Wiki Wiki Shuttle" at Honolulu International Airport, and because "wiki" is the Hawaiian word for "quick".

Ripuarian Wikipedia Ripuarian language edition of Wikipedia

The Wikipedia of Ripuarian languages is the Ripuarian edition of Wikipedia. It was started on July 6, 2005 as WiKoelsch on a private server, and was converted to an official Wikipedia during April 2006. As only about a million people speak the Ripuarian languages, the Ripuarian Wikipedia is relatively small. Since both the use of Ripuarian, and the population capable of using a Ripuarian language, are decreasing, it is also an endangered language Wikipedia. The total number of edits on this Wikipedia is 1,601,516.

Wikidata collaboratively edited and free multilingual knowledge database and graph hosted by the Wikimedia Foundation

Wikidata is a collaboratively edited multilingual knowledge graph hosted by the Wikimedia Foundation. It is a common source of open data that Wikimedia projects such as Wikipedia, and anyone else, can use under the CC0 public domain license. Wikidata is powered by the software Wikibase.

Translatewiki.net is a web-based translation platform powered by the Translate extension for MediaWiki. It can be used to translate various kinds of texts but is commonly used for creating localisations for software interfaces.

Volapük Wikipedia Volapük-language edition of Wikipedia

The Volapük Wikipedia is the Volapük-language edition of the free online encyclopedia Wikipedia. It was created in February 2003, but launched in January 2004. As of January 2017, it was the 63rd-largest Wikipedia as measured by the number of articles, with about 126,000 articles, and the second-largest Wikipedia in a constructed language after the Esperanto Wikipedia.

References

  1. "What is a shortcode?"
  2. "[mediawiki] Contents of /trunk/phase3/maintenance/interwiki.list". Svn.wikimedia.org. 2008-02-27. Retrieved 2013-02-18.
  3. "[mediawiki] Contents of /trunk/phase3/maintenance/interwiki.sql". Svn.wikimedia.org. 2008-02-27. Retrieved 2013-02-18.