diff --git a/interwiki.module b/interwiki.module index 3d14bb2f856ea7fdf94da3b436bd08c148d6eca5..14e0318076c36df7df5e3975bb466708a65f76fd 100644 --- a/interwiki.module +++ b/interwiki.module @@ -24,52 +24,52 @@ function interwiki_help($section) { return t('Easily link to wikis and other websites.'); case 'admin/help#interwiki': return t("

This module makes it easy to link to wikis and other websites. Users avoid entering entire URLs, as they would for regular web pages, " . - "and instead use a shorthand similar to the syntax used by %Wikipedia and other %MediaWiki sites, in which \"[prefix:some term]\" creates a hyperlink to the ". + "and instead use a shorthand similar to the syntax used by !Wikipedia and other !MediaWiki sites, in which \"[prefix:some term]\" creates a hyperlink to the ". "\"some term\" article on the website specified by \"prefix.\" It is also possible to use the \"|\" character to create a \"piped link,\" with display text that is ". "different from the search term. For example, \"[w:public transport|public transportation]\" could be translated as a reference to the Wikipedia article on \"public ". "transport\" that displays as \"public transportation.\" In addition to the single bracket syntax, ". - "a double bracket syntax like the one used by %MediaWiki can be chosen from the interwiki configuration in %settings. The double-bracket syntax lets you specify a ". + "a double bracket syntax like the one used by !MediaWiki can be chosen from the interwiki configuration in !settings. The double-bracket syntax lets you specify a ". "\"default prefix\" that is used if no prefix is explicitly specified. For example, a default prefix of \"w\" means that [[some term]] is synonymous with [[w:some term]]. ". "This makes it easier to cut-and-paste text from MediaWiki sites directly into your Drupal site.

\n". "

Configuration

To use this module, you have to take a few steps:

". - "\n", + "\n", array( - '%Wikipedia' => 'Wikipedia', - '%MediaWiki' => 'MediaWiki', - '%settings' => l(t("administer » filters"), "admin/filters", array(), NULL, NULL, FALSE, TRUE), - '%modules' => l(t("administer » modules"), "admin/modules", array(), NULL, NULL, FALSE, TRUE), - '%access' => l(t("administer » access control"), "admin/access", array(), NULL, NULL, FALSE, TRUE), - '%interwikis' => l(t("administer » interwiki"), "admin/settings/interwiki", array(), NULL, NULL, FALSE, TRUE) + '!Wikipedia' => 'Wikipedia', + '!MediaWiki' => 'MediaWiki', + '!settings' => l(t("administer » filters"), "admin/filters", array(), NULL, NULL, FALSE, TRUE), + '!modules' => l(t("administer » modules"), "admin/modules", array(), NULL, NULL, FALSE, TRUE), + '!access' => l(t("administer » access control"), "admin/access", array(), NULL, NULL, FALSE, TRUE), + '!interwikis' => l(t("administer » interwiki"), "admin/settings/interwiki", array(), NULL, NULL, FALSE, TRUE) )) . t("

Included search prefixes

". "

The \"interwiki\" table created via file interwiki.sql comes with a number of records already included that facilitate linking to articles or search results on the following websites:

\n". "\n". - "". - "". - "". - "". - "". - "". - "". - "". - "
PrefixSite
w%w, the online, open source encyclopedia
sw%sw, a wiki-based encyclopedia of lobbyists, PR firms, think tanks and other political advocacy groups
kos%kos, a wiki affiliated with the Daily Kos website
ebay%ebay
google%google, the online search engine
than online %th
archivethe %archive, also known as the Internet Archive, which stores and displays old versions of websites
whois%whois, Internic's search tool for information about who owns a domain name
opendirthe %opendir, a human-edited web search engine
\n". + "w!w, the online, open source encyclopedia". + "sw!sw, a wiki-based encyclopedia of lobbyists, PR firms, think tanks and other political advocacy groups". + "kos!kos, a wiki affiliated with the Daily Kos website". + "ebay!ebay". + "google!google, the online search engine". + "than online !th". + "archivethe !archive, also known as the Internet Archive, which stores and displays old versions of websites". + "whois!whois, Internic's search tool for information about who owns a domain name". + "opendirthe !opendir, a human-edited web search engine\n". "

In addition, it has entries that facilitate linking to URLs in general and to content on your own local site. For example, [http://www.somesite.org|Some Website] ". "produces Some Website, and [:node/5|my fifth posting] produces my fifth posting. If \"http:\" is used as ". - "the prefix, you can use %settings to specify the space character instead of the vertical bar character as the \"URL terminator\" which separates the URL from its display text. ". + "the prefix, you can use !settings to specify the space character instead of the vertical bar character as the \"URL terminator\" which separates the URL from its display text. ". "(This option emulates the syntax used to specify external URLs in Wikipedia articles. If emulating Wikipedia is not important on your site, you'll probably want to use the default vertical bar character.)

", array( - '%w' => l('Wikipedia', 'http://www.wikipedia.org'), - '%sw' => l('SourceWatch', 'http://www.sourcewatch.org'), - '%kos' => l('dKosopedia', 'http://www.dkosopedia.com'), - '%ebay' => l('eBay', 'http://www.ebay.com'), - '%google' => l('Google', 'http://www.google.com'), - '%th' => l('thesaurus', 'http://thesaurus.reference.com'), - '%archive' => l('Wayback Machine', 'http://web.archive.org'), - '%whois' => l('whois', 'http://www.internic.net/whois.html'), - '%opendir' => l('Open Directory project', 'http://search.dmoz.org'), - '%settings' => l(t("administer » filters"), "admin/filters", array(), NULL, NULL, FALSE, TRUE), + '!w' => l('Wikipedia', 'http://www.wikipedia.org'), + '!sw' => l('SourceWatch', 'http://www.sourcewatch.org'), + '!kos' => l('dKosopedia', 'http://www.dkosopedia.com'), + '!ebay' => l('eBay', 'http://www.ebay.com'), + '!google' => l('Google', 'http://www.google.com'), + '!th' => l('thesaurus', 'http://thesaurus.reference.com'), + '!archive' => l('Wayback Machine', 'http://web.archive.org'), + '!whois' => l('whois', 'http://www.internic.net/whois.html'), + '!opendir' => l('Open Directory project', 'http://search.dmoz.org'), + '!settings' => l(t("administer » filters"), "admin/filters", array(), NULL, NULL, FALSE, TRUE), )) . t("

For more information

". "