|
Cookbook /
DoTheRightThing-TalkSummary: Talk page for Do the Right Thing.
Maintainer: Petko
This space is for User-contributed commentary and notes. Please include your name and a date along with your comment. Possible features/changes I'd be interested in:
instead of
/^\\s*(\\S*):[^\\S\n]+(\\S*)/m
instead of
usd2all,usd2leke,usd2l,u2all,u2leke,u2l,d2all,d2leke,d2l: ...
—Peter Bowers February 06, 2011, at 03:15 AM RegExp keywords done, but need testing. Space before the ":" made optional, space after kept required (or the first "\S" selects everything). --Petko April 08, 2011, at 04:28 PM Here's the set of DTRT definitions I'm using to date:
gi: http://images.google.com/images?q=$1 : Google images
fm: http://freshmeat.net/search/?section=projects&q=$1 : Freshmeat (software)
php: http://php.net/search.php?lang=en&show=quickref&pattern=$1 : PHP manual
pmwiki,pm,p: http://www.google.com/search?q=site%3Apmwiki.org+$1 : PmWiki search
pmc,cookbook: http://www.pmwiki.org/wiki/Cookbook/$1 : Cookbook recipe
pmw: http://www.pmwiki.org/wiki/PmWiki/$1 : PmWiki page
map,maps: http://www.google.com/maps?q=$1 : Search Google Maps
pm: http://www.pmwiki.org/wiki/?action=search&q=$1 : search PmWiki.org
imdb: http://www.imdb.com/find?s=all&q=$1 : search IMDB for movies
ar: http://allrecipes.com/Search/Recipes.aspx?WithTerm=$1 : search AllRecipes
bbc: http://www.bbc.co.uk/search/news/$1 : search BBC News
fox: http://www.foxnews.com/search-results/search?q=$1&submit=Search : search FoxNews
dtrt: {$ScriptUrl}?n=Main.DTRT?action=edit : test : Edit this page
e,ebay: http://shop.ebay.com/?_from=R40&_trksid=p5197.m570.l1313&_sacat=See-All-Categories&_nkw=$1 : search ebay
a,am,amazon: http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&x=0&y=0&field-keywords=$1 : search Amazon
alb2eng,sq2en: http://translate.google.com/#sq|en|$1 : translate shqip-->Eng
eng2alb,en2sq: http://translate.google.com/#en|sq|$1 : translate Eng->Alb
u2a,d2a,u2l,d2l,usd,usd2all: http://www.xe.com/ucc/convert.cgi?Amount=$1&From=USD&To=ALL : Convert USD to ALL(leke)
a2u,l2u,a2d,l2d,leke,all2usd:http://www.xe.com/ucc/convert.cgi?Amount=$1&From=ALL&To=USD : Convert ALL(leke) to USD
e2u,e2d,eur2usd: http://www.xe.com/ucc/convert.cgi?Amount=$1&From=EUR&To=USD : Convert EURO to USD
e2a,e2l,,eur2all: http://www.xe.com/ucc/convert.cgi?Amount=$1&From=EUR&To=ALL : Convert EURO to ALL(leke)
g2u,p2u,g2d,p2d,gbp2usd: http://www.xe.com/ucc/convert.cgi?Amount=$1&From=GBP&To=USD : Convert GBP to USD
g2a,p2a,g2l,p2l,gbp2all: http://www.xe.com/ucc/convert.cgi?Amount=$1&From=GBP&To=ALL : Convert GBP to ALL(leke)
What else are others using? —Peter Bowers January 22, 2011, at 03:28 PM Here are some of my shortcuts. I think I'll add the Amazon search and the money convertor (I now google "123.4 USD in EUR"). --Petko January 22, 2011, at 04:03 PM tr: http://translate.google.com/#auto|en|$1 : Any language to English w: https://secure.wikimedia.org/wikipedia/en/wiki/Special:Search?go=1&search=$1 : Search en.wikipedia d: https://secure.wikimedia.org/wiktionary/en/wiki/Special:Search?go=1&search=$1 : Search en.wiktionary archive: http://web.archive.org/archive_request_ng?collection=web&url=$1 : Web Archive, old website versions pm: http://www.pmwiki.org/wiki/?action=search&q=$1 : PmWiki.org internal search pmn: http://www.pmwiki.org/wiki/?action=search&q=name=*$1* : PmWiki.org "PageName contains" €: http://www.xe.com/ucc/convert.cgi?From=EUR&To=USD&Amount=$1 : Convert Euros to USD, type "€ 100" £: http://www.xe.com/ucc/convert.cgi?From=GBP&To=EUR&Amount=$1 : Convert GBP to Euros, type "£ 100" $: http://www.xe.com/ucc/convert.cgi?From=USD&To=EUR&Amount=$1 : Convert USD to Euros, type "$ 100" F: http://www.google.com/search?q=$1+F+to+C: Convert Fahrenheit to Celsius, type "F 100" (uppercase) C: http://www.google.com/search?q=$1+C+to+F: Convert Celsius to Fahrenheit, type "C 100" (uppercase) Y,year,cal: http://5ko.free.fr/en/year.php?y=$1 : Perpetual yearly calendar, type "Y 2011" france: https://maps.google.com/maps?q=from+Paris,+France,+to+$1,+France : driving directions from Paris to anywhere Note, international characters like "€" and "£" above may not work if your wiki is not using UTF-8. You can find out the address of a custom search on any website. Perform a search for a string like "PMWIKI", then copy the url from your address bar. Paste the url to your DTRT page, replacing "PMWIKI" with "$1". --Petko January 22, 2011, at 04:18 PM Talk page for the Do the Right Thing recipe (users). |