MediaWiki / Extensions
From WhyNotWiki
MediaWiki / Extensions edit (Category edit)
[edit] Meta
Aliases: Extending MediaWiki
See what extensions are on the WikiMedia projects:
Learn about extensions:
Directory of extensions:
[edit] Extensions/Plugins
http://arch.doit.wisc.edu/jim/index.php/2005/11/18/mediawiki-plugins/
http://daryl.learnhouston.com/?p=125
http://opensource.case.edu/projects/MediaWikiHacks/
http://www.wickle.com/wiki/index.php/Main_Page
[edit] User:Duesentrieb/Tools / WikiSense / WikiMining
http://meta.wikimedia.org/wiki/User:Duesentrieb/Tools
[edit] Tools for Categories
- User:Duesentrieb/CategoryTree [1]: shows the category structure as a dynamic tree. Can be installed as a sidebar in most browsers.
- User:Duesentrieb/CatScan [2]: search categories with subcategories recursively, for intesection with other categories, templates, stubs, recent changes, etc.
- User:Duesentrieb/CommonSense [3]: try to guess into which category on Wikimedia Commons an image belongs.
[edit] Tools for Users
- User:Duesentrieb/ActiveUsers [4]: finding users that where active in the last minutes/hours, filtered by groups, tags or categories.
- User:Duesentrieb/Gallery [5]: Image gallery, optionally filtered or grouped by user. Shows usage and tagging status. Also supplies an RSS feed of recent uploads.
[edit] Tools for Images
- User:Duesentrieb/CheckUsage [6]: find out where an image from the Commons is used on Mediawiki projects.
- User:Duesentrieb/CommonSense [7]: try to guess into which category on Wikimedia Commons an image belongs.
- User:Duesentrieb/Gallery [8]: Image gallery, optionally filtered or grouped by user. Shows usage and tagging status. Also supplies an RSS feed of recent uploads.
- User:Duesentrieb/UntaggedImages [9]: list untagged images, optionally filtered or grouped by user.
- User:Duesentrieb/OrphanImages [10]: list orphan images, optionally filtered or grouped by user (Commons only).
- User:Duesentrieb/CommonsClash [11]: list local images that "shadow" an image on the commons. Also shows if the local copy is identical.
- User:Duesentrieb/CatScan [12]: in image mode, this lists all images contained or used in a given category and its subcategories.
- User:Duesentrieb/MediaSearch [13]: Search for images and other media files in a category, including subcategories. Allows filters for license requirements, file size, resolution, file type, etc.
- User:Duesentrieb/POTD [14]: A page providing the Picture of the Day in different resolutions via a stable URL
[edit] Tools for Articles
- User:Duesentrieb/Contributors [15]: shows the version history of a page, with options for sorting, filtering, grouping, and different output formats. May be used to copy a version history on a wiki page.
http://tools.wikimedia.de/~daniel/downloads/
The WikiMining tools and the WikiWord project
- CategoryTree extension for MediaWiki (r17854)
- DownByte. The script that generates the download page you are viewing.
- WikiSense core library. This is required by all other WikiSense packages.
- WikiSense developer bundle (all files). Requires a MediaWiki installation.
- WikiMining command line tools and bots. Requires the WikiSense core libraries.
- WikiMining online tools, for monitoring and analysing a MediaWiki. Requires the WikiSense core libraries.
- WikiWord mining tool. Extracts and presents a dictionary, based on Wikipedia data. Requires the WikiSense core libraries.
http://tools.wikimedia.de/~daniel/WikiSense/ToolTOC.php
- ActiveUsers (about) Lists currently active users, filtered by admin flag, babel-box, etc
- BrokenImageLinks (about)
- CatScan (about)
- CategoryIntersect (about)
- CategoryTree (about)
- CheckUsage (about)
- CommonSense (about)
- CommonsClash (about)
- Contributors (about)
- DeletedTemplates (about)
- FindImages (about) Finds images for a given article, using interwiki links
- Gallery (about)
- MediaSearch (about)
- MostEdited (about)
- OrphanImages (about)
- OrphanTalk (about)
- RandomPage (about)
- TalkRedirects (about)
- TickerLog (about) Page for listing CommonsTicker events
- TickerMatrix (about) Overview of CommonsTicker configuration
- ToolTOC (about)
- UntaggedImages (about)
- WikiProxy (about)
- WikiStrip (about)
[edit] CategoryTree
http://meta.wikimedia.org/wiki/CategoryTree_extension
<categorytree mode="all">Some category</categorytree>
[edit] Installation
~/dev/wiki/trunk/extensions> svn export http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/CategoryTree/ ~/dev/wiki/trunk/extensions> svn add CategoryTree/ .htaccess: # Don't rewrite urls starting with images/, etc. RewriteRule ^(images|skins|extensions)/ - [L] LocalSettings.php: #--------------------------------------------------------- # CategoryTree # http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/CategoryTree/README?view=markup $wgUseAjax = true; require_once( 'extensions/CategoryTree/CategoryTree.php' ); # $wgCategoryTreeDynamicTag = true; $wgCategoryTreeDisableCache = false;
[edit] Cite
http://meta.wikimedia.org/wiki/Cite.php
[edit] Installation
~/dev/wiki/trunk/extensions> svn export http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Cite
~/dev/wiki/trunk/extensions> svn add Cite
LocalSettings.php:
#---------------------------------------------------------
# Cite
# http://meta.wikimedia.org/wiki/Cite.php
require_once( "{$IP}/extensions/Cite/Cite.php" );
[edit] ParserFunctions
[edit] Installation
~/dev/wiki/trunk/extensions> svn export http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ParserFunctions ~/dev/wiki/trunk/extensions> svn add ParserFunctions LocalSettings.php: #--------------------------------------------------------- # ParserFunctions # http://meta.wikimedia.org/wiki/ParserFunctions require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
[edit] StringFunctions
http://meta.wikimedia.org/wiki/StringFunctions
This module defines these functions: len, pos, rpos, sub, pad, replace, explode, urlencode, and urldecode.
[edit] SpecialCite
http://meta.wikimedia.org/wiki/Cite/SpecialCite.php -- is a Cite extension that adds a special page (Special:Cite) and in the main namespace, a toolbox link to it. Used to let people site from your wiki in a consistent format.
[edit] Semantic MediaWiki
[edit] Google maps
http://www.mediawiki.org/wiki/Extension:Google_Maps
[edit] PW Auth
http://meta.wikimedia.org/wiki/PwAuthPlugin
http://www.unixpapa.com/pwauth/
[edit] Review script
http://www.mediawiki.org/wiki/Extension:Review_script http://www.mediawiki.org/wiki/Extension:Review_script
http://www.leerwiki.nl/How_to_port_Unobtrusive_AJAX_Star_Rating_Bar_to_MediaWiki http://www.leerwiki.nl/How_to_port_Unobtrusive_AJAX_Star_Rating_Bar_to_MediaWiki
[edit] MediaWiki diff and blamemap
[edit] MediaWiki diff and blamemap
Hello everyone Back in the summer I did a small demo http://217.147.83.36:9000/history::171=170 that allowed tracking contributions. It was quite slow and UTF-8 incompatible. So I'm pleased to announce that after some optimization and rewriting it in C I've managed to implement UTF-8 support and substantially increase performance. At the moment it is several times faster than current wikidiff2 extension (C++ version) and has peak throughput of around 3 mb/s. You can take a look at live demo. Sample blamemap: http://217.147.83.36:9001/wiki/Freebsd?trackchanges=blamemap&oldid=1524 Can track even a single character change: http://217.147.83.36:9001/wiki/Freebsd?trackchanges=diff1&oldid=1516 Handles text swap: http://217.147.83.36:9001/wiki/Freebsd?trackchanges=diff2&oldid=1513 I've plugged it into mediawiki code so at the moment every article and talk page is having credits section and corresponding blamemap. At the moment in order to use this you'll have to have root access to the server and some changes to the mainline code and database will be needed. If you're interested in testing this extension drop me a line. Best regards Roman
[edit] SpamBlacklist
http://meta.wikimedia.org/wiki/SpamBlacklist_extension
The primary source for a MediaWiki-compatible blacklist file is the Wikimedia spam blacklist on meta, at http://meta.wikimedia.org/wiki/Spam_blacklist. The default configuration loads this list once every 10-15 minutes. [...]If you'd like to draw the list of bad host names from multiple or different sources, add the $wgSpamBlacklistFiles array after the line including the extension. [...] $wgSpamBlacklistFiles is an array, each value containing either a URL, a filename, or a database location. Specifying a database location allows you to draw the blacklist from a page on your wiki.
The format of the database location specifier is "DB: [db name] [title]". [...]
For example:
require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" ); $wgSpamBlacklistFiles = array( "$IP/extensions/SpamBlacklist/wikimedia_blacklist", // Wikimedia's list // database title "DB: wikidb My_spam_blacklist", );In the above example, the spam blacklist will be constructed from two sources: a file called wikimedia_blacklist in the SpamBlacklist directory of the Wiki installation, and the contents of a page on the wiki called My_spam_blacklist.
Whitelist
A corresponding whitelist can be maintained by editing the MediaWiki:Spam-whitelist message.
[edit] Farmer
http://www.mediawiki.org/wiki/Extension:Farmer
Farmer is a tool that allows you to manage a MediaWiki farm as well as make configuration changes to a wiki via a web interface....
[edit] Shared Tables
Once you have the patch installed, put the following in LocalSettings.php
$wgSharedTables = array( 'user' => $sharedPrefix . 'user', 'user_groups' => $sharedPrefix . 'user_groups', 'interwiki' => $sharedPrefix . 'interwiki', 'math' => $sharedPrefix . 'math', );This will share the 'user', 'user_groups', 'interwiki', and 'math' tables among all wikis in your farm.
[edit] Creating Wikis
Wikis can be created by following a link on Special:Farmer. This link is only available if the following conditions are met
...
When you press the button, the following happens:
1. Your wiki's basic config file is generated with the information you supplied
2. The SQL in the file specified by Farmer's newDbSourceFile configuration setting is executed, creating the necessary tables
3. The wiki's main page is set to the content defined in the farmernewwikimainpage system message
4. The new wiki's system messages are populated
5. The interwiki table is updated with a reference to this wiki
6. The person who created this wiki is added to a group of the name [farmer][wikiname][admin], where wikiname is the name of the wiki.
If everything works, you should see a message saying your wiki was created. This message will contain a link to your new wiki.
[edit] Managing Wikis
Farmer allows system operators as well as per-wiki admins to have control over some aspects of individual wikis. These controls can be found at Special:Farmer/admin. Currently, these controls just allow you to set the wiki description and define permissions for your wiki. In the future, it is hoped to provide a much more verbose interface to other variables.
[edit] Manage Extensions
Farmer allows farmer administrators to define extensions which can be selected for loading by member wikis.
[edit] CASE MedaiWiki hacks
http://opensource.case.edu/projects/MediaWikiHacks/
http://opensource.case.edu/trac_projects/MediaWikiHacks/browser/extensions
[edit] ReferralListing
"List HTTP Referrers (from SQL database)"
http://opensource.case.edu/trac_projects/MediaWikiHacks/browser/extensions/ReferralListing
[edit] Graph Data Structures
http://opensource.case.edu/trac_projects/MediaWikiHacks/browser/extensions/GraphDataStructure , etc.
http://opensource.case.edu/trac_projects/MediaWikiHacks/wiki/GraphDataStructure.
The GraphDataStructure extension is a class that interfaces with MediaWiki to obtain graph data structures representing your wiki.The class by default populates a graph of your entire wiki from the database. It looks for articles, categories, templates, images, etc and assigns a node to each of these. Next, it looks for page links, image use, category association, template usage, etc and assigns edges between nodes. This extension will also take attributes and relations from Semantic MediaWiki and include them as node attributes or edges between nodes.
The class is able to export XML of the internal structure. It can also take XML as a constructor to re-create a data structure. The XML output is a custom schema that efficiently gets the job done. I am considering RDF output, but that may come in the form of a separate extension that converts this class's XML output to RDF and vice-versa.
The class also provides some helpful methods that allow you to define the active node and prune all nodes and edges not connected to this node.
GraphStructures is a special page that interfaces with this extension.
http://opensource.case.edu/trac_projects/MediaWikiHacks/wiki/GraphStructures.
GraphStructures is a special page that interfaces with GraphDataStructure. This frontend has a caching infrastructure for GraphDataStructure with parameters that can be user-defined. The output for every query to this extension is saved to disk and cached files will be automatically pruned when they have expired.This special page is also an includable special page, which means its output is internally available to MediaWiki? (it is possible to have another extension query for XML without having to perform a client request).
This extension provides a limited set of outputs. Currently, one can query for the entire graph, the categories graph, or per-article graphs. The output type is limited to what GraphDataStructure provides.
A demo of this extension is available at http://wiki.case.edu/Special:GraphStructure
[edit] To look at
http://www.mediawiki.org/wiki/Extension:Add_Article_to_Category Extension:Add Article to Category
http://www.mediawiki.org/wiki/Extension:AddPageService Extension:AddPageService
"AddPageService is a web service that enables external programs to add or edit pages on the wiki just as a regular user."
http://www.mediawiki.org/wiki/Extension:Add_Button Extension:Add Button - MediaWiki
"to add buttons whose task is to add those frequently used commands. This is what Add Button Extension does."
http://www.mediawiki.org/wiki/Extension:AuthorRestriction Extension:AuthorRestriction
http://www.mediawiki.org/wiki/Extension:Boilerplate Extension:Boilerplate
http://www.mediawiki.org/wiki/Extension:CategoryCloud Extension:CategoryCloud
http://www.mediawiki.org/wiki/Extension:CrudeProtection Extension:CrudeProtection
http://www.mediawiki.org/wiki/Extension:DisallowAccessOnCategory Extension:DisallowAccessOnCategory
http://www.mediawiki.org/wiki/Extension:Duplicator Extension:Duplicator
http://www.mediawiki.org/wiki/Extension:Emailtag Extension:Emailtag
http://www.mediawiki.org/wiki/Extension:Email_notification Extension:Email notification
http://www.mediawiki.org/wiki/Extension:ExpandTemplates Extension:ExpandTemplates
http://www.mediawiki.org/wiki/Extension:FilterTitles Extension:FilterTitles
http://www.mediawiki.org/wiki/Extension:Hierarchical_Namespace_Permissions Extension:Hierarchical Namespace Permissions
http://www.mediawiki.org/wiki/Extension:HTTPGet Extension:HTTPGet
http://www.mediawiki.org/wiki/Extension:HTMLets Extension:HTMLets
http://www.mediawiki.org/wiki/Extension:Hierarchy Extension:Hierarchy
http://www.mediawiki.org/wiki/Extension:ImageMap Extension:ImageMap
http://www.mediawiki.org/wiki/Extension:ImportFreeImages Extension:ImportFreeImages
http://www.mediawiki.org/wiki/Extension:Link Extension:Link
http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion Extension:Labeled Section Transclusion
http://www.mediawiki.org/wiki/Extension:MicroID Extension:MicroID
http://www.mediawiki.org/wiki/Extension:LockTitle Extension:LockTitle
http://www.mediawiki.org/wiki/Extension:Lockdown Extension:Lockdown
http://www.mediawiki.org/wiki/Extension:LoopFunctions Extension:LoopFunctions
http://www.mediawiki.org/wiki/Extension:NamespaceLevelProcessor Extension:NamespaceLevelProcessor
http://www.mediawiki.org/wiki/Extension:OpenID Extension:OpenID
http://www.mediawiki.org/wiki/Extension:OpenSearch Extension:OpenSearch
http://www.mediawiki.org/wiki/Extension:PHP-Rewriter Extension:PHP-Rewriter
http://www.mediawiki.org/wiki/Extension:PageAttributes Extension:PageAttributes
http://www.mediawiki.org/wiki/Extension:PageNotice Extension:PageNotice
http://www.mediawiki.org/wiki/Extension:PathFunctions Extension:PathFunctions
http://www.mediawiki.org/wiki/Extension:Patroller Extension:Patroller
http://www.mediawiki.org/wiki/Extension:Prefix_Security Extension:Prefix Security
http://www.mediawiki.org/wiki/Extension:Postloader Extension:Postloader
http://www.mediawiki.org/wiki/Extension:ProcessCite Extension:ProcessCite
http://www.mediawiki.org/wiki/Extension:PropertyTable Extension:PropertyTable
http://www.mediawiki.org/wiki/Extension:RandomInclude Extension:RandomInclude
http://www.mediawiki.org/wiki/Extension:SQLselect Extension:SQLselect
http://www.mediawiki.org/wiki/Extension:SelectCategory Extension:SelectCategory
http://www.mediawiki.org/wiki/Extension:SpecialForm Extension:SpecialForm
http://www.mediawiki.org/wiki/Extension:YetAnotherTagCloud Extension:YetAnotherTagCloud
http://www.mediawiki.org/wiki/Extension:SplitCategoryPage Extension:SplitCategoryPage
http://www.mediawiki.org/wiki/Extension:Strip_Markup Extension:Strip Markup
http://www.mediawiki.org/wiki/Extension:UML Extension:UML
http://www.mediawiki.org/wiki/Extension:Review_script Extension:Review script
http://www.mediawiki.org/wiki/Extension:Urlencode Extension:Urlencode
http://www.mediawiki.org/wiki/Extension:Variables Extension:Variables
MediaWiki edit (Category edit)
