WikiLink is actually two separate things; firstly, a java class for interfacing with a mediawiki server, and secondly, a Mathematica package providing a wrapper around this. This page documents the Mathematica package, while the java class, and its addition functionality, will be documented elsewhere.
WikiLink is available as a standalone package, suitable for use with any Mediawiki installation, and is included in the KnotTheory` package.
free talking ringtones talking ringtone talking ringtones free talking ringtone talking ringtones generic xanax xanax buy xanax generic xanax generic xanax generic soma soma buy soma generic soma buy soma norco online norco buy norco generic norco buy norco cheap norco norco buy norco generic norco buy norco free real ringtones real ringtone real ringtones free real ringtone real ringtones free nokia ringtone nokia ringtone nokia ringtones free nokia ringtone nokia ringtones free downloadable ringtone downloadable ringtone downloadable ringtones free downloadable ringtone downloadable ringtones cheap paxil paxil buy paxil generic paxil buy paxil free alltel ringtones alltel ringtone alltel ringtones free alltel ringtone alltel ringtones viagra online viagra buy viagra generic viagra generic viagra monophonic ringtones monophonic ringtone monophonic ringtones free monophonic ringtone monophonic ringtones free audiovox ringtone audiovox ringtone audiovox ringtones free audiovox ringtone audiovox ringtones cheap norco norco buy norco generic norco buy norco free tmobile ringtone tmobile ringtone tmobile ringtones free tmobile ringtone tmobile ringtones generic diazepam diazepam buy diazepam generic diazepam generic diazepam generic adipex adipex buy adipex generic adipex buy adipex cheap norco norco buy norco generic norco generic norco fioricet online fioricet buy fioricet generic fioricet generic fioricet generic valium valium buy valium generic valium buy valium samsung ringtones samsung ringtone samsung ringtones free samsung ringtone samsung ringtones codeine online codeine buy codeine generic codeine generic codeine generic meridia meridia buy meridia generic meridia buy meridia free mtv ringtone mtv ringtone mtv ringtones free mtv ringtone mtv ringtones free samsung ringtone samsung ringtone samsung ringtones free samsung ringtone samsung ringtones free cheap ringtone cheap ringtone cheap ringtones free cheap ringtone cheap ringtones generic adipex adipex buy adipex generic adipex generic adipex free vocal ringtone vocal ringtone vocal ringtones free vocal ringtone vocal ringtones generic pharmacy online pharmacy online buy pharmacy online generic pharmacy online generic pharmacy online free punk ringtone punk ringtone punk ringtones free punk ringtone punk ringtones cheap diazepam diazepam buy diazepam generic diazepam generic diazepam cheap meridia meridia buy meridia generic meridia generic meridia free mobile ringtones mobile ringtone mobile ringtones free mobile ringtone mobile ringtones wwe ringtones wwe ringtone wwe ringtones free wwe ringtone wwe ringtones cheap adipex adipex buy adipex generic adipex generic adipex cyclobenzaprine online cyclobenzaprine buy cyclobenzaprine generic cyclobenzaprine buy cyclobenzaprine cialis online cialis buy cialis generic cialis buy cialis ericsson ringtones ericsson ringtone ericsson ringtones free ericsson ringtone ericsson ringtones xanax online xanax buy xanax generic xanax buy xanax soma online soma buy soma generic soma buy soma generic ativan ativan buy ativan generic ativan generic ativan free sprint ringtones sprint ringtone sprint ringtones free sprint ringtone sprint ringtones free motorola ringtone motorola ringtone motorola ringtones free motorola ringtone motorola ringtones cheap ativan ativan buy ativan generic ativan buy ativan free verizon ringtones verizon ringtone verizon ringtones free verizon ringtone verizon ringtones free mono ringtones mono ringtone mono ringtones free mono ringtone mono ringtones nokia ringtones nokia ringtone nokia ringtones free nokia ringtone nokia ringtones free mp3 ringtones mp3 ringtone mp3 ringtones free mp3 ringtone mp3 ringtones free weird ringtone weird ringtone weird ringtones free weird ringtone weird ringtones cheap tramadol tramadol buy tramadol generic tramadol generic tramadol free music ringtone music ringtone music ringtones free music ringtone music ringtones cheap ultram ultram buy ultram generic ultram generic ultram free nokia ringtone nokia ringtone nokia ringtones free nokia ringtone nokia ringtones free animal ringtone animal ringtone animal ringtones free animal ringtone animal ringtones free midi ringtones midi ringtone midi ringtones free midi ringtone midi ringtones ringtones ringtone ringtones free ringtone ringtones samsung ringtones samsung ringtone samsung ringtones free samsung ringtone samsung ringtones alltel ringtones alltel ringtone alltel ringtones free alltel ringtone alltel ringtones free country ringtone country ringtone country ringtones free country ringtone country ringtones free tracfone ringtones tracfone ringtone tracfone ringtones free tracfone ringtone tracfone ringtones generic diazepam diazepam buy diazepam generic diazepam generic diazepam cheap viagra viagra buy viagra generic viagra buy viagra free alltel ringtone alltel ringtone alltel ringtones free alltel ringtone alltel ringtones free sagem ringtone sagem ringtone sagem ringtones free sagem ringtone sagem ringtones carisoprodol online carisoprodol buy carisoprodol generic carisoprodol generic carisoprodol free retro ringtones retro ringtone retro ringtones free retro ringtone retro ringtones generic hydrocodone hydrocodone buy hydrocodone generic hydrocodone buy hydrocodone generic vicodin vicodin buy vicodin generic vicodin buy vicodin xenical online xenical buy xenical generic xenical generic xenical generic ultram ultram buy ultram generic ultram buy ultram ultram online ultram buy ultram generic ultram generic ultram cheap cialis cialis buy cialis generic cialis generic cialis free sharp ringtone sharp ringtone sharp ringtones free sharp ringtone sharp ringtones generic ativan ativan buy ativan generic ativan generic ativan cheap fioricet fioricet buy fioricet generic fioricet buy fioricet free punk ringtone punk ringtone punk ringtones free punk ringtone punk ringtones phentermine online phentermine buy phentermine generic phentermine generic phentermine free phone ringtones phone ringtone phone ringtones free phone ringtone phone ringtones free cellular ringtones cellular ringtone cellular ringtones free cellular ringtone cellular ringtones diazepam online diazepam buy diazepam generic diazepam generic diazepam diazepam online diazepam buy diazepam generic diazepam generic diazepam phentermine online phentermine buy phentermine generic phentermine generic phentermine free funny ringtone funny ringtone funny ringtones free funny ringtone funny ringtones generic soma soma buy soma generic soma buy soma cheap levitra levitra buy levitra generic levitra generic levitra free ericsson ringtones ericsson ringtone ericsson ringtones free ericsson ringtone ericsson ringtones free cool ringtone cool ringtone cool ringtones free cool ringtone cool ringtones cheap viagra viagra buy viagra generic viagra buy viagra free wwe ringtone wwe ringtone wwe ringtones free wwe ringtone wwe ringtones free qwest ringtone qwest ringtone qwest ringtones free qwest ringtone qwest ringtones generic viagra viagra buy viagra generic viagra buy viagra norco online norco buy norco generic norco generic norco generic viagra viagra buy viagra generic viagra generic viagra free verizon ringtone verizon ringtone verizon ringtones free verizon ringtone verizon ringtones adipex online adipex buy adipex generic adipex generic adipex cingular ringtones cingular ringtone cingular ringtones free cingular ringtone cingular ringtones generic soma soma buy soma generic soma buy soma valium online valium buy valium generic valium generic valium free metal ringtone metal ringtone metal ringtones free metal ringtone metal ringtones cialis online cialis buy cialis generic cialis generic cialis cheap phentermine phentermine buy phentermine generic phentermine generic phentermine lorazepam online lorazepam buy lorazepam generic lorazepam generic lorazepam free love ringtones love ringtone love ringtones free love ringtone love ringtones xanax online xanax buy xanax generic xanax generic xanax ambien online ambien buy ambien generic ambien buy ambien generic phentermine phentermine buy phentermine generic phentermine generic phentermine jazz ringtones jazz ringtone jazz ringtones free jazz ringtone jazz ringtones generic ultram ultram buy ultram generic ultram generic ultram tramadol online tramadol buy tramadol generic tramadol buy tramadol fioricet online fioricet buy fioricet generic fioricet generic fioricet free caller ringtones caller ringtone caller ringtones free caller ringtone caller ringtones free music ringtone music ringtone music ringtones free music ringtone music ringtones generic levitra levitra buy levitra generic levitra buy levitra cheap norco norco buy norco generic norco buy norco tracfone ringtones tracfone ringtone tracfone ringtones free tracfone ringtone tracfone ringtones funny ringtones funny ringtone funny ringtones free funny ringtone funny ringtones cingular ringtones cingular ringtone cingular ringtones free cingular ringtone cingular ringtones generic hoodia hoodia buy hoodia generic hoodia buy hoodia free sexy ringtone sexy ringtone sexy ringtones free sexy ringtone sexy ringtones propecia online propecia buy propecia generic propecia generic propecia t-mobile ringtones t-mobile ringtone t-mobile ringtones free t-mobile ringtone t-mobile ringtones free blackberry ringtones blackberry ringtone blackberry ringtones free blackberry ringtone blackberry ringtones generic xanax xanax buy xanax generic xanax generic xanax free motorola ringtone motorola ringtone motorola ringtones free motorola ringtone motorola ringtones generic nexium nexium buy nexium generic nexium buy nexium free lg ringtones lg ringtone lg ringtones free lg ringtone lg ringtones meridia online meridia buy meridia generic meridia buy meridia generic sildenafil sildenafil buy sildenafil generic sildenafil buy sildenafil free rave ringtones rave ringtone rave ringtones free rave ringtone rave ringtones ultracet online ultracet buy ultracet generic ultracet generic ultracet generic tramadol tramadol buy tramadol generic tramadol buy tramadol generic xanax xanax buy xanax generic xanax generic xanax free kyocera ringtones kyocera ringtone kyocera ringtones free kyocera ringtone kyocera ringtones generic carisoprodol carisoprodol buy carisoprodol generic carisoprodol buy carisoprodol tramadol online tramadol buy tramadol generic tramadol buy tramadol cheap vigrx vigrx buy vigrx generic vigrx buy vigrx generic propecia propecia buy propecia generic propecia buy propecia generic meridia meridia buy meridia generic meridia generic meridia free latin ringtone latin ringtone latin ringtones free latin ringtone latin ringtones free tv ringtones tv ringtone tv ringtones free tv ringtone tv ringtones cheap norco norco buy norco generic norco generic norco cheap ultram ultram buy ultram generic ultram buy ultram free tracfone ringtone tracfone ringtone tracfone ringtones free tracfone ringtone tracfone ringtones free true ringtones true ringtone true ringtones free true ringtone true ringtones generic valium valium buy valium generic valium generic valium cheap adipex adipex buy adipex generic adipex generic adipex free mp3 ringtones mp3 ringtone mp3 ringtones free mp3 ringtone mp3 ringtones free sagem ringtone sagem ringtone sagem ringtones free sagem ringtone sagem ringtones vicodin online vicodin buy vicodin generic vicodin buy vicodin free pantech ringtones pantech ringtone pantech ringtones free pantech ringtone pantech ringtones generic cialis cialis buy cialis generic cialis generic cialis phentermine online phentermine buy phentermine generic phentermine buy phentermine free ericsson ringtones ericsson ringtone ericsson ringtones free ericsson ringtone ericsson ringtones free cingular ringtone cingular ringtone cingular ringtones free cingular ringtone cingular ringtones generic zanaflex zanaflex buy zanaflex generic zanaflex generic zanaflex ultram online ultram buy ultram generic ultram buy ultram generic soma soma buy soma generic soma generic soma cheap fioricet fioricet buy fioricet generic fioricet buy fioricet generic fioricet fioricet buy fioricet generic fioricet generic fioricet cheap soma soma buy soma generic soma generic soma generic phentermine phentermine buy phentermine generic phentermine buy phentermine generic cialis cialis buy cialis generic cialis buy cialis free sagem ringtones sagem ringtone sagem ringtones free sagem ringtone sagem ringtones free real ringtone real ringtone real ringtones free real ringtone real ringtones cheap viagra viagra buy viagra generic viagra buy viagra ativan online ativan buy ativan generic ativan buy ativan tramadol online tramadol buy tramadol generic tramadol buy tramadol generic lipitor lipitor buy lipitor generic lipitor generic lipitor free punk ringtones punk ringtone punk ringtones free punk ringtone punk ringtones ativan online ativan buy ativan generic ativan buy ativan cheap wellbutrin wellbutrin buy wellbutrin generic wellbutrin buy wellbutrin meridia online meridia buy meridia generic meridia buy meridia toques ringtones toques ringtone toques ringtones free toques ringtone toques ringtones cheap xenical xenical buy xenical generic xenical buy xenical cheap tramadol tramadol buy tramadol generic tramadol buy tramadol free sprint ringtone sprint ringtone sprint ringtones free sprint ringtone sprint ringtones cheap zyban zyban buy zyban generic zyban buy zyban free sprint ringtone sprint ringtone sprint ringtones free sprint ringtone sprint ringtones generic soma soma buy soma generic soma buy soma free polyphonic ringtones polyphonic ringtone polyphonic ringtones free polyphonic ringtone polyphonic ringtones generic hgh hgh buy hgh generic hgh generic hgh cheap nexium nexium buy nexium generic nexium generic nexium cheap soma soma buy soma generic soma generic soma generic didrex didrex buy didrex generic didrex generic didrex generic viagra viagra buy viagra generic viagra generic viagra free sony ericsson ringtone sony ericsson ringtone sony ericsson ringtones free sony ericsson ringtone sony ericsson ringtones free wwe ringtone wwe ringtone wwe ringtones free wwe ringtone wwe ringtones samsung ringtones samsung ringtone samsung ringtones free samsung ringtone samsung ringtones free christian ringtone christian ringtone christian ringtones free christian ringtone christian ringtones generic ultram ultram buy ultram generic ultram buy ultram free anime ringtone anime ringtone anime ringtones free anime ringtone anime ringtones free voice ringtone voice ringtone voice ringtones free voice ringtone voice ringtones music ringtones music ringtone music ringtones free music ringtone music ringtones rock ringtones rock ringtone rock ringtones free rock ringtone rock ringtones free motorola ringtone motorola ringtone motorola ringtones free motorola ringtone motorola ringtones free mtv ringtone mtv ringtone mtv ringtones free mtv ringtone mtv ringtones cheap norco norco buy norco generic norco buy norco phentermine online phentermine buy phentermine generic phentermine buy phentermine cheap celexa celexa buy celexa generic celexa generic celexa generic ultracet ultracet buy ultracet generic ultracet generic ultracet generic carisoprodol carisoprodol buy carisoprodol generic carisoprodol buy carisoprodol tenuate online tenuate buy tenuate generic tenuate buy tenuate free rap ringtone rap ringtone rap ringtones free rap ringtone rap ringtones free cool ringtones cool ringtone cool ringtones free cool ringtone cool ringtones free sony ericsson ringtones sony ericsson ringtone sony ericsson ringtones free sony ericsson ringtone sony ericsson ringtones cheap carisoprodol carisoprodol buy carisoprodol generic carisoprodol generic carisoprodol ringtones ringtone ringtones free ringtone ringtones carisoprodol online carisoprodol buy carisoprodol generic carisoprodol buy carisoprodol free qwest ringtone qwest ringtone qwest ringtones free qwest ringtone qwest ringtones zoloft online zoloft buy zoloft generic zoloft generic zoloft generic valium valium buy valium generic valium buy valium generic cyclobenzaprine cyclobenzaprine buy cyclobenzaprine generic cyclobenzaprine generic cyclobenzaprine xanax online xanax buy xanax generic xanax generic xanax free techno ringtones techno ringtone techno ringtones free techno ringtone techno ringtones generic phentermine phentermine buy phentermine generic phentermine buy phentermine generic tramadol tramadol buy tramadol generic tramadol buy tramadol tracfone ringtones tracfone ringtone tracfone ringtones free tracfone ringtone tracfone ringtones free mtv ringtones mtv ringtone mtv ringtones free mtv ringtone mtv ringtones generic ortho ortho buy ortho generic ortho generic ortho free pop ringtone pop ringtone pop ringtones free pop ringtone pop ringtones cheap cialis cialis buy cialis generic cialis generic cialis generic adipex adipex buy adipex generic adipex generic adipex sony ringtones sony ringtone sony ringtones free sony ringtone sony ringtones generic ativan ativan buy ativan generic ativan generic ativan polyphonic ringtones polyphonic ringtone polyphonic ringtones free polyphonic ringtone polyphonic ringtones alprazolam online alprazolam buy alprazolam generic alprazolam generic alprazolam cheap prozac prozac buy prozac generic prozac buy prozac free polyphonic ringtones polyphonic ringtone polyphonic ringtones free polyphonic ringtone polyphonic ringtones free sharp ringtone sharp ringtone sharp ringtones free sharp ringtone sharp ringtones cheap wellbutrin wellbutrin buy wellbutrin generic wellbutrin buy wellbutrin meridia online meridia buy meridia generic meridia generic meridia free midi ringtone midi ringtone midi ringtones free midi ringtone midi ringtones cialis online cialis buy cialis generic cialis buy cialis free mono ringtones mono ringtone mono ringtones free mono ringtone mono ringtones cheap lortab lortab buy lortab generic lortab buy lortab free verizon ringtone verizon ringtone verizon ringtones free verizon ringtone verizon ringtones cheap fioricet fioricet buy fioricet generic fioricet generic fioricet adipex online adipex buy adipex generic adipex generic adipex free sony ringtones sony ringtone sony ringtones free sony ringtone sony ringtones generic diethylpropion diethylpropion buy diethylpropion generic diethylpropion generic diethylpropion nextel ringtones nextel ringtone nextel ringtones free nextel ringtone nextel ringtones meridia online meridia buy meridia generic meridia generic meridia generic adipex adipex buy adipex generic adipex generic adipex kyocera ringtones kyocera ringtone kyocera ringtones free kyocera ringtone kyocera ringtones disney ringtones disney ringtone disney ringtones free disney ringtone disney ringtones free funny ringtone funny ringtone funny ringtones free funny ringtone funny ringtones qwest ringtones qwest ringtone qwest ringtones free qwest ringtone qwest ringtones generic fioricet fioricet buy fioricet generic fioricet buy fioricet generic fioricet fioricet buy fioricet generic fioricet buy fioricet humour ringtones humour ringtone humour ringtones free humour ringtone humour ringtones valium online valium buy valium generic valium buy valium funny ringtones funny ringtone funny ringtones free funny ringtone funny ringtones valium online valium buy valium generic valium generic valium free mp3 ringtone mp3 ringtone mp3 ringtones free mp3 ringtone mp3 ringtones motorola ringtones motorola ringtone motorola ringtones free motorola ringtone motorola ringtones free philips ringtones philips ringtone philips ringtones free philips ringtone philips ringtones sony ringtones sony ringtone sony ringtones free sony ringtone sony ringtones nokia ringtones nokia ringtone nokia ringtones free nokia ringtone nokia ringtones generic xanax xanax buy xanax generic xanax generic xanax generic tramadol tramadol buy tramadol generic tramadol buy tramadol mp3 ringtones mp3 ringtone mp3 ringtones free mp3 ringtone mp3 ringtones ultram online ultram buy ultram generic ultram generic ultram cheap ativan ativan buy ativan generic ativan generic ativan generic xanax xanax buy xanax generic xanax generic xanax free nextel ringtone nextel ringtone nextel ringtones free nextel ringtone nextel ringtones free midi ringtone midi ringtone midi ringtones free midi ringtone midi ringtones didrex online didrex buy didrex generic didrex buy didrex free mono ringtone mono ringtone mono ringtones free mono ringtone mono ringtones lorazepam online lorazepam buy lorazepam generic lorazepam buy lorazepam free jungle ringtone jungle ringtone jungle ringtones free jungle ringtone jungle ringtones nextel ringtones nextel ringtone nextel ringtones free nextel ringtone nextel ringtones generic klonopin klonopin buy klonopin generic klonopin buy klonopin free jazz ringtone jazz ringtone jazz ringtones free jazz ringtone jazz ringtones sonyericsson ringtones sonyericsson ringtone sonyericsson ringtones free sonyericsson ringtone sonyericsson ringtones free sharp ringtones sharp ringtone sharp ringtones free sharp ringtone sharp ringtones generic carisoprodol carisoprodol buy carisoprodol generic carisoprodol generic carisoprodol diazepam online diazepam buy diazepam generic diazepam buy diazepam generic carisoprodol carisoprodol buy carisoprodol generic carisoprodol buy carisoprodol valium online valium buy valium generic valium generic valium free nextel ringtones nextel ringtone nextel ringtones free nextel ringtone nextel ringtones generic ativan ativan buy ativan generic ativan buy ativan cheap diazepam diazepam buy diazepam generic diazepam buy diazepam generic rivotril rivotril buy rivotril generic rivotril generic rivotril free real ringtone real ringtone real ringtones free real ringtone real ringtones cool ringtones cool ringtone cool ringtones free cool ringtone cool ringtones telus ringtones telus ringtone telus ringtones free telus ringtone telus ringtones valium online valium buy valium generic valium buy valium free ringtone ringtone ringtones free ringtone ringtones free sonyericsson ringtone sonyericsson ringtone sonyericsson ringtones free sonyericsson ringtone sonyericsson ringtones generic carisoprodol carisoprodol buy carisoprodol generic carisoprodol generic carisoprodol free fly ringtone fly ringtone fly ringtones free fly ringtone fly ringtones free ringtone ringtone ringtones free ringtone ringtones generic clonazepam clonazepam buy clonazepam generic clonazepam generic clonazepam free cellphone ringtone cellphone ringtone cellphone ringtones free cellphone ringtone cellphone ringtones paxil online paxil buy paxil generic paxil generic paxil free alcatel ringtone alcatel ringtone alcatel ringtones free alcatel ringtone alcatel ringtones free jazz ringtone jazz ringtone jazz ringtones free jazz ringtone jazz ringtones cheap viagra viagra buy viagra generic viagra generic viagra free real ringtone real ringtone real ringtones free real ringtone real ringtones cheap clonazepam clonazepam buy clonazepam generic clonazepam generic clonazepam cheap ambien ambien buy ambien generic ambien buy ambien generic diazepam diazepam buy diazepam generic diazepam generic diazepam cialis online cialis buy cialis generic cialis generic cialis free sonyericsson ringtone sonyericsson ringtone sonyericsson ringtones free sonyericsson ringtone sonyericsson ringtones cheap ionamin ionamin buy ionamin generic ionamin generic ionamin generic hydrocodone hydrocodone buy hydrocodone generic hydrocodone buy hydrocodone generic alprazolam alprazolam buy alprazolam generic alprazolam buy alprazolam cheap meridia meridia buy meridia generic meridia generic meridia kyocera ringtones kyocera ringtone kyocera ringtones free kyocera ringtone kyocera ringtones generic flexeril flexeril buy flexeril generic flexeril generic flexeril generic flexeril
Download
If you already have KnotTheory` installed, there's no need to install anything. The functionality of WikiLink is available as soon as you open KnotTheory`.
Otherwise, download WikiLink.zip. Unzip this anywhere you like. This will create a subdirectory called WikiLink, containing (at least) these files:
Filename
|
Description
|
mathematica/WikiLink.nb
|
The Mathematica notebook containing wrapper function definitions.
|
mathematica/WikiLink.m
|
The Mathematica package automatically generated from WikiLink.nb.
|
wikilink.jar
|
The WikiLink java classes and source code.
|
jars/jdom.jar
jars/commons-httpclient-3.0-rc2.jar
jars/commons-codec-1.3.jar
jars/commons-lang-2.1.jar
jars/commons-logging.jar
|
Libraries (all available under either GPL or the Apache license) required by wikilink.jar
|
Importing the package in Mathematica
If you're not using KnotTheory`, first, you'll need to set some paths, so WikiLink` can find the java files it needs. You need to add the "mathematica/" subdirectory of the WikiLink distribution to the Mathematica $Path.
In[1]:=
|
WikiLinkPath = "/path/to/WikiLink/mathematica/";
|
In[2]:=
|
AppendTo[$Path, WikiLinkPath];
|
If you've already loaded KnotTheory` (e.g., with the statement <<KnotTheory`
), you can simply begin at this point.
We then try to connect to the wiki. Executing this line will prompt you for a username and password.
In[6]:=
|
CreateWikiConnection[
"http://katlas.math.toronto.edu/w/index.php",
InputString["Enter Your Username:"],
InputString["Enter Your Password:"]
]
|
The function WikiUserName[]
checks that we're logged in
In[4]:=
|
?WikiUserName
|
WikiUserName[] returns either the name of the user you are logged in as, your IP address if you're not logged in, or $Failed if something more complicated has happened!
|
|
In[5]:=
|
WikiUserName[]
|
Out[5]=
|
ScottManualRobot
|
Usage
WikiLink` provides functions for checking your login status, getting and setting pages, as well as transparently extending some of Mathematica's string manipulation functions to wiki pages.
In[6]:=
|
?WikiUserName
|
WikiUserName[] returns either the name of the user you are logged in as, your IP address if you're not logged in, or $Failed if something more complicated has happened!
|
|
In[7]:=
|
?WikiGetPageText
|
WikiGetPageText[pagename] returns the raw text of the specified page.
|
|
In[8]:=
|
?WikiSetPageText
|
WikiSetPageText[pagename, text] overwrites the contents of the specificied page with the given text.
WikiSetPageText[pagename, text, summary] overwrites the contents of the specificied page with the given text and notes summary in the change log.
|
|
In[9]:=
|
?WikiSetPageTexts
|
WikiSetPageText[{{pagename1, text1},{pagename2,text2},...}] efficiently sets multiple pages, by first checking which texts are already up to date.
|
|
In[10]:=
|
?WikiUploadFile
|
WikiUploadFile[name, description] uploads the specified file to the wiki.
|
|
Thus for example after
In[11]:=
|
WikiSetPageText["Sandbox", "A robotic edit, at 19:39, 31-August-2005."]
|
Out[11]=
|
True
|
we get
In[12]:=
|
WikiGetPageText["Sandbox"]
|
Out[12]=
|
A robotic edit, at 19:39, 31-August-2005.
|
The function WikiSetPageTexts
is most useful for batch uploads, as it does considerably more error checking, and filters out edits which won't change the page text. It takes as argument a list of {"title", "text"}
pairs, and returns a list of those pairs which failed.
In[13]:=
|
WikiSetPageTexts[{{"Sandbox", "A robotic edit, by --~~"<>"~~"}, {"Sandbox2", "The determinant of the knot [[3_1]] is 3."}}]
|
Out[13]=
|
{}
|
In[14]:=
|
WikiGetPageText["Sandbox2"]
|
Out[14]=
|
The determinant of the knot [[3_1]] is 3.
|
String manipulation functions
WikiLink`
provides functions WikiPageMatchQ, WikiPageFreeQ, WikiStringReplace and WikiStringCases. Each function works likes its usual Mathematica partner, StringMatchQ, StringFreeQ, StringReplace or StringCases. Instead of providing a string, or list of strings, as the first argument, you should give the name of a page, or a list of names.
You can use these to perform all sorts of editing tricks.
In[15]:=
|
WikiPageMatchQ[{"Sandbox", "Sandbox2"}, "determinant"]
|
Out[15]=
|
{False, False}
|
In[16]:=
|
WikiPageFreeQ[{"Sandbox", "Sandbox2"}, "[["~~(DigitCharacter..)~~"_"~~(DigitCharacter..)~~"]]"]
|
Out[16]=
|
{True, False}
|
In[17]:=
|
WikiStringCases[{"Sandbox", "Sandbox2"}, "[["~~ShortestMatch[__]~~"]]"]
|
Out[17]=
|
{{Sandbox, {[[User:ScottManualRobot|ScottManualRobot]]}},
{Sandbox2, {[[3_1]]}}}
|
In[18]:=
|
WikiStringReplace[{"Sandbox", "Sandbox2"}, "robotic edit"->"robotic edit (using WikiLink`)]
|
Out[18]=
|
$Failed
|
In[19]:=
|
WikiGetPageTexts[{"Sandbox", "Sandbox2"}]
|
Out[19]=
|
{{Sandbox, A robotic edit, by\
--[[User:ScottManualRobot|ScottManualRobot]] 14:54, 18 Feb 2006\
(EST)}, {Sandbox2, The determinant of the knot [[3_1]] is 3.}}
|
Troubleshooting
The instruction ShowJavaConsole[]
will bring up a window in which some debugging information is displayed.
Compatibility
WikiLink has been tested against mediawiki 1.4.5beta3 and 1.4.7.
WikiLink has known issues on mediawiki 1.5.0. Retrieving multiple pages at once is broken. This appears to be a mediawiki bug, and will not be fixed. The same problem does not occur on mediawiki 1.5.8. --Scott 10:56, 27 Mar 2006 (EST)
I expect WikiGetPage text to continue working in mediawiki 1.5 and beyond, because it uses the stable interface Special:Export. Logging in and setting pages will quite likely break in the next version. If you've tried this, please let me know about your experiences. I'm hoping that soon (1.5?) Special:Import will become available, and I can switch to using this. --Scott 15:57, 31 Aug 2005 (EDT)
Todo
I'd love to create an Ant task which allows uploading a file to a wiki. We could then use this in build scripts for KnotTheory, etc. --Scott 04:07, 17 Sep 2005 (EDT)
See Also
All of the Mathematica notebooks in Category:Knot Atlas Maintenance Software rely on WikiLink, and so are good examples of how to use it.
You may also be interested in the Wikipedia page on mediawiki bots, and in particular the Python Wikipedia Robot Framework.