User:Kevin bibleref

Can i do the link by css? .bibleref { background: url(file_icon.gif) center right no-repeat; padding-right: 18px; Code: <?php
 * 1) bodyContent a[href ^="http://"],
 * 1) Bible References
 * 2) Version: 1.0
 * 3) Links a Bible reference to the text at Biblegateway.com
 * 4) You can take advantage of BibleGateway's features such as displaying two references together:
 * 5) eg. Matt 28:18-20,2Cor 4
 * 6) Tag :
 * 7)   ref}}
 * 8) Example :
 * 9)   Col 1:15-20
 * 10)   Col 1:15-20}}
 * 11) Soli Deo Gloria!
 * 1)   Col 1:15-20
 * 2)   Col 1:15-20}}
 * 3) Soli Deo Gloria!
 * 1) Soli Deo Gloria!

$wgExtensionFunctions[] = 'wfBibleRef'; $wgExtensionCredits['parserhook'][] = array(       'name' => 'Bible References',        'description' => 'Links Bible References to BibleGateway.com',        'author' => 'Matt Dolan',        'url' => 'http://meta.wikimedia.org/wiki/BibleRef' );

function wfBibleRef { global $wgParser; $wgParser->setHook('bible', 'linkBibleRef'); }

function linkBibleRef($input, $args) { global $wgScriptPath; // BibleGateway's Version numbers $versions = array(               'niv-us'        => 31, // New International Version (American English)                'niv'           => 64, // New International Version (British English)                'nasb'          => 49, // North American Standard Bible                'esv'           => 47, // English Standard Version                'tniv'          => 72, // Today's New International Version                'msg'           => 65, // The Message                'nlt'           => 51, // New Living Translation                'kjv'           => 9,  // King James Version                'av'            => 9,  // Authorised Version (= KJV)                'cev'           => 46, // Contemporary English Version                'nkjv'          => 50,  // New King James Version		'lsg'		=> 2   // Louis Segond (French) #KPC Mod                ); $versionText = strtolower($args['ver']);               // get the desired version from the XML tag if ($versions[$versionText]!='')                               // if the version requested match one defined above... $version = $versions[$versionText];                    // get the BibleGateway version number elseif (is_int($versionText))                                  // if the given 'ver' tag is an integer, we'll assumed it's a version number $version = $versionText; else                                                                                   // if none if given, default to TNIV $version = 72; $output = ""; $a=$output; $output.=$input; // $output.= ; put here the little icon! use $wgScript/extensions/bible.png $output.= "$a"; // end #KPC Mods return $output; } ?>
 * 1) The callback function for converting the input text to HTML output