Extension:RedditTag

What does this extension do?
This extension allows an editor of your wiki to add a "Reddit this" button to a page, either submitting the page to the main reddit, or to a specific subreddit.

Usage
Simply add the code  anywhere you want a submit button to the main reddit to appear. If you want to target a specific subreddit, use the code, where foo is the subdomain of the subreddit you wish to submit to. You can put this code in a template if you like, as the actual submission process occurs via a JavaScript call that asks the browser for the current URL.

Download Instructions
Copy and paste the code below. Save it as RedditTag.php.

BEFORE YOU USE THIS EXTENSION
Be aware that MediaWiki does not work very well under heavy load unless properly set up. Now think about what you're doing with this tag; You're explicitly advertising pages on your wiki on a massive popularity-based link sharing site. Every time you submit a link, you risk bringing thousands of page requests per minute to your site's server. This can easily get you in trouble with your hosting provider, be it shared hosting, VPS or any scenario where excesss activity can be a problem.

If you think your server can handle it, or if you're taking the "We'll cross that bridge when we come to it" approach, carry on.

Installation
Copy RedditTag.php to your extensions directory, then add to your LocalSettings.php.

Websites using this extension

 * Rosetta Code