2006-06-23 21:22:25 +00:00
|
|
|
<?php
|
2012-06-29 20:49:13 +00:00
|
|
|
# MediaWiki Poem extension v1.1
|
2006-06-23 21:22:25 +00:00
|
|
|
#
|
|
|
|
# Based on example code from
|
2009-12-05 15:03:20 +00:00
|
|
|
# http://www.mediawiki.org/wiki/Manual:Extending_wiki_markup
|
2006-06-23 21:22:25 +00:00
|
|
|
#
|
2012-06-29 20:49:13 +00:00
|
|
|
# Other code is © 2005 Nikola Smolenski <smolensk@eunet.yu>
|
|
|
|
# and © 2011 Zaran <zaran.krleza@gmail.com>
|
2006-06-23 21:22:25 +00:00
|
|
|
#
|
|
|
|
# Anyone is allowed to use this code for any purpose.
|
2012-06-29 20:49:13 +00:00
|
|
|
#
|
2006-06-23 21:22:25 +00:00
|
|
|
# To install, copy the extension to your extensions directory and add line
|
2012-06-29 20:49:13 +00:00
|
|
|
# require_once( "$IP/extensions/Poem/Poem.php" );
|
2006-06-23 21:22:25 +00:00
|
|
|
# to the bottom of your LocalSettings.php
|
|
|
|
#
|
|
|
|
# To use, put some text between <poem></poem> tags
|
|
|
|
#
|
|
|
|
# For more information see its page at
|
2009-12-05 15:03:20 +00:00
|
|
|
# http://www.mediawiki.org/wiki/Extension:Poem
|
2006-06-23 21:22:25 +00:00
|
|
|
|
2006-10-29 21:41:25 +00:00
|
|
|
$wgExtensionCredits['parserhook'][] = array(
|
2009-04-27 04:45:10 +00:00
|
|
|
'path' => __FILE__,
|
2008-02-18 18:42:20 +00:00
|
|
|
'name' => 'Poem',
|
|
|
|
'author' => array( 'Nikola Smolenski', 'Brion Vibber', 'Steve Sanbeg' ),
|
2011-12-13 23:49:33 +00:00
|
|
|
'url' => 'https://www.mediawiki.org/wiki/Extension:Poem',
|
2008-02-18 18:42:20 +00:00
|
|
|
'descriptionmsg' => 'poem-desc',
|
2006-10-29 21:41:25 +00:00
|
|
|
);
|
2011-06-07 09:45:41 +00:00
|
|
|
|
2012-06-29 20:49:13 +00:00
|
|
|
$dir = __DIR__ . '/';
|
|
|
|
$wgParserTestFiles[] = $dir . 'poemParserTests.txt';
|
|
|
|
$wgAutoloadClasses['Poem'] = $dir . 'Poem.class.php';
|
2014-03-28 20:37:06 +00:00
|
|
|
$wgMessagesDirs['Poem'] = __DIR__ . '/i18n';
|
2012-06-29 20:49:13 +00:00
|
|
|
$wgHooks['ParserFirstCallInit'][] = 'Poem::init';
|