Pin Eight:Manual of Style/Links

From Pin Eight
Jump to: navigation, search

There are three ways to make a hyperlink to another document from a page on Pin Eight wiki.

Internal links

Links within this wiki work the same way as on any other MediaWiki site; see Help:Links on MediaWiki.org. These ordinarily appear in a darker shade of blue than other links, and links to a nonexistent page appear red.

The detailed syntax is the same as that of interwiki links (below), without the prefix: part. For example: [[Pin Eight:Scope]] produces Pin Eight:Scope, and [[Sex#Sexes|specialization]] produces specialization. Exceptions are the File: and Category: namespaces, which need a leading colon to suppress the transclusion behavior: [[:File:Smb1 title.png|this file description page]] links to this file description page instead of transcluding the image, and [[:Category:Data compression|a list of articles]] points to a list of articles instead of adding the article to the list.

Interwiki links

MUST
SHOULD
MAY
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. (what's this?)

MediaWiki software supports interwiki links as a shortcut to make links to documents on select other wikis and even occasionally non-wiki sites that use standard identifiers for documents. These have up to six parts, taking this form:

[[prefix:namespace:pagetitle (disambig)#fragment|displayedtext]]
prefix 
The site's interwiki prefix, as listed at Special:Interwiki
namespace 
For MediaWiki sites, the namespace. Optional; omit this (and the following colon) for pages in the main namespace or for non-MediaWiki sites.
pagetitle 
The title or other identifier of the page. Spaces will be converted to underscores (_), and code points above ASCII will be percent-encoded in UTF-8.
disambig 
MediaWiki sites may have multiple pages with the same title except for a disambiguator in parentheses at the end of the page title. Leave this out for non-MediaWiki sites.
fragment 
A URL fragment identifier, such as the title of an article section. Spaces are likewise converted to underscores, and some kinds of punctuation are converted using a variant of percent encoding.
displayedtext 
The text following the pipe character (the vertical bar | made with shift-backslash) is displayed in the link. A blank displayed text, called a "pipe trick", will automatically be replaced with the pagetitle when you save an edit, except in footnotes. If there is no pipe at all, the entire link will be displayed. Including displayedtext is RECOMMENDED if the target site's pagetitles are not human-readable, such as YouTube video IDs. The displayedtext SHOULD follow least astonishment; otherwise, you create a sinkhole or "Easter egg" link that confuses readers.

Here is a selection of prefixes for MediaWiki sites, which support namespace and disambig components with pagetitles:

prefix site subject
allthetropes
trope
All the Tropes Design patterns in storytelling
animutation FanimutationWiki Surreal Flash music videos
commons Wikimedia Commons A collection of free images (but image transclusion is not yet supported)
dram Encyclopædia Dramatica Internet drama and memes
harddrop Hard Drop The Tetris Company's Tetris
nesdev Nesdev Wiki Nintendo Entertainment System hardware and programming information
niwamario MarioWiki Nintendo's Super Mario Bros. and related video games
niwassb SmashWiki Nintendo's Super Smash Bros.
nookipedia Nookipedia Nintendo's Animal Crossing
wikia:sitename Wikis hosted on Wikia General-purpose wiki farm
wikipedia English Wikipedia The free encyclopedia
wikisource English Wikisource A collection of free primary source texts
wikt English Wiktionary A free, multilingual dictionary
uncyc Uncyclopedia The content-free encyclopedia

Some non-MediaWiki sites are available as well:

prefix site subject What goes in the pagetitle
bible Bible lookup Translations of the Word of God Chapter and verse
tvtropes TV Tropes Design patterns in storytelling The title of the page, with or without the namespace. tvtropes:TropeyTheWonderDog, tvtropes:Tropey the Wonder-Dog, and tvtropes:Laconic/Tropey the Wonder-Dog work.
wiki WikiWikiWeb Design patterns in computer science and software engineering The CamelCase title of the page

Like any other external link, interwiki links may eventually fail to resolve due to reorganization of the target site's URL scheme. Pages can be edited to fix link rot, but links in edit summaries in their revision histories will remain broken.

External links

For sites with unpredictable URL schemes, the wiki supports the MediaWiki external link syntax: [http://example.com/some/url displayedtext]. If your user account is new, or if you are editing a talk page as your IP address, you may be required to solve a puzzle to make sure you aren't an automated process adding off-topic external links.

Some websites deny service to users of Firefox's Tracking Protection feature because their scripts confuse Tracking Protection with an ad blocker. Tracking Protection blocks only ads presented through ad networks and ad exchanges that track users from one website to another to build a dossier on their browsing habits. By default, Firefox enables Tracking Protection in Private Browsing windows; there is a hidden preference to enable it in all windows. But some websites are unable to fall back to ads that do not track users, such as self-hosted ads. Websites seen to do this in 2016 or 2017 include at least WIRED, the INQUIRER, The Atlantic, Jellynote, and TV Tropes. Think hard before linking to a site that deliberately makes itself unreadable to Tracking Protection users, especially if another website that respects users' privacy has a comparable work available.