View source for WikipediaPlus enabling a Website
Jump to:
navigation
,
search
Wikipedia+ is designed for websites whose material complements the content on Wikipedia. This might be because it offers contrasting opinions, or simply because it contains more detail than is available on Wikipedia. Making such sites '''Wikipedia+ enabled''' will result in traffic from users of the software. ==Requirements== Making a site Wikipedia+ capable is a pretty straightforward task as it doesn't require changing any existing pages. The main work needed, if your site already has pages of [[sufficient quality]] is deciding which wikipedia page(s) you wish to associate with which of your site's pages. ==Choosing an access URL== The first step is to choose a URL pattern by which Wikipedia+ can query the site. For example, <font face="courier"><nowiki>http://www.example.com/wiki/{PageName}</nowiki></font>. This is requested by the browser add-in, with ''{PageName}'' replaced by the name of whichever Wikipedia page the user is visiting. This is how the software checks whether a page is available. ==Implementing the access URL== All the access URL has to do is to translate a request for a particular ''PageName'' either into a locally available page, or give a 404 (Page Not Found) code if no such page is available. Your means of implementing this will depend on the technology which your site already uses. ===General Method=== One simple method is to have an access URL of the form <font face="courier"><nowiki>http://www.example.com/WP.php?page={PageName}</nowiki></font>, so that all incoming requests are served by a single script. This could read from a database of local page URL to match with wikipedia ''PageNames''. You may wish to use [http://www.RobinUpton.com/WP/WP-site-index.0.1.zip this simple site index script], which includes an editor if you wish to build it online. ===Wikis only Method=== If your site is a wiki, you could use dedicated namespace (e.g. <font face="courier">Wikipedia:</font>) to maintain an easy correspondence between your site's pages and Wikipedia's pages. If you already have content, the fastest way to make your site Wikipedia+ enabled is to just add a redirect, so that <font face="courier">/wiki/Wikipedia:Some_Wikipedia_URL</font> contains <font face="courier"><nowiki>#REDIRECT[[Your_Corresponding_Local_URL]]</nowiki></font>.
Return to
WikipediaPlus enabling a Website
.
Navigation menu
Personal tools
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
▶ Install
⎘ Downloads
☺ For Users
☻ For Webmasters
☻ For Developers
⚫ A-Z Index
⟳ Recent Changes
⚑ About
✍ Contact
⌨ Help
Tools
What links here
Related changes
Special pages
Page information