MediaWiki extension

MediaWiki extension

MediaWiki extensions allow MediaWiki to be made more advanced and useful for various purposes. These extensions vary greatly in complexity. The Wikimedia Foundation operates a Subversion server where many extensions are hosted, and a directory of them can be found on the MediaWiki website. Some other sites also are known for development of—or support for—extensions are MediaWiki.org, which maintains an extension matrix;[1] and Google Code.[2] Some MediaWiki developers, especially new ones, are granted access to commit changes to extensions only, rather than the entire codebase. MediaWiki code review is itself facilitated through a MediaWiki extension.[3] Since version 1.16 MediaWiki also used the jQuery library.[4]

Contents

Usage

A person with FTP access to the wiki directories can install extensions manually by downloading them to the appropriate directories and using a text editor to add require_once lines to the LocalSettings.php file to cause the extension code to be included and evaluated. Some extensions also have configuration settings that are set and changed by editing this file.[5] There is also an extension, Configure, that allows other extensions to be more easily managed.[6] A better extension management platform is under development.[7]

Kinds of extensions

Parser functions

Among the most popular extensions is a parser function extension, ParserFunctions, that allows different content to be rendered based on the result of conditional statements.[8] These conditional statements can perform functions such as evaluating whether a parameter is empty, comparing strings, evaluating mathematical expressions, and returning one of two values depending on whether a page exists. It was designed as a replacement for a notoriously inefficient template called {{Qif}}.[9] Schindler recounts the history of the ParserFunctions extension as follows:[10]

In 2006 some Wikipedians discovered that through an intricate and complicated interplay of templating features and CSS they could create conditional wiki text, i.e. text that was displayed if a template parameter had a specific value. This included repeated calls of templates within templates, which bogged down the performance of the whole system. The developers faced the choice of either disallowing the spreading of an obviously desired feature by detecting such usage and explicitly disallowing it within the software, or offer an efficient alternative. The latter was done by Tim Starling, who announced the introduction of parser functions, wiki text that calls functions implemented in the underlying software.

At first, only conditional text and the computation of simple mathematical expressions was implemented, but this already increased the possibilities for wiki editors enormously. With time further parser functions were introduced, finally leading to a framework that allowed the simple writing of extension function to add arbitrary functionalities, like e.g. geo-coding services or widgets. This time the developers were clearly reacting to the demand of the community, being forced either to fight the solution of the issue that the community had (i.e. conditional text), or offer an improved technical implementation to replace the previous practice and achieve an overall better performance.

Another parser functions extension, StringFunctions, was developed to allow evaluation of string length, string position, and so on. Wikimedia communities, having created awkward workarounds to accomplish the same functionality,[11] clamored for it to be enabled on their projects.[12] Much of its functionality was eventually integrated into the ParserFunctions extension,[13] albeit disabled by default and accompanied by a warning from Tim Starling that enabling string functions would allow users "to implement their own parsers in the ugliest, most inefficient programming language known to man: MediaWiki wikitext with ParserFunctions."[14]

Academic and encyclopedia-related data display

Another very popular extension is a citation extension that enable footnotes to be added to pages using inline references.[15] This extension has, however, been criticized for being difficult to use and requiring the user to memorize complex syntax. A tool called ProveIt was proposed as a replacement.[16] A gadget called RefToolbar has also been created to make it easier to create citations using common templates.[17] MediaWiki has some extensions that are well-suited for academia, such as mathematics extensions[18] and an extension that allows molecules to be rendered in 3D.[19]

Integration

A generic Widgets framework has been created that allows MediaWiki to integrate with virtually anything. Other examples of extensions that could improve a wiki are category suggestion extensions[20] and extensions for inclusion of Flash Videos,[21] YouTube videos,[22] and RSS feeds.[23] An extension to integrate with Facebook is forthcoming.[24] Metavid, a site that archives video footage of the U.S. Senate and House floor proceedings, was created using code extending MediaWiki into the domain of collaborative video authoring.[25] One extension, Viskimap, makes use of graphic organizers to visualize the relationships between content pages, so that students can easily get an understanding of the content elements and their relations, as they navigate through the wiki pages.[26]

Combating spam

There are many spambots that search the Internet for MediaWiki installations and add linkspam to them, despite the fact that MediaWiki uses the nofollow attribute to discourage such attempts at search engine optimization.[27] Part of the problem is that third party republishers, such as mirrors, may not independently implement the nofollow tag on their websites, so marketers can still get PageRank benefit by inserting links into pages when those entries appear on third party websites.[28] Anti-spam extensions have been developed to combat the problem by introducing CAPTCHAs,[29] blacklisting certain URLs,[30] and allowing bulk deletion of pages recently added by a particular user.[31]

Searches, queries and data processing and aggregation

A form to edit a page, using the Semantic Forms extension, which in turn relies on Semantic MediaWiki

MediaWiki's weak query functionality, based mostly upon text searches, has inspired the creation of extensions adding complex new behavior to the wiki syntax. Systems which assist in analyzing relationships among editors, articles, revisions, topics, and words have attracted considerable attention from the academic community, both in terms of papers published[32] and programming projects attempted.[33] They have been deemed necessary in order for the software to be suitable for applications such as some scientific databases.[34][35]

Example of extensions facilitating such analyses include Semantic MediaWiki, which provides the ability to add structured and searchable relations and attributes to wiki pages, and WikiTrust, which implements a system for checking the author, origin, and reliability of wiki text. SNPedia, NeuroLex, and DBpedia are projects along these lines. A Software Organization Platform, intended to support specific software engineering activities such as experience management, requirements engineering, or project management, was based upon Semantic MediaWiki.[36] Another wiki, SynBioSS Wiki, whose purpose is to enable the scientific community to store and retrieve information related to synthetic biology efforts, likewise sought to overcome MediaWiki's limitations in this regard by creating database fields for species ids, complex ids, etc.; new species and such could be added through a special page. A modified MediaWiki search engine was also part of that project.[37] SMW was itself extended by the introduction of content types, bidirectional relationships, controlled vocabularies, user-friendly user interfaces (including, for instance, autocompletion), and Web 2.0 techniques for visualization and interaction options.[38]

An extension called Woogle[39] was created in an attempt to combine the advantages of wikis in capturing new information in a lightweight and collaborative fashion and of enterprise search engines in locating existing documents and information in an organization.[40] Since by default, creating and changing tables is a manual process, with inconsistencies likely to occur among tables that display the same data in different ways, the DynaTable extension was created to provide wiki users with a convenient way to define data in a separate namespace, resulting in the data being stored in a database table, and have it be dynamically retrieved from the database at the time of the wiki page parsing or rendering, to pages that have the appropriate tag (and needed parameters). The extension also allows users to filter tables by selecting a subset of columns and rows to display.[41]

An extension-based system known as Annoki was developed to help attribute specific parts of articles to specific authors. If more than 50% of a sentence was added by a particular editor, that sentence was deemed to be "owned" by that editor. If less than 50% was added by an editor, that editor was deemed to be a proofreader of that sentence. The system also viewed a series of edits made by the same author as a continuous editing effort and defined a wiki page "release" as the last of these sequential revisions.[42]

References

  1. ^ "Extension Matrix". MediaWiki. http://www.mediawiki.org/wiki/Extension_Matrix. Retrieved 2010-05-30. 
  2. ^ MediaWiki Extensions, Google Code
  3. ^ "Extension:CodeReview". MediaWiki. http://www.mediawiki.org/wiki/Extension:CodeReview. Retrieved 2010-05-30. 
  4. ^ jQuery on MediaWiki
  5. ^ http://www.mediawiki.org/wiki/Manual:Extensions#Installing_an_extension
  6. ^ http://www.mediawiki.org/wiki/Extension:Configure
  7. ^ http://www.mediawiki.org/wiki/Deployment
  8. ^ "Extension:ParserFunctions". MediaWiki. 2009-12-25. http://www.mediawiki.org/wiki/Extension:ParserFunctions. Retrieved 2010-05-30. 
  9. ^ "Wikipedia:Miscellany for deletion/Template:Qif – Wikipedia, the free encyclopedia". En.wikipedia.org. http://en.wikipedia.org/wiki/Wikipedia:Miscellany_for_deletion/Template:Qif. Retrieved 2010-05-30. 
  10. ^ M Schindler, D Vrandecic (2009), Introducing new features to Wikipedia, Proceedings of WebSci, http://lyhana8.homelinux.org/fac/ICPS%20-%20S8/Maiw/Introducing%20new%20features%20to%20Wikipedia%20-%20Case%20studies%20for%20Web%20science.pdf 
  11. ^ "Category:String manipulation templates – Wikipedia, the free encyclopedia". En.wikipedia.org. 2010-05-15. http://en.wikipedia.org/wiki/Category:String_manipulation_templates. Retrieved 2010-05-30. 
  12. ^ https://bugzilla.wikimedia.org/show_bug.cgi?id=6455
  13. ^ "Extension:StringFunctions". MediaWiki. http://www.mediawiki.org/wiki/Extension:StringFunctions. Retrieved 2010-05-30. 
  14. ^ "r51497 – Code Review". MediaWiki. http://www.mediawiki.org/wiki/Special:Code/MediaWiki/51497. Retrieved 2010-05-30. 
  15. ^ "Extension:Cite". MediaWiki. 2010-05-03. http://www.mediawiki.org/wiki/Extension:Cite. Retrieved 2010-05-30. 
  16. ^ Luther, Kurt; Flaschen, Matthew; Forte, Andrea; Jordan, Christopher; Bruckman, Amy (2009), ProveIt: a new tool for supporting citation in MediaWiki, ACM, http://qualr.kurtluther.com/pdf/a43-luther.pdf 
  17. ^ "Wikipedia:RefToolbar – Wikipedia, the free encyclopedia". En.wikipedia.org. 2010-05-13. http://en.wikipedia.org/wiki/Wikipedia:RefToolbar. Retrieved 2010-05-30. 
  18. ^ "Category:Math extensions". MediaWiki. 2009-12-26. http://www.mediawiki.org/wiki/Category:Math_extensions. Retrieved 2010-05-30. 
  19. ^ Marieke Guy (January 2007), Wikido: Exploiting the Potential of Wikis, Ariadne, http://www.ariadne.ac.uk/issue50/wikido-rpt/ 
  20. ^ "Extension:CategorySuggest". MediaWiki. http://www.mediawiki.org/wiki/Extension:CategorySuggest. Retrieved 2010-05-30. 
  21. ^ "Category:Flash Video extensions". MediaWiki. http://www.mediawiki.org/wiki/Category:Flash_Video_extensions. Retrieved 2010-05-30. 
  22. ^ "Category:YouTube extensions". MediaWiki. 2008-09-16. http://www.mediawiki.org/wiki/Category:YouTube_extensions. Retrieved 2010-05-30. 
  23. ^ "Category:RSS extensions". MediaWiki. http://www.mediawiki.org/wiki/Category:RSS_extensions. Retrieved 2010-05-30. 
  24. ^ "Extension:FBConnect". MediaWiki. http://www.mediawiki.org/wiki/Extension:FBConnect. Retrieved 2010-05-30. 
  25. ^ M Dale, A Stern, M Deckert, W Sack, System demonstration: Metavid.org: a social website and open archive of congressional video, Proceedings of the 10th Annual International Conference on Digital Government Research: Social Networks: Making Connections between Citizens, Data and Government, pp. 309–310, ISBN 978-1-60558-535-2, http://portal.acm.org/citation.cfm?id=1556176.1556232 
  26. ^ Lecture Notes in Business Information Processing, 3, Enterprise Information Systems, February 8, 2008, ISSN 1865-1348, http://www.springerlink.com/content/r4w2120g71353206/ 
  27. ^ "Wiki spam – Meta". Meta.wikimedia.org. http://meta.wikimedia.org/wiki/Wiki_Spam. Retrieved 2010-05-30. 
  28. ^ Goldman, Eric, Wikipedia's Labor Squeeze and its Consequences, 8, Journal on Telecommunications and High Technology Law 
  29. ^ "Extension:ConfirmEdit". MediaWiki. 2010-05-05. http://www.mediawiki.org/wiki/Extension:ConfirmEdit. Retrieved 2010-05-30. 
  30. ^ "Extension:SpamBlacklist". MediaWiki. 2010-03-24. http://www.mediawiki.org/wiki/Extension:SpamBlacklist. Retrieved 2010-05-30. 
  31. ^ "Extension:Nuke". MediaWiki. 2010-05-19. http://www.mediawiki.org/wiki/Extension:Nuke. Retrieved 2010-05-30. 
  32. ^ http://www.google.com/search?q=mediawiki&hl=en&sa=N&tab=sw
  33. ^ "Summer of Code 2010". MediaWiki. http://www.mediawiki.org/wiki/Summer_of_Code_2010. Retrieved 2010-05-30. 
  34. ^ Masanori Arita and Kazuhiro Suwa (September 17, 2008), Search extension transforms Wiki into a relational system: A case for flavonoid metabolite database, BioData Mining, https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2556319/ 
  35. ^ Finn Årup Nielsen (August 11, 2009), Lost in localization: A solution with neuroinformatics 2.0?, 48, NeuroImage 
  36. ^ Eric Ras, Jörg Rech, Sebastian Weber (1 August 2008), Collaborative Authoring of Learning Elements for Adaptive Learning Spaces, Fifth International Conference on Adaptive Hypermedia and Adaptive Web-Based Systems, http://ah2008.l3s.uni-hannover.de/files/resourcesmodule/@random4875cb58f07c9/1215679368__Proc_AH2008_WS3_Authoring_of_Adaptive_and_Adaptable_Hypermedia.pdf#page=67 
  37. ^ Emma Weeding, Jason Houle, Ben Swiniarski, Patrick Smadbeck, Kristen Lindblad, Katherine Volzing, Poonam Srivastava, Vassilios Sotiropoulos, Kostas Biliouris, and Yiannis Kaznessis (2009), BBF RFC##: SynBioSS Wiki: A Repository of BioBrick Models, http://partsregistry.org/wiki/images/archive/9/9d/20091020203346!BBF_RFC_Future_SynBioSS.pdf 
  38. ^ Hartung, Michael et al. "A Platform for Collaborative Management of Semantic Grid Metadata". Intelligent distributed computing, systems and applications. p. 123. 
  39. ^ "Extension:Woogle4MediaWiki". MediaWiki. http://www.mediawiki.org/wiki/Extension:Woogle4MediaWiki. Retrieved 2010-05-30. 
  40. ^ Hans-Jörg Happel (2009), Woogle – On Why and How to Marry Wikis with Enterprise Search, http://subs.emis.de/LNI/Proceedings/Proceedings145/gi-proc-145-015.pdf 
  41. ^ Arnold, Carrie (2009), DynaTable: a Wiki extension for structured data, ISBN 978-1-60558-730-1, http://doi.acm.org.mutex.gmu.edu/10.1145/1641309.1641347 
  42. ^ Tansey, Brendan (2010), Annoki: A MediaWiki-based Collaboration Platform, ISBN 978-1-60558-975-6, http://doi.acm.org.mutex.gmu.edu/10.1145/1809198.1809209 

Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • MediaWiki — namespace redirects here. For help regarding the MediaWiki namespace on Wikipedia, see Help:MediaWiki namespace. For general information about Wikipedia namespaces, see Wikipedia:Namespace. Talk page and MediaWiki talk page redirect here. For… …   Wikipedia

  • Mediawiki —  Ne doit pas être confondu avec Wikimedia. MediaWiki …   Wikipédia en Français

  • MédiaWiki — MediaWiki  Ne doit pas être confondu avec Wikimedia. MediaWiki …   Wikipédia en Français

  • Médiawiki — MediaWiki  Ne doit pas être confondu avec Wikimedia. MediaWiki …   Wikipédia en Français

  • MediaWiki —  Ne doit pas être confondu avec Wikimedia. MediaWiki …   Wikipédia en Français

  • Extension —  Pour les extensions de MediaWiki, voir la page Manual:Extensions. Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom. Sur les autres projets Wikimedia  …   Wikipédia en Français

  • Semantic MediaWiki — Infobox Software name= Semantic MediaWiki logo= caption= developer= [http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SemanticMediaWiki/README various] latest release version = 1.3 latest release date = September 7, 2008 operating… …   Wikipedia

  • Semantic MediaWiki — Développeur Wikimedia Dernière ve …   Wikipédia en Français

  • Wikipedia — For Wikipedia s non encyclopedic visitor introduction, see Wikipedia:About. Wikipedia …   Wikipedia

  • Kaltura — Infobox Company name = type = Privately held genre = foundation = 2006 founder = Ron Yekutiel, Shay David, Michal Tsur, and Eran Etam location city = New York location country = US location = locations = area served = key people = industry =… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”