User:Jeblad/Cite.php

 * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */

if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { $wgHooks['ParserFirstCallInit'][] = 'wfCite'; } else { $wgExtensionFunctions[] = 'wfCite'; }

$wgExtensionCredits['parserhook'][] = array(	'name' => 'Cite',	'svn-date' => '$LastChangedDate$',	'svn-revision' => '$LastChangedRevision$',	'author' => 'Ævar Arnfjörð Bjarmason',	'description' => 'Adds  and tags, for citations', // kept for b/c	'descriptionmsg' => 'cite_desc',	'url' => 'http://www.mediawiki.org/wiki/Extension:Cite/Cite.php' ); $wgParserTestFiles[] = dirname( __FILE__ ). "/citeParserTests.txt"; $wgExtensionMessagesFiles['Cite'] = dirname( __FILE__ ). "/Cite.i18n.php"; $wgAutoloadClasses['Cite'] = dirname( __FILE__ ). "/Cite_body.php"; $wgSpecialPageGroups['Cite'] = 'pagetools';

define( 'CITE_DEFAULT_GROUP', ''); /** * The emergency shut-off switches. Override in local settings to disable * groups; or remove all references from this file to enable unconditionally */ $wgAllowCiteGroups = true; $wgAllowTailDefs = true;

function wfCite { new Cite; return true; }

/**#@-*/