r90088 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90087‎ | r90088 | r90089 >
Date:21:11, 14 June 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
preparing version 0.2
Modified paths:
  • /trunk/extensions/Lingo/Lingo.php (modified) (history)
  • /trunk/extensions/Lingo/README (modified) (history)

Diff [purge]

Index: trunk/extensions/Lingo/README
@@ -1 +1,73 @@
2 -See http://www.mediawiki.org/wiki/Extension:Lingo for installation instructions
 2+Lingo is a glossary extension to MediaWiki, that lets you define abbreviations
 3+and their definitions on a wiki page. It displays these definitions whenever an
 4+abbreviation is hovered over in an article.
 5+
 6+The extension is still in early stages, so please report bugs.
 7+
 8+See http://www.mediawiki.org/wiki/Extension:Lingo for online documentation.
 9+
 10+
 11+== Installation ==
 12+
 13+This extension was developed for MediaWiki 1.16 und upwards. Other version might
 14+work, but are not tested.
 15+
 16+1. Download the package. Unpack the folder inside /extensions (so that the files
 17+ are in /extensions/Lingo, rename the folder if necessary).
 18+
 19+2. In your LocalSettings.php, add the following line to the end of the file:
 20+
 21+ require_once("$IP/extensions/Lingo/Lingo.php");
 22+
 23+3. Create the page "Terminology" (no namespace), and insert some entries using
 24+ the following syntax:
 25+
 26+
 27+;FTP:File Transport Protocol
 28+;AAAAA:American Association Against Acronym Abuse
 29+;ACK:Acknowledge
 30+;AFAIK:As Far As I Know
 31+;AWGTHTGTATA:Are We Going To Have To Go Through All This Again
 32+;HTTP:HyperText Transfer Protocol
 33+
 34+
 35+== Customization ==
 36+
 37+The following settings may be used:
 38+
 39+* $wgexLingoPage to specify the name of the terminology page
 40+ Example: $wgexLingoPage = 'Glossary';
 41+
 42+* $wgexLingoDisplayOnce to specify that each term should be annotated only once
 43+ per page
 44+ Example: $wgexLingoDisplayOnce = true;
 45+
 46+* $wgexLingoUseNamespaces to specify what namespaces should or should not be used
 47+ Example: $wgexLingoUseNamespaces[NS_TALK] = false;
 48+
 49+If you want to use these settings, just include them in LocalSettings.php AFTER
 50+the require_once("$IP/extensions/Lingo/Lingo.php");
 51+
 52+
 53+== Usage ==
 54+
 55+By default Lingo will mark up any page that is not in a forbidden namespace. To
 56+exclude a page from markup you can include __NOGLOSSARY__ anywhere in the
 57+article. In some cases it may be necessary to exclude portions of a page, e.g.
 58+because Lingo interferes with some JavaScript. This can be achieved by wrapping
 59+the part in an HTML element (e.g. a span or a div) and specify class="noglossary".
 60+
 61+
 62+== Credits ==
 63+
 64+Lingo is a rewrite of Extension:Terminology, written by BarkerJr with
 65+modifications by Benjamin Kahn. It was originally written by Barry Coughlan and
 66+is currently maintained by Stephan Gambke.
 67+
 68+
 69+== Reporting bugs ==
 70+
 71+Comments, questions and suggestions should be sent or posted to:
 72+* the Lingo discussion page: http://www.mediawiki.org/wiki/Extension_talk:Lingo
 73+* the maintainer: http://www.mediawiki.org/wiki/Special:EmailUser/F.trott
 74+
Index: trunk/extensions/Lingo/Lingo.php
@@ -9,7 +9,7 @@
1010 * @author Barry Coughlan
1111 * @copyright 2010 Barry Coughlan
1212 * @author Stephan Gambke
13 - * @version 0.2 alpha
 13+ * @version 0.2
1414 * @licence GNU General Public Licence 2.0 or later
1515 * @see http://www.mediawiki.org/wiki/Extension:Lingo Documentation
1616 */
@@ -17,7 +17,7 @@
1818 die( 'This file is part of a MediaWiki extension, it is not a valid entry point.' );
1919 }
2020
21 -define( 'LINGO_VERSION', '0.2 alpha' );
 21+define( 'LINGO_VERSION', '0.2' );
2222
2323
2424 // set defaults for settings

Status & tagging log